Change unit tests to use overloaded assertEquals() for XMLCh comparisons.
[shibboleth/opensaml2.git] / samltest / saml2 / core / impl / NameIDMappingResponse20Test.h
index 379ee7e..ddc8c52 100644 (file)
@@ -37,6 +37,7 @@ public:
         expectedConsent = XMLString::transcode("urn:string:consent"); \r
         expectedDestination = XMLString::transcode("http://sp.example.org/endpoint"); \r
         expectedIssueInstant = new DateTime(XMLString::transcode("2006-02-21T16:40:00.000Z"));\r
+        expectedIssueInstant->parseDateTime();\r
 \r
         singleElementFile = data_path + "saml2/core/impl/NameIDMappingResponse.xml";\r
         singleElementOptionalAttributesFile = data_path + "saml2/core/impl/NameIDMappingResponseOptionalAttributes.xml";\r
@@ -61,7 +62,7 @@ public:
 \r
         assertEquals("ID attribute", expectedID, response->getID());\r
         assertEquals("Version attribute", expectedVersion, response->getVersion());\r
-        assertEquals("IssueInstant attribute", expectedIssueInstant->getFormattedString(), response->getIssueInstant()->getFormattedString());\r
+        TSM_ASSERT_EQUALS("IssueInstant attribute", expectedIssueInstant->getEpoch(), response->getIssueInstant()->getEpoch());\r
 \r
         TS_ASSERT(response->getIssuer()==NULL);\r
         TS_ASSERT(response->getSignature()==NULL);\r