Cloning fixes, initial protocol check-in.
authorScott Cantor <cantor.2@osu.edu>
Tue, 16 May 2006 22:37:34 +0000 (22:37 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 16 May 2006 22:37:34 +0000 (22:37 +0000)
samltest/saml1/core/impl/AuthenticationStatementTest.h

index 26e583d..f15eed2 100644 (file)
@@ -60,7 +60,10 @@ public:
 \r
     void testChildElementsUnmarshall() {\r
         auto_ptr<XMLObject> xo(unmarshallElement(childElementsFile));\r
-        AuthenticationStatement& as = dynamic_cast<AuthenticationStatement&>(*xo.get());\r
+        AuthenticationStatement& as1 = dynamic_cast<AuthenticationStatement&>(*xo.get());\r
+        as1.releaseThisAndChildrenDOM();\r
+        auto_ptr<AuthenticationStatement> as2(as1.cloneAuthenticationStatement());\r
+        AuthenticationStatement& as=*as2.get();\r
 \r
         TSM_ASSERT("Subject element", as.getSubject()!=NULL);\r
         TSM_ASSERT("SubjectLocality element", as.getSubjectLocality()!=NULL);\r