Ejemplo n.º 1
0
  public void tearDown() {
    try {
      Thread.sleep(12000);

      this.shootist.checkState();

      int ackCount = 0;

      for (Shootme shootme : this.shootme) {
        shootme.checkState();

        if (shootme.isAckSeen()) {
          ackCount++;
        }
      }

      assertEquals("ACK count must be exactly 2", 2, ackCount);

      this.shootist.stop();

      for (Shootme shootme : this.shootme) {

        shootme.stop();
      }

      this.proxy.stop();
    } catch (Exception ex) {
      ex.printStackTrace();
      logger.error("unexpected exception", ex);
      fail("unexpected exception ");
    }
  }