()
| 613 | } |
| 614 | |
| 615 | @Test |
| 616 | public void processResultTooMuchData() throws Exception { |
| 617 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 618 | cb.processResult(Code.OK.intValue(), "/hbase/meta-region-server", null, |
| 619 | new byte[65535], stat); |
| 620 | verifyPrivate(client, never()).invoke("newClient", "127.0.0.1", 50511); |
| 621 | verifyPrivate(zk_client, never()).invoke("connectZK"); |
| 622 | verifyPrivate(zk_client, never()).invoke("disconnectZK"); |
| 623 | verifyPrivate(zk_client).invoke("retryGetRootRegionLater"); |
| 624 | verify(client).newTimeout((TimerTask)any(), anyLong()); |
| 625 | assertEquals(Byte.valueOf("0"), |
| 626 | (Byte)Whitebox.getInternalState(cb, "found_root")); |
| 627 | assertEquals(Byte.valueOf("0"), |
| 628 | (Byte)Whitebox.getInternalState(cb, "found_meta")); |
| 629 | } |
| 630 | |
| 631 | @Test |
| 632 | public void processResultRootBad() throws Exception { |
nothing calls this directly
no test coverage detected