@AfterSuite(alwaysRun = true, groups = "scaffold") public void afterSuite() throws Exception { if (isSuiteDeployingTestsToContainer()) { getCurrentConfiguration().getContainers().cleanup(); } if (getCurrentConfiguration().isStandalone()) { getCurrentConfiguration().getStandaloneContainers().cleanup(); } }
@BeforeSuite(alwaysRun = true, groups = "scaffold") public void beforeSuite(ITestContext context) throws Exception { if (isSuiteDeployingTestsToContainer()) { getCurrentConfiguration().getContainers().setup(); } if (getCurrentConfiguration().isStandalone()) { getCurrentConfiguration().getStandaloneContainers().setup(); } checkAssertionsEnabled(); }
private void undeployArtifact() throws Exception { if (isDeployToContainerNeeded()) { getCurrentConfiguration().getContainers().undeploy(artifact.getDefaultName()); } if (getCurrentConfiguration().isStandalone() && artifact != null && artifact.isUnit()) { getCurrentConfiguration().getStandaloneContainers().undeploy(); } }
public ConfigurationImpl(Configuration configuration) { this.outputDirectory = configuration.getOutputDirectory(); this.standalone = configuration.isStandalone(); this.runIntegrationTests = configuration.isRunIntegrationTests(); this.connectTimeout = configuration.getConnectTimeout(); this.libraryDirectory = configuration.getLibraryDirectory(); this.testLauncher = configuration.getInContainerTestLauncher(); this.containers = configuration.getContainers(); this.standaloneContainers = configuration.getStandaloneContainers(); this.host = configuration.getHost(); this.extraPackages = configuration.getExtraPackages(); this.extraResources = configuration.getExtraResources(); }
if (!getCurrentConfiguration().getContainers().deploy(jar, artifact.getDefaultName())) this.deploymentException = handleDeploymentFailure(getCurrentConfiguration().getContainers().getDeploymentException());