private void throwNoContainerFound(TargetDescription target) { throw new ValidationException("DeploymentScenario contains a target (" + target.getName() + ") not matching any defined Container in the registry.\n" + "Please include at least 1 Deployable Container on your Classpath."); }
private void throwNoContainerFound(TargetDescription target) { throw new ValidationException("DeploymentScenario contains a target (" + target.getName() + ") not matching any defined Container in the registry.\n" + "Please include at least 1 Deployable Container on your Classpath."); }
private void throwNoMatchFound(ContainerRegistry conReg, TargetDescription target) { throw new ValidationException("DeploymentScenario contains a target (" + target.getName() + ") not matching any defined Container in the registry.\n" + "Possible causes are: None of the " + conReg.getContainers().size() + " Containers are marked as default or you have defined a " + "@" + org.jboss.arquillian.container.test.api.Deployment.class.getSimpleName() + " with a @" + TargetsContainer.class.getSimpleName() + " of value (" + target.getName() + ") that " + "does not match any found/configured Containers (" + toString(conReg) + "), see arquillian.xml container@qualifier"); }
private void throwNoMatchFound(ContainerRegistry conReg, TargetDescription target) { throw new ValidationException("DeploymentScenario contains a target (" + target.getName() + ") not matching any defined Container in the registry.\n" + "Possible causes are: None of the " + conReg.getContainers().size() + " Containers are marked as default or you have defined a " + "@" + org.jboss.arquillian.container.test.api.Deployment.class.getSimpleName() + " with a @" + TargetsContainer.class.getSimpleName() + " of value (" + target.getName() + ") that " + "does not match any found/configured Containers (" + toString(conReg) + "), see arquillian.xml container@qualifier"); }
private String createFileName(DeploymentDescription deployment, Archive<?> archive) { // TODO: where do we get TestClass name from ? return deployment.getTarget().getName() + "_" + deployment.getName() + "_" + archive.getName(); }
private String createFileName(DeploymentDescription deployment, Archive<?> archive) { // TODO: where do we get TestClass name from ? return deployment.getTarget().getName() + "_" + deployment.getName() + "_" + archive.getName(); }
@Override public Container getContainer(TargetDescription target) { Validate.notNull(target, "Target must be specified"); if (TargetDescription.DEFAULT.equals(target)) { return findDefaultContainer(); } return findMatchingContainer(target.getName()); }
@Override public Container getContainer(TargetDescription target) { Validate.notNull(target, "Target must be specified"); if (TargetDescription.DEFAULT.equals(target)) { return findDefaultContainer(); } return findMatchingContainer(target.getName()); }
@Override public Container getContainer(TargetDescription target) { Validate.notNull(target, "Target must be specified"); if (TargetDescription.DEFAULT.equals(target)) { return findDefaultContainer(); } return findMatchingContainer(target.getName()); }
public void observeBeforeDeploy(@Observes BeforeDeploy event) { DeploymentReport deploymentReport = new DeploymentReport(); DeploymentDescription description = event.getDeployment(); deploymentReport.setArchiveName(description.getArchive().getName()); deploymentReport.setName(description.getName()); int order = description.getOrder(); if (order > 0) { deploymentReport.setOrder(order); } String protocol = description.getProtocol().getName(); if (!protocol.equals("_DEFAULT_")) { deploymentReport.setProtocol(protocol); } else { deploymentReport.setProtocol("_DEFAULT_"); } deploymentReport.setTarget(description.getTarget().getName()); boolean reported = false; for (ContainerReport containerReport : reporter.get().getLastTestSuiteReport().getContainerReports()) { if (containerReport.getQualifier().equals(deploymentReport.getTarget())) { containerReport.getDeploymentReports().add(deploymentReport); reported = true; break; } } if (!reported) { if (reporter.get().getLastTestSuiteReport().getContainerReports().size() == 1) { reporter.get().getLastTestSuiteReport().getContainerReports().get(0).getDeploymentReports().add(deploymentReport); } } }