@Test public void testLinkInfo() throws Exception { Link link = getLink("echo"); Assert.assertEquals(link.getMethod(), HttpMethod.GET); Assert.assertEquals(link.getHref(), SERVICE_URI + "/my_method"); Assert.assertEquals(link.getProduces(), MediaType.TEXT_PLAIN); }
public static <DTO> List<DTO> requestArray( Class<DTO> dtoInterface, int timeout, Link link, Object body, Pair<String, ?>... parameters) throws IOException, ServerException, NotFoundException, ForbiddenException, UnauthorizedException, ConflictException { return requestArray(dtoInterface, timeout, link.getHref(), link.getMethod(), body, parameters); }