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

Method handleRootZnode92

test/TestZKClient.java:820–833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

818 }
819
820 @Test
821 public void handleRootZnode92() throws Exception {
822 final ZKCallback cb = zk_client.new ZKCallback();
823 final byte[] string = "127.0.0.1,50511,1388534400000".getBytes(CHARSET);
824 final byte[] data = new byte[string.length + 6];
825 data[0] = ZKCallback.MAGIC;
826 Bytes.setInt(data, 1, 1);
827 System.arraycopy(string, 0, data, 6, string.length);
828
829 final RegionClient rc = cb.handleRootZnode(data);
830 assertNotNull(rc);
831 assertEquals("127.0.0.1:50511", rc.getRemoteAddress());
832 verifyPrivate(client).invoke("newClient", "127.0.0.1", 50511);
833 }
834
835 @Test (expected = NumberFormatException.class)
836 public void handleRootZnode92Colons() throws Exception {

Callers

nothing calls this directly

Calls 3

setIntMethod · 0.95
handleRootZnodeMethod · 0.95
getRemoteAddressMethod · 0.95

Tested by

no test coverage detected