public class FeaturesRunner extends org.junit.runners.BlockJUnit4ClassRunner
Modifier and Type | Class and Description |
---|---|
protected class |
FeaturesRunner.AfterClassStatement |
protected class |
FeaturesRunner.AfterMethodRunStatement |
protected class |
FeaturesRunner.AfterTeardownStatement |
protected class |
FeaturesRunner.BeforeClassStatement |
protected class |
FeaturesRunner.BeforeMethodRunStatement |
protected class |
FeaturesRunner.BeforeSetupStatement |
protected class |
FeaturesRunner.RulesFactory<A extends Annotation,R> |
Modifier and Type | Field and Description |
---|---|
protected com.google.inject.Injector |
injector
Guice injector.
|
protected org.nuxeo.runtime.test.runner.FeaturesLoader |
loader |
protected TargetResourceLocator |
locator |
protected static AnnotationScanner |
scanner |
protected Object |
underTest |
Constructor and Description |
---|
FeaturesRunner(Class<?> classToRun) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterMethodRun(org.junit.runners.model.FrameworkMethod method,
Object test) |
protected void |
afterRun() |
protected void |
afterTeardown() |
protected void |
beforeMethodRun(org.junit.runners.model.FrameworkMethod method,
Object test) |
protected void |
beforeRun() |
protected void |
beforeSetup() |
protected org.junit.runners.model.Statement |
classBlock(org.junit.runner.notification.RunNotifier aNotifier) |
protected List<org.junit.rules.TestRule> |
classRules() |
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
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) |
protected List<org.junit.rules.TestRule> |
getTestRules(Object target) |
protected void |
initialize() |
protected org.junit.runners.model.Statement |
methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test) |
protected com.google.inject.Injector |
onInjector(org.junit.runner.notification.RunNotifier aNotifier) |
protected List<org.junit.rules.MethodRule> |
rules(Object target) |
protected void |
start() |
protected void |
stop() |
String |
toString() |
protected void |
validateZeroArgConstructor(List<Throwable> errors) |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withAfters(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement) |
collectInitializationErrors, describeChild, getChildren, methodBlock, possiblyExpectingExceptions, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, withPotentialTimeout
protected static final AnnotationScanner scanner
protected com.google.inject.Injector injector
protected final org.nuxeo.runtime.test.runner.FeaturesLoader loader
protected final TargetResourceLocator locator
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)
)protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods
in class org.junit.runners.BlockJUnit4ClassRunner
protected void initialize() throws Exception
Exception
protected void beforeMethodRun(org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
Exception
protected void afterMethodRun(org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
Exception
protected void beforeSetup() throws Exception
Exception
protected void afterTeardown()
public com.google.inject.Injector getInjector()
protected com.google.inject.Injector onInjector(org.junit.runner.notification.RunNotifier aNotifier)
protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier aNotifier)
classBlock
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
protected List<org.junit.rules.TestRule> classRules()
classRules
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
protected org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod method, Object target, org.junit.runners.model.Statement statement)
withBefores
in class org.junit.runners.BlockJUnit4ClassRunner
protected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method, Object target, org.junit.runners.model.Statement statement)
withAfters
in class org.junit.runners.BlockJUnit4ClassRunner
protected List<org.junit.rules.TestRule> getTestRules(Object target)
getTestRules
in class org.junit.runners.BlockJUnit4ClassRunner
protected List<org.junit.rules.MethodRule> rules(Object target)
rules
in class org.junit.runners.BlockJUnit4ClassRunner
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
methodInvoker
in class org.junit.runners.BlockJUnit4ClassRunner
public Object createTest() throws Exception
createTest
in class org.junit.runners.BlockJUnit4ClassRunner
Exception
protected void validateZeroArgConstructor(List<Throwable> errors)
validateZeroArgConstructor
in class org.junit.runners.BlockJUnit4ClassRunner
public <T extends RunnerFeature> T getFeature(Class<T> aType)
Copyright © 2016 Nuxeo SA. All rights reserved.