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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceWhen present on a test class, nested test class or test method, the RestoreDataExtension will restore the dataset before any of the tests executes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeAll(int node, org.junit.jupiter.api.extension.ExtensionContext context, com.atlassian.pageobjects.inject.InjectionContext injectionContext) voidbeforeEach(int node, org.junit.jupiter.api.extension.ExtensionContext context, com.atlassian.pageobjects.inject.InjectionContext injectionContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.pageobjects.config.junit5.extension.callback.NodeAwareBeforeAllCallback
beforeAll, getBeforeAllScopeMethods inherited from interface com.atlassian.jira.pageobjects.config.junit5.extension.callback.NodeAwareBeforeEachCallback
beforeEach, getBeforeEachScope
-
Constructor Details
-
RestoreDataExtension
public RestoreDataExtension()
-
-
Method Details
-
afterEach
- Specified by:
afterEachin interfaceorg.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:
beforeAllin interfaceNodeAwareBeforeAllCallback
-
beforeEach
public void beforeEach(int node, org.junit.jupiter.api.extension.ExtensionContext context, com.atlassian.pageobjects.inject.InjectionContext injectionContext) - Specified by:
beforeEachin interfaceNodeAwareBeforeEachCallback
-