org.jboss.arquillian.test.impl
Class EventTestRunnerAdaptor

java.lang.Object
  extended by org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
All Implemented Interfaces:
TestRunnerAdaptor

public class EventTestRunnerAdaptor
extends Object
implements TestRunnerAdaptor

EventTestRunnerAdaptor

Version:
$Revision: $
Author:
Aslak Knutsen

Constructor Summary
EventTestRunnerAdaptor(Manager manager)
           
EventTestRunnerAdaptor(ManagerBuilder builder)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTestRunnerAdaptor

public EventTestRunnerAdaptor(ManagerBuilder builder)

EventTestRunnerAdaptor

public EventTestRunnerAdaptor(Manager manager)
Method Detail

beforeSuite

public void beforeSuite()
                 throws Exception
Description copied from interface: TestRunnerAdaptor
Activate a new TestSuite.
This will trigger the BeforeSuite event.

Specified by:
beforeSuite in interface TestRunnerAdaptor
Throws:
Exception

afterSuite

public void afterSuite()
                throws Exception
Description copied from interface: TestRunnerAdaptor
Deactivate the TestSuite.
This will trigger the AfterSuite event.

Specified by:
afterSuite in interface TestRunnerAdaptor
Throws:
Exception

beforeClass

public void beforeClass(Class<?> testClass,
                        LifecycleMethodExecutor executor)
                 throws Exception
Description copied from interface: TestRunnerAdaptor
Activate a new TestClass.
This will trigger the BeforeClass event.

Specified by:
beforeClass in interface TestRunnerAdaptor
Throws:
Exception

afterClass

public void afterClass(Class<?> testClass,
                       LifecycleMethodExecutor executor)
                throws Exception
Description copied from interface: TestRunnerAdaptor
Deactivate the TestClass.
This will trigger the AfterClass event.

Specified by:
afterClass in interface TestRunnerAdaptor
Throws:
Exception

before

public void before(Object testInstance,
                   Method testMethod,
                   LifecycleMethodExecutor executor)
            throws Exception
Description copied from interface: TestRunnerAdaptor
Activate a new TestInstance.
This will trigger the Before event.

Specified by:
before in interface TestRunnerAdaptor
Throws:
Exception

after

public void after(Object testInstance,
                  Method testMethod,
                  LifecycleMethodExecutor executor)
           throws Exception
Description copied from interface: TestRunnerAdaptor
Deactivate the TestInstance.
This will trigger the After event.

Specified by:
after in interface TestRunnerAdaptor
Throws:
Exception

test

public TestResult test(TestMethodExecutor testMethodExecutor)
                throws Exception
Description copied from interface: TestRunnerAdaptor
Activate a TestMethod execution.
This will trigger the Test event.

Specified by:
test in interface TestRunnerAdaptor
Returns:
Throws:
Exception

shutdown

public void shutdown()
Description copied from interface: TestRunnerAdaptor
Shutdown Arquillian cleanly.

Specified by:
shutdown in interface TestRunnerAdaptor


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