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

Method answer

test/TestGetRequest.java:65–68  ·  view source on GitHub ↗
(final InvocationOnMock invocation)

Source from the content-addressed store, hash-verified

63 when(regionclient.isAlive()).thenReturn(true);
64 doAnswer(new Answer<Object>() {
65 public Object answer(final InvocationOnMock invocation) {
66 get.getDeferred().callback(row);
67 return null;
68 }
69 }).when(regionclient).sendRpc(get);
70
71 assertSame(row, client.get(get).joinUninterruptibly());

Callers

nothing calls this directly

Calls 2

callbackMethod · 0.45
getDeferredMethod · 0.45

Tested by

no test coverage detected