/** * Get a {@link DeploymentDescription} with a specific name if it exists. * * @param target * The name of the {@link DeploymentDescription} * * @return Defined Deployment or null if not found. */ public Deployment deployment(DeploymentTargetDescription target) { Validate.notNull(target, "Target must be specified"); if (DeploymentTargetDescription.DEFAULT.equals(target)) { return findDefaultDeployment(); } return findMatchingDeployment(target); }
@Override public String toString() { return getName(); } }
public DeploymentDescription(String name, Archive<?> archive) { this(name); Validate.notNull(archive, "Archive must be specified"); this.archive = archive; }
private DeploymentDescription createDeploymentDescription(String targetName) { return new DeploymentDescription(DEPLOYMENT_NAME, ShrinkWrap.create(JavaArchive.class)) .setTarget(new TargetDescription(targetName)); } }
private void setupAndExecuteUnDeployment(String containerName, boolean managed) { DeploymentDescription description = createDeploymentDescription(containerName) .shouldBeManaged(managed); scenario.get().addDeployment(description); controller.get().start(containerName); scenario.get().deployment(new DeploymentTargetDescription(DEPLOYMENT_NAME)).deployed(); controller.get().stop(containerName); }
public DeploymentScenario addDeployment(DeploymentDescription deployment) { Validate.notNull(deployment, "Deployment must be specified"); validateNotSameNameAndTypeOfDeployment(deployment); validateNotSameArchiveAndSameTarget(deployment); this.deployments.add(new Deployment(deployment)); return this; }
public void validate() throws ConfigurationException { Validate.configurationDirectoryExists(jbossHome, "Either JBOSS_HOME environment variable or jbossHome property in Arquillian configuration must be set and point to a valid directory"); Validate.configurationDirectoryExists(javaHome, "Either JAVA_HOME environment variable or javaHome property in Arquillian configuration must be set and point to a valid directory"); }
/** * @param target * the target to set */ public DeploymentDescription setTarget(TargetDescription target) { Validate.notNull(target, "TargetDescription must be specified"); this.target = target; return this; }
private DeploymentDescription createDeploymentDescription(String targetName) { return new DeploymentDescription(DEPLOYMENT_NAME, ShrinkWrap.create(JavaArchive.class)) .setTarget(new TargetDescription(targetName)); } }
@Override public String toString() { return getName(); } }
public DeploymentScenario addDeployment(DeploymentDescription deployment) { Validate.notNull(deployment, "Deployment must be specified"); validateNotSameNameAndTypeOfDeployment(deployment); validateNotSameArchiveAndSameTarget(deployment); this.deployments.add(new Deployment(deployment)); return this; }
/** * Get a {@link DeploymentDescription} with a specific name if it exists. * * @param target * The name of the {@link DeploymentDescription} * * @return Defined Deployment or null if not found. */ public Deployment deployment(DeploymentTargetDescription target) { Validate.notNull(target, "Target must be specified"); if (DeploymentTargetDescription.DEFAULT.equals(target)) { return findDefaultDeployment(); } return findMatchingDeployment(target); }
public DeploymentDescription(String name, Archive<?> archive) { this(name); Validate.notNull(archive, "Archive must be specified"); this.archive = archive; }
/** * @param target * the target to set */ public DeploymentDescription setTarget(TargetDescription target) { Validate.notNull(target, "TargetDescription must be specified"); this.target = target; return this; }
public DeploymentDescription(String name, Descriptor descriptor) { this(name); Validate.notNull(descriptor, "Descriptor must be specified"); this.descriptor = descriptor; }
public DeploymentDescription(String name, Descriptor descriptor) { this(name); Validate.notNull(descriptor, "Descriptor must be specified"); this.descriptor = descriptor; }
public Deployment(DeploymentDescription description) { Validate.notNull(description, "Description must be specified"); this.description = description; }
public Deployment(DeploymentDescription description) { Validate.notNull(description, "Description must be specified"); this.description = description; }
private DeploymentDescription(String name) { Validate.notNull(name, "Name must be specified"); this.name = name; }
private DeploymentDescription(String name) { Validate.notNull(name, "Name must be specified"); this.name = name; }