Annotation Interface ServerGroup
Specifies the WildFly domain server group(s) to which a deployment should be deployed.
This annotation is placed on DeploymentProducer or GenerateDeployment methods
in tests annotated with WildFlyDomainTest.
The value can be a single server group or an array of server groups. Server group names must
match those defined in the domain configuration (domain.xml).
Note: This annotation is only used on tests annotated with WildFlyDomainTest.
It is silently ignored on standalone tests (WildFlyTest), which can be useful when using
test inheritance where a domain test extends a standalone test.
Example with single server group:
@DeploymentProducer
@ServerGroup("main-server-group")
public static WebArchive deployment() {
return ShrinkWrap.create(WebArchive.class);
}
Example with multiple server groups:
@DeploymentProducer
@ServerGroup({ "main-server-group", "other-server-group" })
public static WebArchive deployment() {
return ShrinkWrap.create(WebArchive.class);
}
- Author:
- James R. Perkins
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
String[] valueThe name(s) of the server group(s) to deploy to.- Returns:
- an array of server group names
-