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

Method getQuery

test/tsd/NettyMocks.java:124–129  ·  view source on GitHub ↗

Returns an HttpQuery object with the given URI and the following parameters: Method = GET Content = null Content-Type = null @param tsdb The TSDB to associate with, needs to be mocked with the Config object set @param uri A URI to use @return an HttpQuery object

(final TSDB tsdb, final String uri)

Source from the content-addressed store, hash-verified

122 * @return an HttpQuery object
123 */
124 public static HttpQuery getQuery(final TSDB tsdb, final String uri) {
125 final Channel channelMock = NettyMocks.fakeChannel();
126 final HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1,
127 HttpMethod.GET, uri);
128 return new HttpQuery(tsdb, req, channelMock);
129 }
130
131 /**
132 * Returns an HttpQuery object with the given uri, content and type

Callers 15

badMethodMethod · 0.95
notImplementedMethod · 0.95
assignQsMetricSingleMethod · 0.95
assignQsMetricDoubleMethod · 0.95
assignQsTagkSingleMethod · 0.95
assignQsTagkDoubleMethod · 0.95
assignQsTagkSingleBadMethod · 0.95
assignQsTagk2Good1BadMethod · 0.95
assignQsTagvSingleMethod · 0.95
assignQsTagvDoubleMethod · 0.95

Calls 1

fakeChannelMethod · 0.95

Tested by

no test coverage detected