Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.test
Class MultiRepositoriesCoreFeature

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

public class MultiRepositoriesCoreFeature
extends SimpleFeature


Constructor Summary
MultiRepositoriesCoreFeature()
           
 
Method Summary
 void afterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)
          After a test method was ran.
 void afterRun(FeaturesRunner runner)
          After tests were run.
 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.
 BackendType getBackendType(String name)
           
 RepositorySettings getRepository(String name)
           
 void initialize(FeaturesRunner runner)
          Called when preparing to run the test class.
 void setRepositorySettings(RepositorySettings settings)
           
 void start(FeaturesRunner runner)
          Features are initialized.
 
Methods inherited from class org.nuxeo.runtime.test.runner.SimpleFeature
beforeMethodRun, stop, testCreated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiRepositoriesCoreFeature

public MultiRepositoriesCoreFeature()
Method Detail

getRepository

public RepositorySettings getRepository(String name)

getBackendType

public BackendType getBackendType(String name)

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

start

public void start(FeaturesRunner runner)
           throws Exception
Description copied from interface: RunnerFeature
Features are initialized. Runner is ready to create the injector.

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

configure

public void configure(FeaturesRunner runner,
                      com.google.inject.Binder binder)
Description copied from interface: RunnerFeature
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.

Specified by:
configure in interface RunnerFeature
Overrides:
configure in class SimpleFeature

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

afterMethodRun

public void afterMethodRun(FeaturesRunner runner,
                           org.junit.runners.model.FrameworkMethod method,
                           Object test)
                    throws Exception
Description copied from interface: RunnerFeature
After a test method was ran.

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

setRepositorySettings

public void setRepositorySettings(RepositorySettings settings)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.