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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doSetup(org.jboss.as.arquillian.container.ManagementClient client, String containerId)
     
    protected void
     
    final void
    setup(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId)
     
    final void
    tearDown(org.jboss.as.arquillian.container.ManagementClient managementClient, String containerId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      setup in interface org.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:
      tearDown in interface org.jboss.as.arquillian.api.ServerSetupTask
      Throws:
      Exception
    • nonManagementCleanUp

      protected void nonManagementCleanUp() throws Exception
      Throws:
      Exception