This commit is contained in:
James Agnew 2016-05-27 10:38:35 -04:00
parent fd7f9a9b98
commit 6fcf2df8b4

View File

@ -104,7 +104,7 @@ public class ETagServerTest {
@Test @Test
public void testLastModifiedHeader() throws Exception { public void testLastModifiedHeader() throws Exception {
ourLastModifiedDate = new InstantDt("2012-11-25T02:34:45.2222Z").getValue(); ourLastModifiedDate = new InstantDt("2012-11-25T02:34:45.222Z").getValue();
HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient/2/_history/3"); HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient/2/_history/3");
HttpResponse status = ourClient.execute(httpGet); HttpResponse status = ourClient.execute(httpGet);
@ -118,7 +118,7 @@ public class ETagServerTest {
Header cl = status.getFirstHeader(Constants.HEADER_LAST_MODIFIED_LOWERCASE); Header cl = status.getFirstHeader(Constants.HEADER_LAST_MODIFIED_LOWERCASE);
assertNotNull(cl); assertNotNull(cl);
assertEquals("Sun, 25 Nov 2012 02:34:47 GMT", cl.getValue()); assertEquals("Sun, 25 Nov 2012 02:34:45 GMT", cl.getValue());
} finally { } finally {
if (status.getEntity() != null) { if (status.getEntity() != null) {
IOUtils.closeQuietly(status.getEntity().getContent()); IOUtils.closeQuietly(status.getEntity().getContent());