use of javax.ws.rs.core.HttpHeaders in project ddf by codice.
the class TestRestEndpoint method testAddDocumentNullMessage.
@Test(expected = ServerErrorException.class)
public void testAddDocumentNullMessage() {
CatalogFramework framework = mock(CatalogFramework.class);
RESTEndpoint rest = new RESTEndpoint(framework);
HttpHeaders headers = mock(HttpHeaders.class);
rest.addDocument(headers, mock(UriInfo.class), mock(HttpServletRequest.class), mock(MultipartBody.class), null, null);
}
use of javax.ws.rs.core.HttpHeaders in project ddf by codice.
the class TestRestEndpoint method createHeaders.
private HttpHeaders createHeaders(List<String> mimeTypeList) {
HttpHeaders headers = mock(HttpHeaders.class);
when(headers.getRequestHeader(HttpHeaders.CONTENT_TYPE)).thenReturn(mimeTypeList);
return headers;
}
Aggregations