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

Method handleMetaZnodeNoPBufMagic

test/TestZKClient.java:1214–1224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1212 }
1213
1214 @Test
1215 public void handleMetaZnodeNoPBufMagic() throws Exception {
1216 final ZKCallback cb = zk_client.new ZKCallback();
1217 final byte[] string = "127.0.0.1,50511,1388534400000".getBytes(CHARSET);
1218 final byte[] data = new byte[string.length + 6];
1219 data[0] = ZKCallback.MAGIC;
1220 Bytes.setInt(data, 1, 1);
1221 System.arraycopy(string, 0, data, 6, string.length);
1222
1223 assertNull(cb.handleMetaZnode(data));
1224 }
1225
1226 @Test (expected = NullPointerException.class)
1227 public void handleMetaZnodeNull() throws Exception {

Callers

nothing calls this directly

Calls 2

setIntMethod · 0.95
handleMetaZnodeMethod · 0.95

Tested by

no test coverage detected