Package com.surftools.BeanstalkClient

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


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

    try {
      client.ignore(null);
      fail("didn't throw");
    } catch (BeanstalkException be) {
      assertEquals("null tubeName", be.getMessage());
    } catch (Exception e) {
      fail("caught unexpected exception: " + e.getClass().getCanonicalName() + ", " + e.getMessage());
View Full Code Here


    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);
  }

  public void testPauseTube() {
View Full Code Here

      for (String tube : list) {
        System.out.println("watching tube: " + tube);
      }
    }

    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.