()
| 463 | } |
| 464 | |
| 465 | @Test |
| 466 | public void processResultNoNodeRootMetaFound() throws Exception { |
| 467 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 468 | Whitebox.setInternalState(cb, "found_meta", (byte)1); |
| 469 | final byte[] data = "127.0.0.1:50511".getBytes(CHARSET); |
| 470 | cb.processResult(Code.NONODE.intValue(), "/hbase/root-region-server", null, |
| 471 | data, stat); |
| 472 | verifyPrivate(client, never()).invoke("newClient", "127.0.0.1", 50511); |
| 473 | verifyPrivate(zk_client, never()).invoke("connectZK"); |
| 474 | verifyPrivate(zk_client, never()).invoke("disconnectZK"); |
| 475 | verifyPrivate(zk_client, never()).invoke("retryGetRootRegionLater"); |
| 476 | assertEquals(Byte.valueOf("2"), |
| 477 | (Byte)Whitebox.getInternalState(cb, "found_root")); |
| 478 | assertEquals(Byte.valueOf("1"), |
| 479 | (Byte)Whitebox.getInternalState(cb, "found_meta")); |
| 480 | } |
| 481 | |
| 482 | @Test |
| 483 | public void processResultNoNodeRootMetaNotFound() throws Exception { |
nothing calls this directly
no test coverage detected