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

Method answer

test/tsd/TestRpcHandler.java:115–122  ·  view source on GitHub ↗
(final InvocationOnMock args)

Source from the content-addressed store, hash-verified

113 handleHttpRpc(req,
114 new Answer<ChannelFuture>() {
115 public ChannelFuture answer(final InvocationOnMock args)
116 throws Throwable {
117 DefaultHttpResponse response =
118 (DefaultHttpResponse)args.getArguments()[0];
119 assertEquals(HttpResponseStatus.OK, response.getStatus());
120 assertNull(response.headers().get(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN));
121 return null;
122 }
123 }
124 );
125

Callers

nothing calls this directly

Calls 3

getMockMethod · 0.80
getStatusMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected