()
| 760 | } |
| 761 | |
| 762 | @Test |
| 763 | public void setSerializerDefaultCT() throws Exception { |
| 764 | HttpQuery.initializeSerializerMaps(null); |
| 765 | final Channel channelMock = NettyMocks.fakeChannel(); |
| 766 | final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, |
| 767 | HttpMethod.GET, "/"); |
| 768 | req.headers().add("Content-Type", "invalid/notfoundtype"); |
| 769 | final HttpQuery query = new HttpQuery(tsdb, req, channelMock); |
| 770 | query.setSerializer(); |
| 771 | assertEquals(HttpJsonSerializer.class.getCanonicalName(), |
| 772 | query.serializer().getClass().getCanonicalName()); |
| 773 | } |
| 774 | |
| 775 | @Test (expected = BadRequestException.class) |
| 776 | public void setSerializerNotFound() throws Exception { |
nothing calls this directly
no test coverage detected