@Ignore @Test public void testAsynPut() throws IOException, InterruptedException, ExecutionException { client.use("kk"); for (int i = 0; i < 3; i++) { Job job = new Job("haha".getBytes()); Assert.assertEquals(0, client.asynput(job)); } }
@Test public void testPut() throws IOException { client.use("kk"); for (int i = 0; i < 3; i++) { Job job = new Job("haha".getBytes()); int res = client.put(job); Assert.assertEquals(0, res); ; } }