Package io.helidon.common.testing.junit5
Class RestoreSystemPropertiesExt
- java.lang.Object
-
- io.helidon.common.testing.junit5.RestoreSystemPropertiesExt
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback
,org.junit.jupiter.api.extension.BeforeTestExecutionCallback
,org.junit.jupiter.api.extension.Extension
public class RestoreSystemPropertiesExt extends Object implements org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.AfterTestExecutionCallback
JUnit 5 extension for preserving and restoring system properties around test executions.Annotate each test method that modifies system properties using
@ExtendWith(RestoreSystemPropertiesExt.class)
-
-
Constructor Summary
Constructors Constructor Description RestoreSystemPropertiesExt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext ec)
void
beforeTestExecution(org.junit.jupiter.api.extension.ExtensionContext ec)
-