Unit test for 1.x POST binding, plus fixes.
[shibboleth/cpp-opensaml.git] / samltest / samltest.h
index 92509d8..938f1e8 100644 (file)
@@ -15,7 +15,8 @@
  */\r
 \r
 #include "internal.h"\r
-#include <saml/SAMLConfig.h>
+#include <saml/SAMLConfig.h>\r
+#include <saml/binding/ReplayCache.h>\r
 \r
 #include <fstream>\r
 #include <cxxtest/GlobalFixture.h>\r
@@ -31,6 +32,8 @@ public:
         XMLToolingConfig::getConfig().log_config();\r
         if (!SAMLConfig::getConfig().init())\r
             return false;\r
+        SAMLConfig::getConfig().setReplayCache(new ReplayCache());\r
+\r
         if (getenv("SAMLTEST_DATA"))\r
             data_path=std::string(getenv("SAMLTEST_DATA")) + "/";\r
         //std::string catpath=data_path + "catalog.xml";\r