Answer < Boolean > function ( ) { return new Answer < Boolean > ( ) { boolean first = true ; @ Override public Boolean answer ( InvocationOnMock arg0 ) { if ( first ) { first = false ; return true ; } return false ; } } ; }
create a simple answer which returns true the first time , and false every time after . concode_field_sep RpcRetryingCaller<Result[]> caller concode_elem_sep Scan scan concode_elem_sep ExecutorService pool concode_elem_sep RpcRetryingCallerFactory rpcFactory concode_elem_sep RpcControllerFactory controllerFactory concode_elem_sep Configuration conf concode_elem_sep ClusterConnection clusterConn concode_field_sep void testContextNoRecords concode_elem_sep void testContextPresent concode_elem_sep void setup concode_elem_sep void testNoContextNoRecords concode_elem_sep void testNoContextFewerRecords concode_elem_sep SmallScannerCallableFactory getFactory concode_elem_sep void teardown