org.nuxeo.runtime.test.runner
Class FeaturesRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.nuxeo.runtime.test.runner.FeaturesRunner
- All Implemented Interfaces:
- Describable, Filterable, Sortable
public class FeaturesRunner
- extends BlockJUnit4ClassRunner
A Test Case runner that can be extended through features and provide injection
though Guice.
- Author:
- Bogdan Stefanescu
FeaturesRunner
public FeaturesRunner(Class<?> classToRun)
throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
getScanner
public static AnnotationScanner getScanner()
getTargetTestClass
public Class<?> getTargetTestClass()
getFeature
public <T extends RunnerFeature> T getFeature(Class<T> type)
getFeatures
public List<RunnerFeature> getFeatures()
getInjector
public com.google.inject.Injector getInjector()
- Gets the Guice injector.
resetInjector
public void resetInjector()
run
public void run(RunNotifier notifier)
- Overrides:
run
in class ParentRunner<org.junit.runners.model.FrameworkMethod>
createTest
public Object createTest()
- Overrides:
createTest
in class BlockJUnit4ClassRunner
Copyright © 2011 Nuxeo SAS. All Rights Reserved.