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