MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / callbackWithoutDeferred

Method callbackWithoutDeferred

test/TestHBaseRpc.java:248–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 }
247
248 @Test
249 public void callbackWithoutDeferred() throws Exception {
250 final GetRequest rpc = new GetRequest(TABLE, KEY, FAMILY);
251 rpc.attempt = 4;
252 final Object response = new Object();
253 assertEquals(4, rpc.attempt);
254 assertNull(rpc.timeout_handle);
255 assertFalse(rpc.hasDeferred());
256
257 rpc.callback(response);
258 assertEquals(4, rpc.attempt);
259 assertFalse(rpc.hasDeferred());
260 }
261
262 @Test
263 public void callbackWithTimeoutWithoutDeferred() throws Exception {

Callers

nothing calls this directly

Calls 2

hasDeferredMethod · 0.80
callbackMethod · 0.45

Tested by

no test coverage detected