()
| 422 | } |
| 423 | |
| 424 | @Test |
| 425 | public void getCharsetDefault() { |
| 426 | final Channel channelMock = NettyMocks.fakeChannel(); |
| 427 | final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, |
| 428 | HttpMethod.GET, "/"); |
| 429 | req.headers().add("Content-Type", "text/plain"); |
| 430 | final HttpQuery query = new HttpQuery(tsdb, req, channelMock); |
| 431 | assertEquals(Charset.forName("UTF-8"), query.getCharset()); |
| 432 | } |
| 433 | |
| 434 | @Test |
| 435 | public void getCharsetDefaultNoHeader() { |
nothing calls this directly
no test coverage detected