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

Method notFoundDeprecatedJSON

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

Source from the content-addressed store, hash-verified

973 }
974
975 @Test
976 public void notFoundDeprecatedJSON() {
977 HttpQuery query = NettyMocks.getQuery(tsdb, "/?json");
978 query.notFound();
979 assertEquals(HttpResponseStatus.NOT_FOUND, query.response().getStatus());
980 assertEquals(
981 "{\"err\":\"Page Not Found\"}",
982 query.response().getContent().toString(Charset.forName("UTF-8")));
983 }
984
985 @Test
986 public void notFoundDefaultSerializer() {

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