MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / getCharsetDefault

Method getCharsetDefault

test/tsd/TestHttpQuery.java:424–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

fakeChannelMethod · 0.95
getCharsetMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected