Annotation Interface WildFlyDomainTest


@Inherited @Documented @Target(TYPE) @Retention(RUNTIME) @Tag("wildfly-domain") @ExtendWith(WildFlyExtension.class) public @interface WildFlyDomainTest
Indicates this test should run in WildFly domain mode.

This annotation is used in conjunction with ServerGroup to specify deployment targets and DomainServer to qualify resource injection for specific servers.

Domain tests are automatically tagged with "wildfly-domain" to allow selective test execution. You cannot mix domain and standalone tests in the same execution, unless the all tests are ManualMode tests and the ManualMode.value() is set to false.

Example:

 @WildFlyDomainTest
 public class DomainDeploymentTest {

     @DeploymentProducer
     @ServerGroup("main-server-group")
     public static WebArchive deployment() {
         return ShrinkWrap.create(WebArchive.class)
                 .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
     }

     @ServerResource
     @DomainServer("server-one")
     private URI uri;

     @Test
     public void test() {
         // Test against domain deployment
     }
 }
 
Author:
James R. Perkins
See Also: