()
| 581 | } |
| 582 | |
| 583 | @Test |
| 584 | public void processResultNullData() throws Exception { |
| 585 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 586 | cb.processResult(Code.OK.intValue(), "/hbase/root-region-server", null, |
| 587 | null, stat); |
| 588 | verifyPrivate(client, never()).invoke("newClient", "127.0.0.1", 50511); |
| 589 | verifyPrivate(zk_client, never()).invoke("connectZK"); |
| 590 | verifyPrivate(zk_client, never()).invoke("disconnectZK"); |
| 591 | verifyPrivate(zk_client).invoke("retryGetRootRegionLater"); |
| 592 | verify(client).newTimeout((TimerTask)any(), anyLong()); |
| 593 | assertEquals(Byte.valueOf("0"), |
| 594 | (Byte)Whitebox.getInternalState(cb, "found_root")); |
| 595 | assertEquals(Byte.valueOf("0"), |
| 596 | (Byte)Whitebox.getInternalState(cb, "found_meta")); |
| 597 | } |
| 598 | |
| 599 | @Test |
| 600 | public void processResultEmptyData() throws Exception { |
nothing calls this directly
no test coverage detected