コード例 #1
0
  /**
   * {@inheritDoc}
   *
   * @see edu.upenn.cis.orchestra.AbstractMultiSystemOrchestraTest#shutdownImpl()
   */
  @Override
  protected void shutdownImpl() throws Exception {
    for (ITestFrameWrapper<OrchestraSystem> frame : peerToOrchestraSystemFrame.values()) {
      OrchestraSystem orchestraSystem = frame.getOrchestraController();
      if (orchestraSystem != null) {
        orchestraSystem.getMappingDb().finalize();
        orchestraSystem.reset(false);
        orchestraSystem.getMappingDb().disconnect();
        Assert.assertFalse(
            orchestraSystem.getMappingDb().isConnected(), "Mapping DB did not disconnect.");
        orchestraSystem.disconnect();

        logger.debug("Shutting down Orchestra system.");
      }
    }
  }