Class TestLifecycleEvent

All Implemented Interfaces:
Event, LifecycleEvent
Direct Known Subclasses:
AfterTestLifecycleEvent, BeforeTestLifecycleEvent

public class TestLifecycleEvent extends TestEvent implements LifecycleEvent
A TestLifeCycleEvent is a type of TestEvent used for e.g. @Before/@After operations on the Test instance.
Version:
$Revision: $
Author:
Aslak Knutsen
  • Constructor Details

    • TestLifecycleEvent

      public TestLifecycleEvent(Object testInstance, Method testMethod)
      Create a new TestLifecycleEvent for a specific testInstance executing a specific testMethod.

      This will use a NO_OP LifecycleMethodExecutor.
      Parameters:
      testInstance - The Test instance
      testMethod - The Test Method being executed
    • TestLifecycleEvent

      public TestLifecycleEvent(Object testInstance, Method testMethod, LifecycleMethodExecutor executor)
      Create a new TestLifecycleEvent for a specific testInstance executing a specific testMethod.
      Parameters:
      testInstance - The Test instance
      testMethod - The Test Method being executed
      executor - A call back when the LifecycleMethod represented by this event should be invoked
  • Method Details