use of com.linkedin.restli.common.ContentType in project rest.li by linkedin.
the class TestMultiplexedRequestHandlerImpl method testGetContentTypeDefault.
@Test(dataProvider = "multiplexerConfigurations")
public void testGetContentTypeDefault(MultiplexerRunMode multiplexerRunMode) throws Exception {
createMultiplexer(null, multiplexerRunMode);
RestRequest request = muxRequestBuilder().build();
ContentType contentType = ContentType.getContentType(request.getHeader(RestConstants.HEADER_CONTENT_TYPE)).get();
assertEquals(contentType, ContentType.JSON);
}
Aggregations