public void setUp() throws DeploymentException { fLogger.info("Now starting local HTTP server..."); try { getLocalServer().startServer(); } catch (Exception e) { fLogger .error("Error starting local HTTP server: " + e.getMessage()); throw new DeploymentException( "Could not start local HTTP server - maybe the address is in use? ", e); } fLogger.info("Now deploying PUT: " + fProcessUnderTest); fProcessUnderTest.deploy(); }
public void shutDown() throws DeploymentException { fLogger.info("Now stopping fixture server..."); // Stop the server first (before any DeploymentExceptions are thrown by // the undeployer) try { getLocalServer().stopServer(); } catch (InterruptedException e) { // do nothing. } if (fProcessUnderTest.isDeployed()) { fLogger.info("Now undeploying: " + fProcessUnderTest); fProcessUnderTest.undeploy(); } }
public void run() { fSuite.startTestCase(this); fRunner= new TestCaseRunner(fSuite.getLocalServer(), this); fRunner.run(); for (PartnerTrack partnerTrack : fPartnerTracks) { if (partnerTrack.getStatus().isError()) { fStatus= partnerTrack.getStatus(); } else if (partnerTrack.getStatus().isFailure()) { fStatus= partnerTrack.getStatus(); } } if (fAbortedByUser) { fStatus= ArtefactStatus.createAbortedStatus("Aborted by user."); } if (!fStatus.hasProblems()) { fStatus= ArtefactStatus.createPassedStatus(); } fSuite.endTestCase(this); }