BaseRequest implements Request { @Override public RequestBody getBody() { return m_body; } BaseRequest(HttpHeaders headers, RequestBody body, UriInfo uriInfo, ResourceInstance resource); @Override Result process(); @Override ResourceInstance getResource(); @Override String getURI(); @Override int getAPIVersion(); @Override Predicate getQueryPredicate(); @Override Map<String, TemporalInfo> getFields(); @Override Renderer getRenderer(); @Override Map<String, List<String>> getHttpHeaders(); @Override PageRequest getPageRequest(); @Override RequestBody getBody(); @Override SortRequest getSortRequest(); @Override String getRemoteAddress(); static final int DEFAULT_PAGE_SIZE; static final String PAGE_SIZE_PROPERTY_KEY; static final String ASC_ORDER_PROPERTY_KEY; }
@Test public void testGetBody() { RequestBody body = createNiceMock(RequestBody.class); Request request = getTestRequest(null, body, null, null, null, null, null); assertSame(body, request.getBody()); }