Shortcuts for unmarshalling in builder interface, adjusted tests
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / MarshallingTest.h
index 79dfaf1..13e07e9 100644 (file)
@@ -35,7 +35,7 @@ public:
         TS_TRACE("testMarshallingWithAttributes");\r
 \r
         auto_ptr_XMLCh expected("Firefly");\r
-        auto_ptr<SimpleXMLObject> sxObject(dynamic_cast<SimpleXMLObject*>(XMLObjectBuilder::getBuilder(m_qname)->buildObject()));\r
+        auto_ptr<SimpleXMLObject> sxObject(dynamic_cast<SimpleXMLObject*>(XMLObjectBuilder::buildOne(m_qname)));\r
         TS_ASSERT(sxObject.get()!=NULL);\r
         sxObject->setId(expected.get());\r
         \r
@@ -54,7 +54,7 @@ public:
         TS_TRACE("testMarshallingWithElementContent");\r
 \r
         auto_ptr_XMLCh expected("Sample Content");\r
-        auto_ptr<SimpleXMLObject> sxObject(dynamic_cast<SimpleXMLObject*>(XMLObjectBuilder::getBuilder(m_qname)->buildObject()));\r
+        auto_ptr<SimpleXMLObject> sxObject(dynamic_cast<SimpleXMLObject*>(XMLObjectBuilder::buildOne(m_qname)));\r
         TS_ASSERT(sxObject.get()!=NULL);\r
         sxObject->setValue(expected.get());\r
         \r