Skip to content

Commit 3e9851e

Browse files
committed
add test assertions
1 parent 946b52e commit 3e9851e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hapi-fhir-structures-r4/src/test/java/ca/uhn/fhir/rest/client/GenericClientR4Test.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ void testRawGetRequest() throws IOException {
125125
assertEquals("http://example.com/fhir/someurl?param1=value1", UrlUtil.unescape(httpUriRequest.getURI().toString()));
126126
String response = new String(result.getInputStream().readAllBytes(), StandardCharsets.UTF_8);
127127
assertEquals(responseBody, response);
128+
assertEquals("application/json", result.getMimeType());
129+
assertEquals(200, result.getStatusCode());
130+
assertTrue(result.getHeaders().isEmpty());
128131
}
129132

130133

0 commit comments

Comments
 (0)