public class FeaturesRunner extends BlockJUnit4ClassRunner
| Constructor and Description |
|---|
FeaturesRunner(Class<?> classToRun) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createTest() |
<T extends Annotation> |
getConfig(Class<T> type) |
<T extends Annotation> |
getConfig(org.junit.runners.model.FrameworkMethod method,
Class<T> type)
Get the annotation on the test method, if no annotation has been found,
get the annotation from the test class (See
getConfig(Class)) |
<T extends RunnerFeature> |
getFeature(Class<T> type) |
List<RunnerFeature> |
getFeatures() |
com.google.inject.Injector |
getInjector()
Gets the Guice injector.
|
static AnnotationScanner |
getScanner() |
Class<?> |
getTargetTestClass() |
void |
resetInjector() |
static <T> List<T> |
reversed(List<T> list) |
void |
run(RunNotifier notifier) |
filter, getDescription, getTestClass, setScheduler, sortpublic FeaturesRunner(Class<?> classToRun) throws org.junit.runners.model.InitializationError
public static AnnotationScanner getScanner()
public Class<?> getTargetTestClass()
public <T extends RunnerFeature> T getFeature(Class<T> type)
public List<RunnerFeature> getFeatures()
public <T extends Annotation> T getConfig(Class<T> type)
public <T extends Annotation> T getConfig(org.junit.runners.model.FrameworkMethod method, Class<T> type)
getConfig(Class))public com.google.inject.Injector getInjector()
public void resetInjector()
public void run(RunNotifier notifier)
run in class ParentRunner<org.junit.runners.model.FrameworkMethod>public Object createTest() throws Exception
createTest in class BlockJUnit4ClassRunnerExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.