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
TestRunnerAdaptor
beforeSuite
in interface TestRunnerAdaptor
Exception
public void afterSuite() throws Exception
TestRunnerAdaptor
afterSuite
in interface TestRunnerAdaptor
Exception
public void beforeClass(Class<?> testClass, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptor
beforeClass
in interface TestRunnerAdaptor
Exception
public void afterClass(Class<?> testClass, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptor
afterClass
in interface TestRunnerAdaptor
Exception
public void before(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptor
before
in interface TestRunnerAdaptor
Exception
public void after(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) throws Exception
TestRunnerAdaptor
after
in interface TestRunnerAdaptor
Exception
public TestResult test(TestMethodExecutor testMethodExecutor) throws Exception
TestRunnerAdaptor
test
in interface TestRunnerAdaptor
Exception
public <T extends TestLifecycleEvent> void fireCustomLifecycle(T event) throws Exception
TestRunnerAdaptor
fireCustomLifecycle
in interface TestRunnerAdaptor
event
- Any eventException
public void shutdown()
TestRunnerAdaptor
shutdown
in interface TestRunnerAdaptor
Copyright © 2017 JBoss by Red Hat. All rights reserved.