MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / processResultNoNodeRootMetaFound

Method processResultNoNodeRootMetaFound

test/TestZKClient.java:465–480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463 }
464
465 @Test
466 public void processResultNoNodeRootMetaFound() throws Exception {
467 final ZKCallback cb = zk_client.new ZKCallback();
468 Whitebox.setInternalState(cb, "found_meta", (byte)1);
469 final byte[] data = "127.0.0.1:50511".getBytes(CHARSET);
470 cb.processResult(Code.NONODE.intValue(), "/hbase/root-region-server", null,
471 data, stat);
472 verifyPrivate(client, never()).invoke("newClient", "127.0.0.1", 50511);
473 verifyPrivate(zk_client, never()).invoke("connectZK");
474 verifyPrivate(zk_client, never()).invoke("disconnectZK");
475 verifyPrivate(zk_client, never()).invoke("retryGetRootRegionLater");
476 assertEquals(Byte.valueOf("2"),
477 (Byte)Whitebox.getInternalState(cb, "found_root"));
478 assertEquals(Byte.valueOf("1"),
479 (Byte)Whitebox.getInternalState(cb, "found_meta"));
480 }
481
482 @Test
483 public void processResultNoNodeRootMetaNotFound() throws Exception {

Callers

nothing calls this directly

Calls 2

processResultMethod · 0.95
intValueMethod · 0.80

Tested by

no test coverage detected