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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeaturesRunner
public FeaturesRunner(java.lang.Class<?> classToRun)
throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
getScanner
public static AnnotationScanner getScanner()
getTargetTestClass
public java.lang.Class<?> getTargetTestClass()
getFeature
public <T extends RunnerFeature> T getFeature(java.lang.Class<T> type)
getFeatures
public java.util.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 java.lang.Object createTest()
- Overrides:
createTest
in class BlockJUnit4ClassRunner
Copyright © 2010 Nuxeo SAS. All Rights Reserved.