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

Method noIntersectionsFound

test/tsd/TestQueryExecutor.java:628–644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

626 }
627
628 @Test
629 public void noIntersectionsFound() throws Exception {
630 threeDifE();
631
632 String json = JSON.serializeToString(getDefaultQueryBuilder());
633 final QueryRpc rpc = new QueryRpc();
634 final HttpQuery query = NettyMocks.postQuery(tsdb,
635 "/api/query/exp", json);
636 query.getQueryBaseRoute(); // to the correct serializer
637 NettyMocks.mockChannelFuture(query);
638
639 rpc.execute(tsdb, query);
640 final String response =
641 query.response().getContent().toString(Charset.forName("UTF-8"));
642 assertTrue(response.contains("\"code\":400"));
643 assertTrue(response.contains("\"message\":\"No intersections found"));
644 }
645
646 @Test
647 public void noIntersectionsFoundNestedExpression() throws Exception {

Callers

nothing calls this directly

Calls 11

serializeToStringMethod · 0.95
postQueryMethod · 0.95
getQueryBaseRouteMethod · 0.95
mockChannelFutureMethod · 0.95
executeMethod · 0.95
threeDifEMethod · 0.80
responseMethod · 0.80
containsMethod · 0.80
toStringMethod · 0.45
getContentMethod · 0.45

Tested by

no test coverage detected