X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Fsaml2%2Fcore%2Fimpl%2FAttribute20Test.h;h=436716edd09a0571b68e9bacd015ab6a06655bb7;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=d6d1d8be02dea550a458c9c2768af6c77396a266;hpb=1ffcb743f90aeb3da11054316f3d005ff7edbf7b;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/saml2/core/impl/Attribute20Test.h b/samltest/saml2/core/impl/Attribute20Test.h index d6d1d8b..436716e 100644 --- a/samltest/saml2/core/impl/Attribute20Test.h +++ b/samltest/saml2/core/impl/Attribute20Test.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. @@ -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());