Esempio n. 1
0
 @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));
   }
 }
Esempio n. 2
0
 @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);
     ;
   }
 }