MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / processResultRoot91

Method processResultRoot91

test/TestZKClient.java:327–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

processResultMethod · 0.95
intValueMethod · 0.80

Tested by

no test coverage detected