()
| 448 | } |
| 449 | |
| 450 | @Test (expected = UnsupportedCharsetException.class) |
| 451 | public void getCharsetInvalid() { |
| 452 | final Channel channelMock = NettyMocks.fakeChannel(); |
| 453 | final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, |
| 454 | HttpMethod.GET, "/"); |
| 455 | req.headers().add("Content-Type", "text/plain; charset=foobar"); |
| 456 | final HttpQuery query = new HttpQuery(tsdb, req, channelMock); |
| 457 | assertEquals(Charset.forName("UTF-16"), query.getCharset()); |
| 458 | } |
| 459 | |
| 460 | @Test |
| 461 | public void hasContent() { |
nothing calls this directly
no test coverage detected