()
| 325 | } |
| 326 | |
| 327 | @Test |
| 328 | public void processResultRoot91() throws Exception { |
| 329 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 330 | final byte[] data = "127.0.0.1,50511,1388534400000".getBytes(CHARSET); |
| 331 | cb.processResult(Code.OK.intValue(), "/hbase/root-region-server", null, |
| 332 | data, stat); |
| 333 | verifyPrivate(client).invoke("newClient", "127.0.0.1", 50511); |
| 334 | verifyPrivate(zk_client, never()).invoke("connectZK"); |
| 335 | verifyPrivate(zk_client).invoke("disconnectZK"); |
| 336 | verifyPrivate(zk_client, never()).invoke("retryGetRootRegionLater"); |
| 337 | assertEquals(Byte.valueOf("1"), |
| 338 | (Byte)Whitebox.getInternalState(cb, "found_root")); |
| 339 | assertEquals(Byte.valueOf("0"), |
| 340 | (Byte)Whitebox.getInternalState(cb, "found_meta")); |
| 341 | } |
| 342 | |
| 343 | @Test |
| 344 | public void processResultRoot92() throws Exception { |
nothing calls this directly
no test coverage detected