Пример #1
0
  @Test
  public void delete() {
    String name = host.getName();

    res = host.delete();
    assertTrue(res.getErrorMessage(), !res.isError());

    res = host.info();
    assertTrue(res.isError());

    res = hostPool.info();
    assertTrue(res.getErrorMessage(), !res.isError());

    boolean found = false;
    for (Host h : hostPool) {
      found = found || h.getName().equals(name);
    }

    assertTrue(!found);
  }
Пример #2
0
 /** @throws java.lang.Exception */
 @After
 public void tearDown() throws Exception {
   host.delete();
   Thread.sleep(2000);
 }