org.jboss.arquillian.test.spi
Interface TestRunnerAdaptor

All Known Implementing Classes:
EventTestRunnerAdaptor

public interface TestRunnerAdaptor

TestRunnerAdaptor Need to be Thread-safe

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
 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.
 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.

Parameters:
testClass -
executor -
Throws:
Exception

afterClass

void afterClass(Class<?> testClass,
                LifecycleMethodExecutor executor)
                throws Exception
Deactivate the TestClass.
This will trigger the AfterClass event.

Parameters:
testClass -
executor -
Throws:
Exception

before

void before(Object testInstance,
            Method testMethod,
            LifecycleMethodExecutor executor)
            throws Exception
Activate a new TestInstance.
This will trigger the Before event.

Parameters:
testInstance -
testMethod -
executor -
Throws:
Exception

after

void after(Object testInstance,
           Method testMethod,
           LifecycleMethodExecutor executor)
           throws Exception
Deactivate the TestInstance.
This will trigger the After event.

Parameters:
testInstance -
testMethod -
executor -
Throws:
Exception

test

TestResult test(TestMethodExecutor testMethodExecutor)
                throws Exception
Activate a TestMethod execution.
This will trigger the Test event.

Parameters:
testMethodExecutor -
Returns:
Throws:
Exception

shutdown

void shutdown()
Shutdown Arquillian cleanly.



Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.