public class CheckUserWorkingDirExtension extends java.lang.Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
user.dir
system property.Constructor and Description |
---|
CheckUserWorkingDirExtension() |
Modifier and Type | Method and Description |
---|---|
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
Assert that the test does not modify the working directory, or at least
resets it.
|
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
Store the working directory, so we can check for modification after the test.
|
public CheckUserWorkingDirExtension()
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
beforeEach
in interface org.junit.jupiter.api.extension.BeforeEachCallback
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
afterEach
in interface org.junit.jupiter.api.extension.AfterEachCallback