X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Fsaml2%2Fcore%2Fimpl%2FAuthnRequest20Test.h;h=5c5a689567b7251997ea2c1257c152766d999024;hb=36737d2d4507e3eec5d1fcfc59d381bd0f79b2c9;hp=979beacd4f24061d66cbf32f329e408932050140;hpb=e841c42a204564a932af02377e9c70c10b2737bd;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/saml2/core/impl/AuthnRequest20Test.h b/samltest/saml2/core/impl/AuthnRequest20Test.h index 979beac..5c5a689 100644 --- a/samltest/saml2/core/impl/AuthnRequest20Test.h +++ b/samltest/saml2/core/impl/AuthnRequest20Test.h @@ -40,6 +40,7 @@ public: expectedID = XMLString::transcode("abc123");; expectedVersion = XMLString::transcode("2.0"); expectedIssueInstant = new DateTime(XMLString::transcode("2006-02-21T16:40:00.000Z")); + expectedIssueInstant->parseDateTime(); expectedConsent = XMLString::transcode("urn:string:consent"); expectedDestination = XMLString::transcode("http://idp.example.org/endpoint"); expectedForceAuthn = true; @@ -74,7 +75,7 @@ public: TS_ASSERT(request!=NULL); assertEquals("ID attribute", expectedID, request->getID()); assertEquals("Version attribute", expectedVersion, request->getVersion()); - assertEquals("IssueInstant attribute", expectedIssueInstant->getFormattedString(), request->getIssueInstant()->getFormattedString()); + TSM_ASSERT_EQUALS("IssueInstant attribute", expectedIssueInstant->getEpoch(), request->getIssueInstant()->getEpoch()); TSM_ASSERT_EQUALS("ForceAuthn attribute presence", false, request->ForceAuthn().first); TSM_ASSERT_EQUALS("IsPassive attribute presence", false, request->IsPassive().first); TSM_ASSERT_EQUALS("AssertionConsumerServiceIndex attribute presence",false, request->getAssertionConsumerServiceIndex().first);