mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-19 19:35:42 +00:00
Fix test
This commit is contained in:
parent
fd7f9a9b98
commit
6fcf2df8b4
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user