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

Method handleMetaZnodeEmptyMeta

test/TestZKClient.java:1130–1140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1128 }
1129
1130 @Test
1131 public void handleMetaZnodeEmptyMeta() throws Exception {
1132 final ZKCallback cb = zk_client.new ZKCallback();
1133 final byte[] string = "127.0.0.1,50511,1388534400000".getBytes(CHARSET);
1134 final byte[] data = new byte[string.length + 5];
1135 data[0] = ZKCallback.MAGIC;
1136 Bytes.setInt(data, 0, 1);
1137 System.arraycopy(string, 0, data, 5, string.length);
1138
1139 assertNull(cb.handleMetaZnode(data));
1140 }
1141
1142 @Test
1143 public void handleMetaZnodeTooMuchMeta() throws Exception {

Callers

nothing calls this directly

Calls 2

setIntMethod · 0.95
handleMetaZnodeMethod · 0.95

Tested by

no test coverage detected