Class ClassLifecycleEvent
java.lang.Object
org.jboss.arquillian.test.spi.event.suite.SuiteEvent
org.jboss.arquillian.test.spi.event.suite.ClassEvent
org.jboss.arquillian.test.spi.event.suite.ClassLifecycleEvent
- All Implemented Interfaces:
Event,LifecycleEvent
- Direct Known Subclasses:
AfterClass,BeforeClass
A ClassLifeCycleEvent is a type of ClassEvent used for e.g. @BeforeClass/@AfterClass operations on the
TestClass.
- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
Constructor Summary
ConstructorsConstructorDescriptionClassLifecycleEvent(Class<?> testClass) Create a new ClassLifecycleEvent for a specific Class.ClassLifecycleEvent(Class<?> testClass, LifecycleMethodExecutor executor) Create a new ClassLifecycleEvent for a specific Class.ClassLifecycleEvent(TestClass testClass) Create a new ClassLifecycleEvent for a specific Class.ClassLifecycleEvent(TestClass testClass, LifecycleMethodExecutor executor) Create a new ClassLifecycleEvent for a specific Class. -
Method Summary
Modifier and TypeMethodDescriptionGet the call back handler for this lifecycle method.Methods inherited from class org.jboss.arquillian.test.spi.event.suite.ClassEvent
getTestClass
-
Constructor Details
-
ClassLifecycleEvent
Create a new ClassLifecycleEvent for a specific Class.
This will use a NO_OP LifecycleMethodExecutor.- Parameters:
testClass- The source for this ClassEvent
-
ClassLifecycleEvent
Create a new ClassLifecycleEvent for a specific Class.
This will use a NO_OP LifecycleMethodExecutor.- Parameters:
testClass- The source for this ClassEvent
-
ClassLifecycleEvent
Create a new ClassLifecycleEvent for a specific Class.- Parameters:
testClass- The source for this ClassEventexecutor- A call back when the LifecycleMethod represented by this event should be invoked
-
ClassLifecycleEvent
Create a new ClassLifecycleEvent for a specific Class.- Parameters:
testClass- The source for this ClassEventexecutor- A call back when the LifecycleMethod represented by this event should be invoked
-
-
Method Details
-
getExecutor
Description copied from interface:LifecycleEventGet the call back handler for this lifecycle method.- Specified by:
getExecutorin interfaceLifecycleEvent- Returns:
- the executor
-