Examples of listTubesWatched()


Examples of com.surftools.BeanstalkClient.Client.listTubesWatched()

  public void testIgnoreDefaultTube() {
    Client client = new ClientImpl(TEST_HOST, TEST_PORT);

    final String DEFAULT_TUBE = "default";
    List<String> tubeNames = client.listTubesWatched();
    assertEquals(1, tubeNames.size());
    assertEquals(DEFAULT_TUBE, tubeNames.get(0));

    int watchCount = client.ignore(DEFAULT_TUBE);
    assertEquals(-1, watchCount);
View Full Code Here

Examples of com.surftools.BeanstalkClient.Client.listTubesWatched()

    }
  }

  public void testListTubesWatched() {
    Client client = new ClientImpl(TEST_HOST, TEST_PORT);
    List<String> list = client.listTubesWatched();
    assertNotNull(list);
    int initialWatchCount = list.size();
    assertTrue(initialWatchCount >= 1);

    String tubeName = "tube-" + UUID.randomUUID().toString();
View Full Code Here

Examples of com.surftools.BeanstalkClient.Client.listTubesWatched()

    String tubeName = "tube-" + UUID.randomUUID().toString();
    int watchCount = client.watch(tubeName);
    assertEquals(initialWatchCount + 1, watchCount);

    list = client.listTubesWatched();
    assertNotNull(list);
    assertEquals(watchCount, list.size());
    assertTrue(list.contains(tubeName));

    boolean dump = false;
View Full Code Here

Examples of com.surftools.BeanstalkClient.Client.listTubesWatched()

      }
    }

    watchCount = client.ignore(tubeName);
    assertEquals(initialWatchCount, watchCount);
    list = client.listTubesWatched();
    assertNotNull(list);
    assertEquals(initialWatchCount, list.size());
    assertFalse(list.contains(tubeName));

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.