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

Method getQueryString

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

Source from the content-addressed store, hash-verified

91 }
92
93 @Test
94 public void getQueryString() {
95 final Channel channelMock = NettyMocks.fakeChannel();
96 final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1,
97 HttpMethod.GET, "/api/v1/put?param=value&param2=value2");
98 final HttpQuery query = new HttpQuery(tsdb, req, channelMock);
99 Map<String, List<String>> params = query.getQueryString();
100 assertNotNull(params);
101 assertEquals("value", params.get("param").get(0));
102 assertEquals("value2", params.get("param2").get(0));
103 }
104
105 @Test
106 public void getQueryStringEmpty() {

Callers 4

setPlotParamsMethod · 0.45
getQueryStringEmptyMethod · 0.45
getQueryStringMultiMethod · 0.45
getQueryStringNULLMethod · 0.45

Calls 2

fakeChannelMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected