Fix test flagged by errorprone
This commit is contained in:
parent
4abbd5487b
commit
0e48506956
|
@ -110,6 +110,7 @@ public class BinaryDstu2Test {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCreateWrongType() throws Exception {
|
public void testCreateWrongType() throws Exception {
|
||||||
Binary res = new Binary();
|
Binary res = new Binary();
|
||||||
res.setContent(new byte[] { 1, 2, 3, 4 });
|
res.setContent(new byte[] { 1, 2, 3, 4 });
|
||||||
|
@ -122,8 +123,7 @@ public class BinaryDstu2Test {
|
||||||
HttpResponse status = ourClient.execute(http);
|
HttpResponse status = ourClient.execute(http);
|
||||||
assertEquals(201, status.getStatusLine().getStatusCode());
|
assertEquals(201, status.getStatusLine().getStatusCode());
|
||||||
|
|
||||||
assertEquals("text/plain", ourLast.getContentType());
|
assertEquals("application/json+fhir;charset=utf-8", ourLast.getContentType().replace(" ","").toLowerCase());
|
||||||
assertArrayEquals(new byte[] { 1, 2, 3, 4 }, ourLast.getContent());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue