MCPcopy
hub / github.com/OpenTSDB/opentsdb / setSerializerDummyCT

Method setSerializerDummyCT

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

Source from the content-addressed store, hash-verified

746 }
747
748 @Test
749 public void setSerializerDummyCT() throws Exception {
750 PluginLoader.loadJAR("plugin_test.jar");
751 HttpQuery.initializeSerializerMaps(null);
752 final Channel channelMock = NettyMocks.fakeChannel();
753 final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1,
754 HttpMethod.GET, "/");
755 req.headers().add("Content-Type", "application/tsdbdummy");
756 final HttpQuery query = new HttpQuery(tsdb, req, channelMock);
757 query.setSerializer();
758 assertEquals("net.opentsdb.tsd.DummyHttpSerializer",
759 query.serializer().getClass().getCanonicalName());
760 }
761
762 @Test
763 public void setSerializerDefaultCT() throws Exception {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected