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

Method notFoundDeprecated

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

Source from the content-addressed store, hash-verified

962 }
963
964 @Test
965 public void notFoundDeprecated() {
966 HttpQuery query = NettyMocks.getQuery(tsdb, "/");
967 query.notFound();
968 assertEquals(HttpResponseStatus.NOT_FOUND, query.response().getStatus());
969 assertEquals(
970 "<!DOCTYPE html>",
971 query.response().getContent().toString(Charset.forName("UTF-8"))
972 .substring(0, 15));
973 }
974
975 @Test
976 public void notFoundDeprecatedJSON() {

Callers

nothing calls this directly

Calls 6

getQueryMethod · 0.95
notFoundMethod · 0.95
responseMethod · 0.80
getStatusMethod · 0.65
toStringMethod · 0.45
getContentMethod · 0.45

Tested by

no test coverage detected