()
| 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 { |
nothing calls this directly
no test coverage detected