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