|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Deployment
The @Deployment
is used to define which methods should be be considered as deployment producers. Arquillian support
two types of deployment units, a Archive
or a Descriptor
.
A deployment represent the isolation level of your test, that being a single JavaArchive or a multi module EnterpriseArchive.
The deployment producer will be executed to create the deployment before the Test run, this to detect environment problems as soon as possible.
Usage Example:
@Deployment
public static WebArchive create() {
return ShrinkWrap.create(WebArchive.class);
}
@Deployment
public static Descriptor create() {
return Descriptors.create(HornetQDescriptor.class);
}
Optional Element Summary | |
---|---|
boolean |
managed
Describes whether or not this deployment should be deployed by Arquillian. |
String |
name
Name the deployment so you can reference it using the Deployer API if managed is false or method is using @OperateOnDeployment |
int |
order
If multiple deployments are specified against the same target and defined as startup, this control the order of which they will be given to the Container. |
boolean |
testable
Defines if this deployment should be wrapped up based on the protocol so the testcase can be executed incontainer. |
public abstract String name
Deployer
API if managed is false or method is using @OperateOnDeployment
public abstract boolean managed
public abstract int order
public abstract boolean testable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |