X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Fsaml2%2Fcore%2Fimpl%2FAuthnQuery20Test.h;h=b57faef8b64a10277eab223f8c1919c1abb92167;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=f1da0118bcad4f846c0a88b85a367d99cbf4f387;hpb=0703fa970c8d1f15600ce3fd1b350bdb90930bb9;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/saml2/core/impl/AuthnQuery20Test.h b/samltest/saml2/core/impl/AuthnQuery20Test.h index f1da011..b57faef 100644 --- a/samltest/saml2/core/impl/AuthnQuery20Test.h +++ b/samltest/saml2/core/impl/AuthnQuery20Test.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2006 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. @@ -58,42 +58,42 @@ public: void testSingleElementUnmarshall() { auto_ptr xo(unmarshallElement(singleElementFile)); AuthnQuery* query = dynamic_cast(xo.get()); - TS_ASSERT(query!=NULL); + TS_ASSERT(query!=nullptr); assertEquals("ID attribute", expectedID, query->getID()); assertEquals("Version attribute", expectedVersion, query->getVersion()); TSM_ASSERT_EQUALS("IssueInstant attribute", expectedIssueInstant->getEpoch(), query->getIssueInstant()->getEpoch()); - TS_ASSERT(query->getIssuer()==NULL); - TS_ASSERT(query->getSignature()==NULL); - TS_ASSERT(query->getExtensions()==NULL); - TS_ASSERT(query->getSubject()==NULL); - TS_ASSERT(query->getRequestedAuthnContext()==NULL); + TS_ASSERT(query->getIssuer()==nullptr); + TS_ASSERT(query->getSignature()==nullptr); + TS_ASSERT(query->getExtensions()==nullptr); + TS_ASSERT(query->getSubject()==nullptr); + TS_ASSERT(query->getRequestedAuthnContext()==nullptr); } void testSingleElementOptionalAttributesUnmarshall() { auto_ptr xo(unmarshallElement(singleElementOptionalAttributesFile)); AuthnQuery* query = dynamic_cast(xo.get()); - TS_ASSERT(query!=NULL); + TS_ASSERT(query!=nullptr); assertEquals("Consent attribute", expectedConsent, query->getConsent()); assertEquals("Destination attribute", expectedDestination, query->getDestination()); assertEquals("SessionIndex attribute", expectedSessionIndex, query->getSessionIndex()); - TS_ASSERT(query->getIssuer()==NULL); - TS_ASSERT(query->getSignature()==NULL); - TS_ASSERT(query->getExtensions()==NULL); - TS_ASSERT(query->getSubject()==NULL); - TS_ASSERT(query->getRequestedAuthnContext()==NULL); + TS_ASSERT(query->getIssuer()==nullptr); + TS_ASSERT(query->getSignature()==nullptr); + TS_ASSERT(query->getExtensions()==nullptr); + TS_ASSERT(query->getSubject()==nullptr); + TS_ASSERT(query->getRequestedAuthnContext()==nullptr); } void testChildElementsUnmarshall() { auto_ptr xo(unmarshallElement(childElementsFile)); AuthnQuery* query= dynamic_cast(xo.get()); - TS_ASSERT(query!=NULL); - TS_ASSERT(query->getIssuer()!=NULL); - TS_ASSERT(query->getSignature()==NULL); - TS_ASSERT(query->getExtensions()==NULL); - TS_ASSERT(query->getSubject()!=NULL); - TS_ASSERT(query->getRequestedAuthnContext()!=NULL); + TS_ASSERT(query!=nullptr); + TS_ASSERT(query->getIssuer()!=nullptr); + TS_ASSERT(query->getSignature()==nullptr); + TS_ASSERT(query->getExtensions()==nullptr); + TS_ASSERT(query->getSubject()!=nullptr); + TS_ASSERT(query->getRequestedAuthnContext()!=nullptr); } void testSingleElementMarshall() {