X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltoolingtest%2FComplexXMLObjectTest.h;h=8068e3b3a961bf08007199dc81f17b9575729692;hb=eab22660b1e5678870b4750af89a963476e38c3f;hp=e2b6e78f6fd6ab7c6bd28fc7219fcea58d4ec926;hpb=208033c53430f82706ddf5f411747230d8da70da;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltoolingtest/ComplexXMLObjectTest.h b/xmltoolingtest/ComplexXMLObjectTest.h index e2b6e78..8068e3b 100644 --- a/xmltoolingtest/ComplexXMLObjectTest.h +++ b/xmltoolingtest/ComplexXMLObjectTest.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. @@ -35,16 +35,16 @@ public: string path=data_path + "ComplexXMLObject.xml"; ifstream fs(path.c_str()); DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs); - TS_ASSERT(doc!=NULL); + TS_ASSERT(doc!=nullptr); XercesJanitor janitor(doc); const XMLObjectBuilder* b = XMLObjectBuilder::getBuilder(doc->getDocumentElement()); - TS_ASSERT(b!=NULL); + TS_ASSERT(b!=nullptr); auto_ptr wcObject( dynamic_cast(b->buildFromDocument(doc, false)) ); - TS_ASSERT(wcObject.get()!=NULL); + TS_ASSERT(wcObject.get()!=nullptr); VectorOf(XMLObject) kids=wcObject->getUnknownXMLObjects(); TSM_ASSERT_EQUALS("Number of child elements was not expected value", 2, kids.size());