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

Method notFoundDefaultSerializer

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

Source from the content-addressed store, hash-verified

983 }
984
985 @Test
986 public void notFoundDefaultSerializer() {
987 HttpQuery query = NettyMocks.getQuery(tsdb, "/api/error");
988 query.getQueryBaseRoute();
989 query.notFound();
990 assertEquals(HttpResponseStatus.NOT_FOUND, query.response().getStatus());
991 assertEquals(
992 "{\"error\":{\"code\":404,\"message\":\"Endpoint not found\"}}",
993 query.response().getContent().toString(Charset.forName("UTF-8")));
994 }
995
996 @Test
997 public void redirect() {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected