()
| 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 { |
nothing calls this directly
no test coverage detected