コード例 #1
0
  @Test(dependsOnMethods = {"delete"})
  public void doesNotExist() throws Exception {
    for (String zoneId : zones) {
      QueueApi queueApi = api.getQueueApiForZoneAndClient(zoneId, CLIENT_ID);
      boolean success = queueApi.exists("jclouds-test-1");

      assertFalse(success);
    }
  }
コード例 #2
0
  @Test(dependsOnMethods = {"listManyPagesOfQueuesManually"})
  public void exists() throws Exception {
    for (String zoneId : zones) {
      QueueApi queueApi = api.getQueueApiForZoneAndClient(zoneId, CLIENT_ID);
      boolean success = queueApi.exists("jclouds-test-1");

      assertTrue(success);
    }
  }