Examples of listTubeUsed()


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

  // Consumer methods
  // stats-related
  // ****************************************************************
  public void testListTubeUsed() {
    Client client = new ClientImpl(TEST_HOST, TEST_PORT);
    String s = client.listTubeUsed();
    assertNotNull(s);

    boolean dump = false;
    if (dump) {
      System.out.println("using tube: " + s);
View Full Code Here

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

    popWatchedTubes(client, tubeNames);
  }

  public void testClose() {
    Client client = new ClientImpl(TEST_HOST, TEST_PORT);
    String s = client.listTubeUsed();
    assertNotNull(s);

    client.close();
    try {
      client.listTubeUsed();
View Full Code Here

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

    String s = client.listTubeUsed();
    assertNotNull(s);

    client.close();
    try {
      client.listTubeUsed();
      fail("didn't throw expected exception");
    } catch (BeanstalkException be) {
      String message = be.getMessage();
      assertEquals("Socket is closed", message);
    } catch (Exception e) {
View Full Code Here

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

    }

    // close again
    client.close();
    try {
      client.listTubeUsed();
      fail("didn't throw expected exception");
    } catch (BeanstalkException be) {
      String message = be.getMessage();
      assertEquals("Socket is closed", message);
    } catch (Exception e) {
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.