public class EventTestRunnerAdaptor extends Object implements TestRunnerAdaptor
| Constructor and Description |
|---|
EventTestRunnerAdaptor(Manager manager) |
EventTestRunnerAdaptor(ManagerBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(Object testInstance,
Method testMethod,
LifecycleMethodExecutor executor)
Deactivate the TestInstance.
This will trigger the After event. |
void |
afterClass(Class<?> testClass,
LifecycleMethodExecutor executor)
Deactivate the TestClass.
This will trigger the AfterClass event. |
void |
afterSuite()
Deactivate the TestSuite.
This will trigger the AfterSuite event. |
void |
before(Object testInstance,
Method testMethod,
LifecycleMethodExecutor executor)
Activate a new TestInstance.
This will trigger the Before event. |
void |
beforeClass(Class<?> testClass,
LifecycleMethodExecutor executor)
Activate a new TestClass.
This will trigger the BeforeClass event. |
void |
beforeSuite()
Activate a new TestSuite.
This will trigger the BeforeSuite event. |
<T extends TestLifecycleEvent> |
fireCustomLifecycle(T event)
Fire any custom Test Lifecycle event.
This can be used by a TestFramework to trigger e.g. |
void |
shutdown()
Shutdown Arquillian cleanly.
|
TestResult |
test(TestMethodExecutor testMethodExecutor)
Activate a TestMethod execution.
This will trigger the Test event. |
public EventTestRunnerAdaptor(ManagerBuilder builder)
public EventTestRunnerAdaptor(Manager manager)
public void beforeSuite()
throws Exception
TestRunnerAdaptorbeforeSuite in interface TestRunnerAdaptorExceptionpublic void afterSuite()
throws Exception
TestRunnerAdaptorafterSuite in interface TestRunnerAdaptorExceptionpublic void beforeClass(Class<?> testClass, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptorbeforeClass in interface TestRunnerAdaptorExceptionpublic void afterClass(Class<?> testClass, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptorafterClass in interface TestRunnerAdaptorExceptionpublic void before(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptorbefore in interface TestRunnerAdaptorExceptionpublic void after(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptorafter in interface TestRunnerAdaptorExceptionpublic TestResult test(TestMethodExecutor testMethodExecutor) throws Exception
TestRunnerAdaptortest in interface TestRunnerAdaptorExceptionpublic <T extends TestLifecycleEvent> void fireCustomLifecycle(T event) throws Exception
TestRunnerAdaptorfireCustomLifecycle in interface TestRunnerAdaptorevent - Any eventExceptionpublic void shutdown()
TestRunnerAdaptorshutdown in interface TestRunnerAdaptorCopyright © 2023 JBoss by Red Hat. All rights reserved.