public class TestLifecycleEvent extends TestEvent implements LifecycleEvent
Modifier and Type | Field and Description |
---|---|
private LifecycleMethodExecutor |
executor |
Constructor and Description |
---|
TestLifecycleEvent(java.lang.Object testInstance,
java.lang.reflect.Method testMethod)
Create a new TestLifecycleEvent for a specific testInstance executing a specific testMethod.
|
TestLifecycleEvent(java.lang.Object testInstance,
java.lang.reflect.Method testMethod,
LifecycleMethodExecutor executor)
Create a new TestLifecycleEvent for a specific testInstance executing a specific testMethod.
|
Modifier and Type | Method and Description |
---|---|
LifecycleMethodExecutor |
getExecutor()
Get the call back handler for this lifecycle method.
|
getTestInstance, getTestMethod
getTestClass
private LifecycleMethodExecutor executor
public TestLifecycleEvent(java.lang.Object testInstance, java.lang.reflect.Method testMethod)
testInstance
- The Test instancetestMethod
- The Test Method being executedpublic TestLifecycleEvent(java.lang.Object testInstance, java.lang.reflect.Method testMethod, LifecycleMethodExecutor executor)
testInstance
- The Test instancetestMethod
- The Test Method being executedexecutor
- A call back when the LifecycleMethod represented by this event should be invokedpublic LifecycleMethodExecutor getExecutor()
LifecycleEvent
getExecutor
in interface LifecycleEvent