Package org.jboss.arquillian.test.spi
Interface TestRunnerAdaptor
-
public interface TestRunnerAdaptorTestRunnerAdaptorNeed to be Thread-safe
- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafter(Object testInstance, Method testMethod, LifecycleMethodExecutor executor)Deactivate the TestInstance.
This will trigger the After event.voidafterClass(Class<?> testClass, LifecycleMethodExecutor executor)Deactivate the TestClass.
This will trigger the AfterClass event.voidafterSuite()Deactivate the TestSuite.
This will trigger the AfterSuite event.voidbefore(Object testInstance, Method testMethod, LifecycleMethodExecutor executor)Activate a new TestInstance.
This will trigger the Before event.voidbeforeClass(Class<?> testClass, LifecycleMethodExecutor executor)Activate a new TestClass.
This will trigger the BeforeClass event.voidbeforeSuite()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.voidshutdown()Shutdown Arquillian cleanly.TestResulttest(TestMethodExecutor testMethodExecutor)Activate a TestMethod execution.
This will trigger the Test event.
-
-
-
Method Detail
-
beforeSuite
void beforeSuite() throws ExceptionActivate a new TestSuite.
This will trigger the BeforeSuite event.- Throws:
Exception
-
afterSuite
void afterSuite() throws ExceptionDeactivate 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.
-
-