projects
/
shibboleth
/
cpp-xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Shortcuts for unmarshalling in builder interface, adjusted tests
[shibboleth/cpp-xmltooling.git]
/
xmltoolingtest
/
MarshallingTest.h
diff --git
a/xmltoolingtest/MarshallingTest.h
b/xmltoolingtest/MarshallingTest.h
index
79dfaf1
..
13e07e9
100644
(file)
--- a/
xmltoolingtest/MarshallingTest.h
+++ b/
xmltoolingtest/MarshallingTest.h
@@
-35,7
+35,7
@@
public:
TS_TRACE("testMarshallingWithAttributes");
\r
\r
auto_ptr_XMLCh expected("Firefly");
\r
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
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
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
TS_ASSERT(sxObject.get()!=NULL);
\r
sxObject->setValue(expected.get());
\r
\r