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)
| 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 |
no test coverage detected