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

Method internalErrorDeprecated

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

Source from the content-addressed store, hash-verified

781 }
782
783 @Test
784 public void internalErrorDeprecated() {
785 HttpQuery query = NettyMocks.getQuery(tsdb, "");
786 try {
787 throw new Exception("Internal Error");
788 } catch (Exception e) {
789 query.internalError(e);
790 }
791 assertEquals(HttpResponseStatus.INTERNAL_SERVER_ERROR,
792 query.response().getStatus());
793 assertEquals(
794 "<!DOCTYPE html>",
795 query.response().getContent().toString(Charset.forName("UTF-8"))
796 .substring(0, 15));
797 }
798
799 @Test
800 public void internalErrorDeprecatedJSON() {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected