Package org.jboss.as.test.shared
Class SnapshotRestoreSetupTask
java.lang.Object
org.jboss.as.test.shared.SnapshotRestoreSetupTask
- All Implemented Interfaces:
org.jboss.as.arquillian.api.ServerSetupTask
- Direct Known Subclasses:
AbstractDataSourceServerSetupTask
public class SnapshotRestoreSetupTask
extends Object
implements org.jboss.as.arquillian.api.ServerSetupTask
ServerSetupTask that takes a snapshot when the test starts, and then restores it at the end
If this setup task is in use it should be the first setup task in the task list, as otherwise the snapshot will have changes from the previous setup task.
It can either be used standalone or via inheritance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidfinal voidfinal voidMethods 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
-
SnapshotRestoreSetupTask
public SnapshotRestoreSetupTask()
-
-
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 client, String containerId) 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
-
nonManagementCleanUp
- Throws:
Exception
-