Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void getTopLevelJSON() {
- ClientResponse clientResponse = resource().path("/")
- .accept(MediaType.APPLICATION_JSON)
- .get(ClientResponse.class);
- assertThat(clientResponse.getClientResponseStatus(), is(ClientResponse.Status.OK));
- assertThat(clientResponse.getType().toString(), is(MediaType.APPLICATION_JSON));
- @Test
- public void getTopLevelXML() {
- ClientResponse clientResponse = resource().path("/")
- .accept(MediaType.APPLICATION_XML)
- .get(ClientResponse.class);
- assertThat(clientResponse.getClientResponseStatus(), is(ClientResponse.Status.OK));
- assertThat(clientResponse.getType().toString(), is(MediaType.APPLICATION_XML));
- }
Add Comment
Please, Sign In to add comment