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

Method stubbing

test/TestDeleteRequest.java:335–350  ·  view source on GitHub ↗
(final DeleteRequest delete)

Source from the content-addressed store, hash-verified

333 // ----------------- //
334
335 private void stubbing(final DeleteRequest delete){
336 doAnswer(new Answer<Object>(){
337 public Object answer(final InvocationOnMock invocation){
338 delete.getDeferred().callback(null);
339 sendDelete = true;
340 return null;
341 }
342 }).when(regionclient).sendRpc(delete);
343
344 doAnswer(new Answer<Object>(){
345 public Object answer(final InvocationOnMock invocation){
346 regionclient.sendRpc(delete);
347 return null;
348 }
349 }).when(client).sendRpcToRegion(delete);
350 }
351
352}

Callers 15

simpleDeleteMethod · 0.95
deleteWithTimeMethod · 0.95
deleteWithFamilyMethod · 0.95
deleteWithQualifierMethod · 0.95
deleteWithColumnMethod · 0.95
deleteWithLockMethod · 0.95
deleteWithLockAndTimeMethod · 0.95
deleteWithStringMethod · 0.95

Calls 2

sendRpcMethod · 0.80
sendRpcToRegionMethod · 0.80

Tested by

no test coverage detected