Package org.wildfly.test.stabilitylevel
Class StabilityServerSetupSnapshotRestoreTasks
java.lang.Object
org.wildfly.test.stabilitylevel.StabilityServerSetupSnapshotRestoreTasks
- All Implemented Interfaces:
org.jboss.as.arquillian.api.ServerSetupTask
- Direct Known Subclasses:
StabilityServerSetupSnapshotRestoreTasks.Community,StabilityServerSetupSnapshotRestoreTasks.Default,StabilityServerSetupSnapshotRestoreTasks.Experimental,StabilityServerSetupSnapshotRestoreTasks.Preview
public abstract class StabilityServerSetupSnapshotRestoreTasks
extends Object
implements org.jboss.as.arquillian.api.ServerSetupTask
For tests that need to run under a specific server stability level,
the server setup tasks from the inner classes can be used to change the stability level of the server to the desired level.
Once the test is done, the original stability level is restored.
In order to not pollute the configuration with XML from a different stability level following the run of the test,
it takes a snapshot of the server configuration in the
setup() method, and then restores to that snapshot in
the teardown() method-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA server setup task that sets the server stability to the community level.static classA server setup task that sets the server stability to the default level.static classA server setup task that sets the server stability to the experimental level.static classA server setup task that sets the server stability to the preview level. -
Constructor Summary
ConstructorsConstructorDescriptionStabilityServerSetupSnapshotRestoreTasks(org.jboss.as.version.Stability desiredStability) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.arquillian.api.ServerSetupTask
executeOperation, executeOperation, executeOperation, executeOperation
-
Constructor Details
-
StabilityServerSetupSnapshotRestoreTasks
public StabilityServerSetupSnapshotRestoreTasks(org.jboss.as.version.Stability desiredStability)
-
-
Method Details
-
setup
public final void setup(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId) throws Exception - Specified by:
setupin interfaceorg.jboss.as.arquillian.api.ServerSetupTask- Throws:
Exception
-
doSetup
protected void doSetup(org.jboss.as.arquillian.container.ManagementClient managementClient) throws Exception - Throws:
Exception
-
tearDown
public final void tearDown(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId) throws Exception - Specified by:
tearDownin interfaceorg.jboss.as.arquillian.api.ServerSetupTask- Throws:
Exception
-
tearDown
public final void tearDown(org.jboss.as.arquillian.container.ManagementClient managementClient) throws Exception - Throws:
Exception
-