()
| 337 | } |
| 338 | |
| 339 | @Test |
| 340 | public void tooManyAttemptsNullException() throws Exception { |
| 341 | final HBaseRpc rpc = getMockHBaseRpc(null); |
| 342 | rpc.attempt = (byte) (10 + 1); |
| 343 | final Deferred<Object> error = HBaseClient.tooManyAttempts(rpc, null); |
| 344 | assertNotNull(error); |
| 345 | NonRecoverableException ex = null; |
| 346 | try { |
| 347 | error.joinUninterruptibly(); |
| 348 | } catch (NonRecoverableException e) { |
| 349 | ex = e; |
| 350 | } |
| 351 | assertNotNull(ex); |
| 352 | assertTrue(ex instanceof NonRecoverableException); |
| 353 | assertNull(ex.getCause()); |
| 354 | } |
| 355 | |
| 356 | @Test |
| 357 | public void knownToBeNSREdFalse() throws Exception { |
nothing calls this directly
no test coverage detected