Class RestoreDataExtension

java.lang.Object
com.atlassian.jira.pageobjects.config.junit5.extension.RestoreDataExtension
All Implemented Interfaces:
NodeAwareBeforeAllCallback, NodeAwareBeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

@ExperimentalApi public class RestoreDataExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback, NodeAwareBeforeAllCallback, NodeAwareBeforeEachCallback
An extension responsible for restoring the data during the test.

You can control what will be restored and whether it will happen once for a test class with RestoreDataExtension.RestoreDataset annotation.

Since:
11.0.0
  • Constructor Details

    • RestoreDataExtension

      public RestoreDataExtension()
  • Method Details

    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Throws:
      Exception
    • beforeAll

      public void beforeAll(int node, org.junit.jupiter.api.extension.ExtensionContext context, com.atlassian.pageobjects.inject.InjectionContext injectionContext)
      Specified by:
      beforeAll in interface NodeAwareBeforeAllCallback
    • beforeEach

      public void beforeEach(int node, org.junit.jupiter.api.extension.ExtensionContext context, com.atlassian.pageobjects.inject.InjectionContext injectionContext)
      Specified by:
      beforeEach in interface NodeAwareBeforeEachCallback