Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2014 Red Hat, Inc. and/or its affiliates.
  *
  * Licensed under the Eclipse Public License version 1.0, available at
  * http://www.eclipse.org/legal/epl-v10.html
  */
 package org.jboss.forge.arquillian;
 
import  org.jboss.arquillian.container.spi.client.container.DeploymentException;
import  org.jboss.arquillian.container.test.api.Deployment;
Specifies an Addon that must be deployed before this

Author(s):
Lincoln Baxter, III
:
@link Deployment} may be performed.
public @interface AddonDeployment
{
   
Set the AddonId for this Addon deployment.

Returns:
   String name();

   
If version is empty, resolve to the version specified in the pom.xml of the project being tested
   String version() default "";

   
Whether or not the specified AddonId should be imported as a dependency to the current Deployment. (Default false.)
   boolean imported() default false;

   
Whether or not the specified AddonId should be exported to dependencies of the current Deployment. (Default false.)
   boolean exported() default false;

   
Whether or not the specified AddonId should be marked as an optional dependency of the current Deployment. (Default false.)
   boolean optional() default false;

   
Set the quantity of TimeUnit after which a DeploymentException should be thrown if this AddonDeployment has not yet finished deploying. (Default TimeUnit.MILLISECONDS).
   int timeout() default 10000;

   
Set the TimeUnit after which a DeploymentException should be thrown if this AddonDeployment has not yet finished deploying. (Default TimeUnit.MILLISECONDS).
   TimeUnit timeoutUnit() default .;

   
Set the DeploymentListener for this AddonDeployment.
   Class<? extends DeploymentListener>[] listener() default {};

   
Set the expected deployment exception for this AddonDependency
   Class<? extends ExceptionshouldThrowException() default NullException.class;
New to GrepCode? Check out our FAQ X