From 5cb211886e1dda5c799efde25f5de9310be9c261 Mon Sep 17 00:00:00 2001 From: Phillip Warner Date: Fri, 29 Apr 2016 14:18:44 -0600 Subject: [PATCH] Use getValueAsString() instead of toString(). Simple oversight, where toString() on the java.util.Date lastUpdated was wrong. Needed to getLastUpdatedElement().getValueAsString(). --- .../ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java b/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java index ae226b5203f..a40f160b20d 100644 --- a/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java +++ b/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java @@ -1329,9 +1329,7 @@ public class GenericJaxRsClientDstu3Test { .execute(); //@formatter:on - // FIXME ? -// assertEquals("2015-06-22T15:48:57.554-04:00", response.getMeta().getLastUpdated().toString()); - assertEquals("Mon Jun 22 13:48:57 MDT 2015", response.getMeta().getLastUpdated().toString()); + assertEquals("2015-06-22T15:48:57.554-04:00", response.getMeta().getLastUpdatedElement().getValueAsString()); } @Test