@After
  public void tearDown() {
    endpoint.deleteAllConnections();

    endpoint.stop();
    scheduler.stop();
  }
Example #2
0
  @After
  @Override
  public void tearDown() {
    if (endpoint1 != null) {
      endpoint1.stop();
    }

    if (endpoint2 != null) {
      endpoint2.stop();
    }

    if (endpoint3 != null) {
      endpoint3.stop();
    }

    if (endpoint4 != null) {
      endpoint4.stop();
    }

    super.tearDown();
  }
 @After
 public void tearDown() {
   endpoint.stop();
   scheduler.stop();
 }