()
| 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 { |
nothing calls this directly
no test coverage detected