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

Method sendReplyString

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

Source from the content-addressed store, hash-verified

1075 }
1076
1077 @Test
1078 public void sendReplyString() throws Exception {
1079 HttpQuery query = NettyMocks.getQuery(tsdb, "/");
1080 query.sendReply("Hello World");
1081 assertEquals(HttpResponseStatus.OK, query.response().getStatus());
1082 assertEquals("Hello World",
1083 query.response().getContent().toString(Charset.forName("UTF-8")));
1084 }
1085
1086 @Test (expected = NullPointerException.class)
1087 public void sendReplyStringNull() throws Exception {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected