X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2FArtifactMapTest.h;h=8f2aa301d082152fba483e963e56aa76fe5f19ad;hb=90ade2861c4d44e13d4d0013034fbd66cd294069;hp=72a8b2df684fd7d408750536664054c8151d61ca;hpb=54bc3fd9396935d92c53bbb69d003e8d121720c2;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/ArtifactMapTest.h b/samltest/ArtifactMapTest.h index 72a8b2d..8f2aa30 100644 --- a/samltest/ArtifactMapTest.h +++ b/samltest/ArtifactMapTest.h @@ -16,6 +16,7 @@ #include "internal.h" #include +#include "saml/binding/ArtifactMap.h" #include #include @@ -28,23 +29,20 @@ class ArtifactMapTest : public CxxTest::TestSuite public: string providerIdStr; string handle; - ArtifactMap* artifactMap; void setUp() { if (handle.empty()) { providerIdStr = "https://idp.org/SAML"; SAMLConfig::getConfig().generateRandomBytes(handle,SAML2ArtifactType0004::HANDLE_LENGTH); } - artifactMap = new ArtifactMap(); } void tearDown() { - delete artifactMap; - artifactMap=NULL; } void testArtifactMap(void) { auto_ptr response(ResponseBuilder::buildResponse()); SAML2ArtifactType0004 artifact(SAMLConfig::getConfig().hashSHA1(providerIdStr.c_str()),666,handle); - + + ArtifactMap* artifactMap = SAMLConfig::getConfig().getArtifactMap(); artifactMap->storeContent(response.get(), &artifact, providerIdStr.c_str()); response.release();