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

Method sendReplyStatusSB

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

Source from the content-addressed store, hash-verified

1090 }
1091
1092 @Test
1093 public void sendReplyStatusSB() throws Exception {
1094 HttpQuery query = NettyMocks.getQuery(tsdb, "/");
1095 query.sendReply(HttpResponseStatus.CREATED,
1096 new StringBuilder("Hello World"));
1097 assertEquals(HttpResponseStatus.CREATED, query.response().getStatus());
1098 assertEquals("Hello World",
1099 query.response().getContent().toString(Charset.forName("UTF-8")));
1100 }
1101
1102 @Test (expected = NullPointerException.class)
1103 public void sendReplyStatusSBNullStatus() 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