public class FeaturesRunner
extends org.junit.runners.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() |
Path |
getTargetTestBasepath() |
Class<?> |
getTargetTestClass() |
URL |
getTargetTestResource(String name) |
void |
resetInjector() |
static <T> List<T> |
reversed(List<T> list) |
void |
run(org.junit.runner.notification.RunNotifier notifier) |
String |
toString() |
public FeaturesRunner(Class<?> classToRun) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorpublic static AnnotationScanner getScanner()
public Class<?> getTargetTestClass()
public Path getTargetTestBasepath()
public URL getTargetTestResource(String name) throws IOException
IOExceptionpublic <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(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>public Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionCopyright © 2014 Nuxeo SA. All rights reserved.