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

Method sendReplyBytes

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

Source from the content-addressed store, hash-verified

1024 }
1025
1026 @Test
1027 public void sendReplyBytes() throws Exception {
1028 HttpQuery query = NettyMocks.getQuery(tsdb, "/");
1029 query.sendReply("Hello World".getBytes());
1030 assertEquals(HttpResponseStatus.OK, query.response().getStatus());
1031 assertEquals("Hello World",
1032 query.response().getContent().toString(Charset.forName("UTF-8")));
1033 }
1034
1035 @Test (expected = NullPointerException.class)
1036 public void sendReplyBytesNull() throws Exception {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected