Package dev.enola.common.context.testlib
Class SingletonRule
java.lang.Object
dev.enola.common.context.testlib.SingletonRule
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestWatcher
public class SingletonRule
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.TestWatcher
JUnit Jupiter Extension for
Singleton.-
Method Summary
Modifier and TypeMethodDescriptionstatic SingletonRuleIntended to be statically imported into *Test classes.voidafterAll(org.junit.jupiter.api.extension.ExtensionContext context) voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context) voidstatic SingletonRulevoidtestDisabled(org.junit.jupiter.api.extension.ExtensionContext context, Optional<String> reason) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.TestWatcher
testAborted, testFailed, testSuccessful
-
Method Details
-
$
Intended to be statically imported into *Test classes. -
onlyReset
-
beforeAll
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
afterAll
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
testDisabled
public void testDisabled(org.junit.jupiter.api.extension.ExtensionContext context, Optional<String> reason) - Specified by:
testDisabledin interfaceorg.junit.jupiter.api.extension.TestWatcher
-
doNotReset
-