TestLifecyclepublic 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 TestLifecyclemethod - the test method about to be runpublic void prepareTest(Object test)
TestLifecycleprepareTest in interface TestLifecycletest - the instance of the test class that is about to be usedpublic void afterTest(Method method)
afterTest in interface TestLifecyclemethod - the test method that just ran.