()
| 430 | } |
| 431 | |
| 432 | @Test |
| 433 | public void processResultUnknownPath() throws Exception { |
| 434 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 435 | final byte[] data = "127.0.0.1:50511".getBytes(CHARSET); |
| 436 | cb.processResult(Code.OK.intValue(), "/hbase/something-unknown", null, |
| 437 | data, stat); |
| 438 | verifyPrivate(client, never()).invoke("newClient", "127.0.0.1", 50511); |
| 439 | verifyPrivate(zk_client, never()).invoke("connectZK"); |
| 440 | verifyPrivate(zk_client, never()).invoke("disconnectZK"); |
| 441 | verifyPrivate(zk_client).invoke("retryGetRootRegionLater"); |
| 442 | verify(client).newTimeout((TimerTask)any(), anyLong()); |
| 443 | assertEquals(Byte.valueOf("0"), |
| 444 | (Byte)Whitebox.getInternalState(cb, "found_root")); |
| 445 | assertEquals(Byte.valueOf("0"), |
| 446 | (Byte)Whitebox.getInternalState(cb, "found_meta")); |
| 447 | } |
| 448 | |
| 449 | @Test |
| 450 | public void processResultNoNodeRootFirst() throws Exception { |
nothing calls this directly
no test coverage detected