()
| 438 | } |
| 439 | |
| 440 | @Test |
| 441 | public void getCharsetSupplied() { |
| 442 | final Channel channelMock = NettyMocks.fakeChannel(); |
| 443 | final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, |
| 444 | HttpMethod.GET, "/"); |
| 445 | req.headers().add("Content-Type", "text/plain; charset=UTF-16"); |
| 446 | final HttpQuery query = new HttpQuery(tsdb, req, channelMock); |
| 447 | assertEquals(Charset.forName("UTF-16"), query.getCharset()); |
| 448 | } |
| 449 | |
| 450 | @Test (expected = UnsupportedCharsetException.class) |
| 451 | public void getCharsetInvalid() { |
nothing calls this directly
no test coverage detected