public interface JunitJupiterExtensionLikeTestRule
extends org.junit.rules.TestRule
TestRule that easily exposes before(org.junit.runners.model.Statement, org.junit.runner.Description), beforeAll(org.junit.runners.model.Statement, org.junit.runner.Description), after(org.junit.runners.model.Statement, org.junit.runner.Description),
afterAll(org.junit.runners.model.Statement, org.junit.runner.Description) callbacks, just like Junit Jupiter API does.| Modifier and Type | Method and Description |
|---|---|
default void |
after(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called after a test is executed.
|
default void |
afterAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called after all tests are executed.
|
default org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
default void |
before(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called after a test is executed.
|
default void |
beforeAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called before all tests are executed.
|
default void |
verify(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called only if a test passes.
|
default void |
verifyAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called only if all tests pass.
|
default org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuledefault void before(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
base - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurresdefault void after(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
base - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurresdefault void verify(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
base - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurresdefault void beforeAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
base - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurresdefault void afterAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
base - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurresdefault void verifyAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
base - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurres