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> aType) |
Iterable<RunnerFeature> |
getFeatures() |
com.google.inject.Injector |
getInjector() |
static AnnotationScanner |
getScanner() |
Path |
getTargetTestBasepath() |
Class<?> |
getTargetTestClass() |
URL |
getTargetTestResource(String name) |
String |
toString() |
public FeaturesRunner(Class<?> classToRun) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public static AnnotationScanner getScanner()
public Class<?> getTargetTestClass()
public Path getTargetTestBasepath()
public URL getTargetTestResource(String name) throws IOException
IOException
public Iterable<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 Object createTest() throws Exception
createTest
in class org.junit.runners.BlockJUnit4ClassRunner
Exception
public <T extends RunnerFeature> T getFeature(Class<T> aType)
Copyright © 2015 Nuxeo SA. All rights reserved.