MCPcopy
hub / github.com/OpenTSDB/opentsdb / sendReplySB

Method sendReplySB

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

Source from the content-addressed store, hash-verified

1060 }
1061
1062 @Test
1063 public void sendReplySB() throws Exception {
1064 HttpQuery query = NettyMocks.getQuery(tsdb, "/");
1065 query.sendReply(new StringBuilder("Hello World"));
1066 assertEquals(HttpResponseStatus.OK, query.response().getStatus());
1067 assertEquals("Hello World",
1068 query.response().getContent().toString(Charset.forName("UTF-8")));
1069 }
1070
1071 @Test (expected = NullPointerException.class)
1072 public void sendReplySBNull() 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