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

Method callbackNullResult

test/TestHBaseRpc.java:199–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 @Test
200 public void callbackNullResult() throws Exception {
201 final GetRequest rpc = new GetRequest(TABLE, KEY, FAMILY);
202 rpc.attempt = 4;
203 final Deferred<Object> deferred = rpc.getDeferred();
204 assertEquals(4, rpc.attempt);
205 assertNull(rpc.timeout_handle);
206 assertTrue(rpc.hasDeferred());
207
208 rpc.callback(null);
209 assertNull(deferred.join());
210 assertEquals(0, rpc.attempt);
211 assertFalse(rpc.hasDeferred());
212 }
213
214 @Test
215 public void callbackException() throws Exception {

Callers

nothing calls this directly

Calls 3

hasDeferredMethod · 0.80
getDeferredMethod · 0.45
callbackMethod · 0.45

Tested by

no test coverage detected