()
| 84 | } |
| 85 | |
| 86 | @Before |
| 87 | public void before() throws Exception { |
| 88 | tsdb = NettyMocks.getMockedHTTPTSDB(); |
| 89 | empty_query = mock(Query.class); |
| 90 | query_result = mock(Query.class); |
| 91 | rpc = new QueryRpc(); |
| 92 | expressions = null; |
| 93 | |
| 94 | when(tsdb.newQuery()).thenReturn(query_result); |
| 95 | when(empty_query.run()).thenReturn(new DataPoints[0]); |
| 96 | when(query_result.configureFromQuery((TSQuery)any(), anyInt())) |
| 97 | .thenReturn(Deferred.fromResult(null)); |
| 98 | when(query_result.runAsync()) |
| 99 | .thenReturn(Deferred.fromResult(new DataPoints[0])); |
| 100 | } |
| 101 | |
| 102 | @Test |
| 103 | public void parseQueryMType() throws Exception { |
nothing calls this directly
no test coverage detected