X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fsaml2%2Fcore%2Fimpl%2FAuthnQuery20Test.h;h=b57faef8b64a10277eab223f8c1919c1abb92167;hp=7d89d95affd4d2b7a6c909735cab68951a0facd6;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hpb=50f75e2cd3ddaca8e9808a3e5af9517deca3c9c3 diff --git a/samltest/saml2/core/impl/AuthnQuery20Test.h b/samltest/saml2/core/impl/AuthnQuery20Test.h index 7d89d95..b57faef 100644 --- a/samltest/saml2/core/impl/AuthnQuery20Test.h +++ b/samltest/saml2/core/impl/AuthnQuery20Test.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. @@ -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() {