X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fsaml2%2Fcore%2Fimpl%2FAttribute20Test.h;h=436716edd09a0571b68e9bacd015ab6a06655bb7;hp=1a6823677f5d63ae1be0d07c3d7a7b2073cf9082;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hpb=50f75e2cd3ddaca8e9808a3e5af9517deca3c9c3 diff --git a/samltest/saml2/core/impl/Attribute20Test.h b/samltest/saml2/core/impl/Attribute20Test.h index 1a68236..436716e 100644 --- a/samltest/saml2/core/impl/Attribute20Test.h +++ b/samltest/saml2/core/impl/Attribute20Test.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. @@ -47,11 +47,11 @@ public: void testSingleElementUnmarshall() { auto_ptr xo(unmarshallElement(singleElementFile)); Attribute* attribute = dynamic_cast(xo.get()); - TS_ASSERT(attribute!=NULL); + TS_ASSERT(attribute!=nullptr); assertEquals("Name attribute", expectedName, attribute->getName()); - TS_ASSERT(attribute->getNameFormat()==NULL); - TS_ASSERT(attribute->getFriendlyName()==NULL); + TS_ASSERT(attribute->getNameFormat()==nullptr); + TS_ASSERT(attribute->getFriendlyName()==nullptr); TSM_ASSERT_EQUALS("# of AttributeValue child elements", 0, attribute->getAttributeValues().size()); @@ -60,7 +60,7 @@ public: void testSingleElementOptionalAttributesUnmarshall() { auto_ptr xo(unmarshallElement(singleElementOptionalAttributesFile)); Attribute* attribute = dynamic_cast(xo.get()); - TS_ASSERT(attribute!=NULL); + TS_ASSERT(attribute!=nullptr); assertEquals("Name attribute", expectedName, attribute->getName()); assertEquals("NameFormat attribute", expectedNameFormat, attribute->getNameFormat()); @@ -72,11 +72,11 @@ public: void testChildElementsUnmarshall() { auto_ptr xo(unmarshallElement(childElementsFile)); Attribute* attribute= dynamic_cast(xo.get()); - TS_ASSERT(attribute!=NULL); + TS_ASSERT(attribute!=nullptr); - TS_ASSERT(attribute->getName()==NULL); - TS_ASSERT(attribute->getNameFormat()==NULL); - TS_ASSERT(attribute->getFriendlyName()==NULL); + TS_ASSERT(attribute->getName()==nullptr); + TS_ASSERT(attribute->getNameFormat()==nullptr); + TS_ASSERT(attribute->getFriendlyName()==nullptr); TSM_ASSERT_EQUALS("# of AttributeValue child elements", 3, attribute->getAttributeValues().size());