()
| 597 | } |
| 598 | |
| 599 | @Test |
| 600 | public void processResultEmptyData() throws Exception { |
| 601 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 602 | cb.processResult(Code.OK.intValue(), "/hbase/root-region-server", null, |
| 603 | new byte[]{}, stat); |
| 604 | verifyPrivate(client, never()).invoke("newClient", "127.0.0.1", 50511); |
| 605 | verifyPrivate(zk_client, never()).invoke("connectZK"); |
| 606 | verifyPrivate(zk_client, never()).invoke("disconnectZK"); |
| 607 | verifyPrivate(zk_client).invoke("retryGetRootRegionLater"); |
| 608 | verify(client).newTimeout((TimerTask)any(), anyLong()); |
| 609 | assertEquals(Byte.valueOf("0"), |
| 610 | (Byte)Whitebox.getInternalState(cb, "found_root")); |
| 611 | assertEquals(Byte.valueOf("0"), |
| 612 | (Byte)Whitebox.getInternalState(cb, "found_meta")); |
| 613 | } |
| 614 | |
| 615 | @Test |
| 616 | public void processResultTooMuchData() throws Exception { |
nothing calls this directly
no test coverage detected