()
| 1140 | } |
| 1141 | |
| 1142 | @Test |
| 1143 | public void handleMetaZnodeTooMuchMeta() throws Exception { |
| 1144 | final ZKCallback cb = zk_client.new ZKCallback(); |
| 1145 | final byte[] string = "127.0.0.1,50511,1388534400000".getBytes(CHARSET); |
| 1146 | final byte[] data = new byte[string.length + 65006]; |
| 1147 | data[0] = ZKCallback.MAGIC; |
| 1148 | Bytes.setInt(data, 65001, 1); |
| 1149 | System.arraycopy(string, 0, data, 65006, string.length); |
| 1150 | |
| 1151 | assertNull(cb.handleMetaZnode(data)); |
| 1152 | } |
| 1153 | |
| 1154 | // TODO - shouldn't allow this! |
| 1155 | @Test |
nothing calls this directly
no test coverage detected