X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Fsaml2%2Fcore%2Fimpl%2FNameIDType20Test.h;h=7db32dcc45f0274c4567e80756a6d5e6c38c1831;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=4b8ef09ab03ec13b9b9bd1de6063c6525d1470e3;hpb=932cfaae2176c2eba1a9938dc420591a9551a7f3;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/saml2/core/impl/NameIDType20Test.h b/samltest/saml2/core/impl/NameIDType20Test.h index 4b8ef09..7db32dc 100644 --- a/samltest/saml2/core/impl/NameIDType20Test.h +++ b/samltest/saml2/core/impl/NameIDType20Test.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. @@ -84,15 +84,15 @@ public: //TODO possibly move this functionality up to SAMLObjectBaseTestCase, as optional helper method XMLObject * buildObject() { - const XMLObjectBuilder* builder = XMLObjectBuilder::getBuilder(QName(typeNS,typeName)); - QName type(typeNS,typeName,typePrefix); + const XMLObjectBuilder* builder = XMLObjectBuilder::getBuilder(xmltooling::QName(typeNS,typeName)); + xmltooling::QName type(typeNS,typeName,typePrefix); return builder->buildObject(elementNS, elementName, elementPrefix, &type); } void testSingleElementUnmarshall() { auto_ptr xo(unmarshallElement(singleElementFile)); NameIDType* nameid = dynamic_cast(xo.get()); - TS_ASSERT(nameid!=NULL); + TS_ASSERT(nameid!=nullptr); checkNameAndType(nameid); @@ -102,7 +102,7 @@ public: void testSingleElementOptionalAttributesUnmarshall() { auto_ptr xo(unmarshallElement(singleElementOptionalAttributesFile)); NameIDType* nameid = dynamic_cast(xo.get()); - TS_ASSERT(nameid!=NULL); + TS_ASSERT(nameid!=nullptr); checkNameAndType(nameid); @@ -116,7 +116,7 @@ public: void testSingleElementMarshall() { NameIDType* nameid = dynamic_cast(buildObject()); - TS_ASSERT(nameid!=NULL); + TS_ASSERT(nameid!=nullptr); checkNameAndType(nameid); nameid->setName(expectedContent); @@ -125,7 +125,7 @@ public: void testSingleElementOptionalAttributesMarshall() { NameIDType* nameid = dynamic_cast(buildObject()); - TS_ASSERT(nameid!=NULL); + TS_ASSERT(nameid!=nullptr); checkNameAndType(nameid); nameid->setNameQualifier(expectedNameQualifier);