MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / setSerializerCT

Method setSerializerCT

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

Source from the content-addressed store, hash-verified

733 }
734
735 @Test
736 public void setSerializerCT() throws Exception {
737 HttpQuery.initializeSerializerMaps(null);
738 final Channel channelMock = NettyMocks.fakeChannel();
739 final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1,
740 HttpMethod.GET, "/");
741 req.headers().add("Content-Type", "application/json");
742 final HttpQuery query = new HttpQuery(tsdb, req, channelMock);
743 query.setSerializer();
744 assertEquals(HttpJsonSerializer.class.getCanonicalName(),
745 query.serializer().getClass().getCanonicalName());
746 }
747
748 @Test
749 public void setSerializerDummyCT() throws Exception {

Callers

nothing calls this directly

Calls 5

fakeChannelMethod · 0.95
setSerializerMethod · 0.95
serializerMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected