TestLifecycle
public class DefaultTestLifecycle extends Object implements TestLifecycle
Constructor | Description |
---|---|
DefaultTestLifecycle() |
Modifier and Type | Method | Description |
---|---|---|
void |
afterTest(Method method) |
Called after each test method is run.
|
void |
beforeTest(Method method) |
Called before each test method is run.
|
void |
prepareTest(Object test) |
Called after each test method is run.
|
public void beforeTest(Method method)
beforeTest
in interface TestLifecycle
method
- the test method about to be runpublic void prepareTest(Object test)
TestLifecycle
prepareTest
in interface TestLifecycle
test
- the instance of the test class that is about to be usedpublic void afterTest(Method method)
afterTest
in interface TestLifecycle
method
- the test method that just ran.