()
| 413 | } |
| 414 | |
| 415 | @Test |
| 416 | public void processResultEmptyPath() throws Exception { |
| 417 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 418 | final byte[] data = "127.0.0.1:50511".getBytes(CHARSET); |
| 419 | cb.processResult(Code.OK.intValue(), "", null, |
| 420 | data, stat); |
| 421 | verifyPrivate(client, never()).invoke("newClient", "127.0.0.1", 50511); |
| 422 | verifyPrivate(zk_client, never()).invoke("connectZK"); |
| 423 | verifyPrivate(zk_client, never()).invoke("disconnectZK"); |
| 424 | verifyPrivate(zk_client).invoke("retryGetRootRegionLater"); |
| 425 | verify(client).newTimeout((TimerTask)any(), anyLong()); |
| 426 | assertEquals(Byte.valueOf("0"), |
| 427 | (Byte)Whitebox.getInternalState(cb, "found_root")); |
| 428 | assertEquals(Byte.valueOf("0"), |
| 429 | (Byte)Whitebox.getInternalState(cb, "found_meta")); |
| 430 | } |
| 431 | |
| 432 | @Test |
| 433 | public void processResultUnknownPath() throws Exception { |
nothing calls this directly
no test coverage detected