@Test public void testRequestIsWellFormed() throws BoxRestException, AuthFatalFailureException { String id = "testid123"; GetCommentRequest request = new GetCommentRequest(CONFIG, JSON_PARSER, id, null); testRequestIsWellFormed( request, TestUtils.getConfig().getApiUrlAuthority(), TestUtils.getConfig().getApiUrlPath().concat(GetCommentRequest.getUri(id)), HttpStatus.SC_OK, RestMethod.GET); }
@Test public void testUri() { Assert.assertEquals("/comments/123", GetCommentRequest.getUri("123")); }