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()  | 
Object | 
getTargetTestInstance()
May return null if the test class was not yet instantiated 
 | 
URL | 
getTargetTestResource(String name)  | 
protected List<org.junit.rules.TestRule> | 
getTestRules(Object target)  | 
protected void | 
initialize()  | 
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, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, withPotentialTimeoutprotected 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.InitializationErrorpublic static AnnotationScanner getScanner()
public Class<?> getTargetTestClass()
public Object getTargetTestInstance()
public Path getTargetTestBasepath()
public URL getTargetTestResource(String name) throws IOException
IOExceptionpublic 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.BlockJUnit4ClassRunnerprotected void initialize() throws Exception
Exceptionprotected void beforeMethodRun(org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
Exceptionprotected void afterMethodRun(org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
Exceptionprotected void beforeSetup() throws Exception
Exceptionprotected 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.BlockJUnit4ClassRunnerprotected 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.BlockJUnit4ClassRunnerprotected List<org.junit.rules.TestRule> getTestRules(Object target)
getTestRules in class org.junit.runners.BlockJUnit4ClassRunnerprotected List<org.junit.rules.MethodRule> rules(Object target)
rules in class org.junit.runners.BlockJUnit4ClassRunnerpublic Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionprotected void validateZeroArgConstructor(List<Throwable> errors)
validateZeroArgConstructor in class org.junit.runners.BlockJUnit4ClassRunnerpublic <T extends RunnerFeature> T getFeature(Class<T> aType)
Copyright © 2019 Nuxeo. All rights reserved.