Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.test.runner
Interface RunnerFeature

All Known Implementing Classes:
CoreFeature, DistributionFeature, JettyFeature, NuxeoThemeFeature, PlatformFeature, RuntimeFeature, SimpleFeature, WebDriverFeature, WebEngineFeature

public interface RunnerFeature

Author:
Bogdan Stefanescu

Method Summary
 void afterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, java.lang.Object test)
          After a test method was ran.
 void afterRun(FeaturesRunner runner)
          After tests were run.
 void beforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, java.lang.Object test)
          Before a test method is invoked.
 void beforeRun(FeaturesRunner runner)
          Before running tests.
 void configure(FeaturesRunner runner, com.google.inject.Binder binder)
          Configures Guice bindings if any is required by the feature.
 void initialize(FeaturesRunner runner)
          Called when preparing to run the test class.
 void start(FeaturesRunner runner)
          Features are initialized.
 void stop(FeaturesRunner runner)
          Before exiting the test.
 

Method Detail

initialize

void initialize(FeaturesRunner runner)
                throws java.lang.Exception
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.

Throws:
java.lang.Exception

configure

void configure(FeaturesRunner runner,
               com.google.inject.Binder binder)
Configures Guice bindings if any is required by the feature. This is called after the framework is started and before Guice module is built. The tests are launched after guice module is built.


beforeRun

void beforeRun(FeaturesRunner runner)
               throws java.lang.Exception
Before running tests. At this point Guice modules are registered and injector created.

Throws:
java.lang.Exception

afterRun

void afterRun(FeaturesRunner runner)
              throws java.lang.Exception
After tests were run.

Throws:
java.lang.Exception

start

void start(FeaturesRunner runner)
           throws java.lang.Exception
Features are initialized. Runner is ready to create the injector.

Throws:
java.lang.Exception

stop

void stop(FeaturesRunner runner)
          throws java.lang.Exception
Before exiting the test.

Throws:
java.lang.Exception

beforeMethodRun

void beforeMethodRun(FeaturesRunner runner,
                     org.junit.runners.model.FrameworkMethod method,
                     java.lang.Object test)
                     throws java.lang.Exception
Before a test method is invoked.

Throws:
java.lang.Exception

afterMethodRun

void afterMethodRun(FeaturesRunner runner,
                    org.junit.runners.model.FrameworkMethod method,
                    java.lang.Object test)
                    throws java.lang.Exception
After a test method was ran.

Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.