Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.test
Class TransactionalFeature

java.lang.Object
  extended by org.nuxeo.runtime.test.runner.SimpleFeature
      extended by org.nuxeo.ecm.core.test.TransactionalFeature
All Implemented Interfaces:
RunnerFeature

public class TransactionalFeature
extends SimpleFeature


Constructor Summary
TransactionalFeature()
           
 
Method Summary
 void afterRun(FeaturesRunner runner)
          After tests were run.
 void beforeRun(FeaturesRunner runner)
          Before running tests.
 void initialize(FeaturesRunner runner)
          Called when preparing to run the test class.
 
Methods inherited from class org.nuxeo.runtime.test.runner.SimpleFeature
afterMethodRun, beforeMethodRun, configure, start, stop, testCreated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalFeature

public TransactionalFeature()
Method Detail

initialize

public void initialize(FeaturesRunner runner)
                throws Exception
Description copied from interface: RunnerFeature
Called when preparing to run the test class. Framework is not started at this point. Here is time for the feature to configure the runner from annotations on the test class.

Specified by:
initialize in interface RunnerFeature
Overrides:
initialize in class SimpleFeature
Throws:
Exception

beforeRun

public void beforeRun(FeaturesRunner runner)
               throws Exception
Description copied from interface: RunnerFeature
Before running tests. At this point Guice modules are registered and injector created.

Specified by:
beforeRun in interface RunnerFeature
Overrides:
beforeRun in class SimpleFeature
Throws:
Exception

afterRun

public void afterRun(FeaturesRunner runner)
              throws Exception
Description copied from interface: RunnerFeature
After tests were run.

Specified by:
afterRun in interface RunnerFeature
Overrides:
afterRun in class SimpleFeature
Throws:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.