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

Method callbackException

test/TestHBaseRpc.java:214–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 }
213
214 @Test
215 public void callbackException() throws Exception {
216 final GetRequest rpc = new GetRequest(TABLE, KEY, FAMILY);
217 rpc.attempt = 4;
218 final Deferred<Object> deferred = rpc.getDeferred();
219 assertEquals(4, rpc.attempt);
220 assertNull(rpc.timeout_handle);
221 assertTrue(rpc.hasDeferred());
222
223 rpc.callback(new NonRecoverableException("Boo!"));
224 try {
225 deferred.join();
226 } catch (NonRecoverableException e) { }
227 assertEquals(0, rpc.attempt);
228 assertFalse(rpc.hasDeferred());
229 }
230
231 @Test
232 public void callbackWithTimeout() throws Exception {

Callers

nothing calls this directly

Calls 3

hasDeferredMethod · 0.80
getDeferredMethod · 0.45
callbackMethod · 0.45

Tested by

no test coverage detected