X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fsaml1%2Fcore%2Fimpl%2FAuthenticationStatementTest.h;h=5479eaab9cba2805e32c9d240895a37a4e3f2295;hp=3a5a41db9c18815dc9df8d0596ed781f119b6bc5;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hpb=50f75e2cd3ddaca8e9808a3e5af9517deca3c9c3 diff --git a/samltest/saml1/core/impl/AuthenticationStatementTest.h b/samltest/saml1/core/impl/AuthenticationStatementTest.h index 3a5a41d..5479eaa 100644 --- a/samltest/saml1/core/impl/AuthenticationStatementTest.h +++ b/samltest/saml1/core/impl/AuthenticationStatementTest.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,11 +42,11 @@ public: void testSingleElementUnmarshall() { auto_ptr xo(unmarshallElement(singleElementFile)); AuthenticationStatement& as = dynamic_cast(*xo.get()); - TSM_ASSERT("AuthenticationMethod attribute present", as.getAuthenticationMethod()==NULL); - TSM_ASSERT("AuthenticationInstant attribute present", as.getAuthenticationInstant()==NULL); + TSM_ASSERT("AuthenticationMethod attribute present", as.getAuthenticationMethod()==nullptr); + TSM_ASSERT("AuthenticationInstant attribute present", as.getAuthenticationInstant()==nullptr); - TSM_ASSERT("Subject element", as.getSubject()==NULL); - TSM_ASSERT("SubjectLocality element", as.getSubjectLocality()==NULL); + TSM_ASSERT("Subject element", as.getSubject()==nullptr); + TSM_ASSERT("SubjectLocality element", as.getSubjectLocality()==nullptr); TSM_ASSERT_EQUALS("AuthorityBinding element count", 0, as.getAuthorityBindings().size()); } @@ -65,8 +65,8 @@ public: auto_ptr as2(as1.cloneAuthenticationStatement()); AuthenticationStatement& as=*as2.get(); - TSM_ASSERT("Subject element", as.getSubject()!=NULL); - TSM_ASSERT("SubjectLocality element", as.getSubjectLocality()!=NULL); + TSM_ASSERT("Subject element", as.getSubject()!=nullptr); + TSM_ASSERT("SubjectLocality element", as.getSubjectLocality()!=nullptr); TSM_ASSERT_EQUALS("AuthorityBinding element count", 2, as.getAuthorityBindings().size()); as.getAuthorityBindings().erase(as.getAuthorityBindings().begin());