Package org.jboss.arquillian.test.spi
Interface TestRunnerAdaptor
-
public interface TestRunnerAdaptor
TestRunnerAdaptorNeed to be Thread-safe
- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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>
voidfireCustomLifecycle(T event)
Fire any custom Test Lifecycle event.
This can be used by a TestFramework to trigger e.g. additional Lifecycle phases not described directly by the Test SPI.void
shutdown()
Shutdown Arquillian cleanly.TestResult
test(TestMethodExecutor testMethodExecutor)
Activate a TestMethod execution.
This will trigger the Test event.
-
-
-
Method Detail
-
beforeSuite
void beforeSuite() throws Exception
Activate a new TestSuite.
This will trigger the BeforeSuite event.- Throws:
Exception
-
afterSuite
void afterSuite() throws Exception
Deactivate the TestSuite.
This will trigger the AfterSuite event.- Throws:
Exception
-
beforeClass
void beforeClass(Class<?> testClass, LifecycleMethodExecutor executor) throws Exception
Activate a new TestClass.
This will trigger the BeforeClass event.- Throws:
Exception
-
afterClass
void afterClass(Class<?> testClass, LifecycleMethodExecutor executor) throws Exception
Deactivate the TestClass.
This will trigger the AfterClass event.- Throws:
Exception
-
before
void before(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) throws Exception
Activate a new TestInstance.
This will trigger the Before event.- Throws:
Exception
-
after
void after(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) throws Exception
Deactivate the TestInstance.
This will trigger the After event.- Throws:
Exception
-
test
TestResult test(TestMethodExecutor testMethodExecutor) throws Exception
Activate a TestMethod execution.
This will trigger the Test event.- Throws:
Exception
-
fireCustomLifecycle
<T extends TestLifecycleEvent> void fireCustomLifecycle(T event) throws Exception
Fire any custom Test Lifecycle event.
This can be used by a TestFramework to trigger e.g. additional Lifecycle phases not described directly by the Test SPI.- Parameters:
event
- Any event- Throws:
Exception
-
shutdown
void shutdown()
Shutdown Arquillian cleanly.
-
-