Removed ChildlessElement class references, ensure ComplexElement gets copied during...
[shibboleth/cpp-opensaml.git] / samltest / SAMLArtifactType0002Test.h
index 8556105..2a9ce99 100644 (file)
@@ -15,7 +15,8 @@
  */\r
 \r
 #include "internal.h"\r
-#include <saml/saml1/core/SAMLArtifactType0002.h>\r
+#include <saml/SAMLConfig.h>\r
+#include <saml/saml1/binding/SAMLArtifactType0002.h>\r
 \r
 using namespace opensaml::saml1p;\r
 using namespace opensaml;\r
@@ -34,7 +35,7 @@ public:
         auto_ptr<SAMLArtifactType0002> artifact(new SAMLArtifactType0002(providerIdStr));\r
         auto_ptr<SAMLArtifact> tempArtifact(SAMLArtifact::parse(artifact->encode().c_str()));\r
         \r
-        TS_ASSERT_SAME_DATA(artifact->getSource().c_str(),tempArtifact->getSource().c_str(),artifact->getSource().length());\r
+        TS_ASSERT_EQUALS(artifact->getSource(),tempArtifact->getSource());\r
         TS_ASSERT_EQUALS(artifact->getMessageHandle(),tempArtifact->getMessageHandle());\r
 \r
         TS_ASSERT_THROWS(auto_ptr<SAMLArtifact> bogus1(new SAMLArtifactType0002(providerIdStr, artifact->getMessageHandle() + artifact->getMessageHandle())), ArtifactException);\r