Package org.jboss.arquillian.test.spi
Interface TestRunnerAdaptor
public interface TestRunnerAdaptor
TestRunnerAdaptor
Need to be Thread-safe
- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
Method Summary
Modifier and TypeMethodDescriptionvoidafter(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.voidDeactivate 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.voidActivate 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.test(TestMethodExecutor testMethodExecutor) Activate a TestMethod execution.
This will trigger the Test event.
-
Method Details
-
beforeSuite
Activate a new TestSuite.
This will trigger the BeforeSuite event.- Throws:
Exception
-
afterSuite
Deactivate the TestSuite.
This will trigger the AfterSuite event.- Throws:
Exception
-
beforeClass
Activate a new TestClass.
This will trigger the BeforeClass event.- Throws:
Exception
-
afterClass
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
Activate a TestMethod execution.
This will trigger the Test event.- Throws:
Exception
-
fireCustomLifecycle
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.
-