Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.test.runner
Class FeaturesRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by org.nuxeo.runtime.test.runner.FeaturesRunner
All Implemented Interfaces:
Describable, Filterable, Sortable

public class FeaturesRunner
extends BlockJUnit4ClassRunner

A Test Case runner that can be extended through features and provide injection though Guice.

Author:
Bogdan Stefanescu

Constructor Summary
FeaturesRunner(java.lang.Class<?> classToRun)
           
 
Method Summary
 java.lang.Object createTest()
           
<T extends RunnerFeature>
T
getFeature(java.lang.Class<T> type)
           
 java.util.List<RunnerFeature> getFeatures()
           
 com.google.inject.Injector getInjector()
          Gets the Guice injector.
static AnnotationScanner getScanner()
           
 java.lang.Class<?> getTargetTestClass()
           
 void resetInjector()
           
 void run(RunNotifier notifier)
           
 
Methods inherited from class org.junit.runners.ParentRunner
filter, getDescription, getTestClass, setScheduler, sort
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeaturesRunner

public FeaturesRunner(java.lang.Class<?> classToRun)
               throws org.junit.runners.model.InitializationError
Throws:
org.junit.runners.model.InitializationError
Method Detail

getScanner

public static AnnotationScanner getScanner()

getTargetTestClass

public java.lang.Class<?> getTargetTestClass()

getFeature

public <T extends RunnerFeature> T getFeature(java.lang.Class<T> type)

getFeatures

public java.util.List<RunnerFeature> getFeatures()

getInjector

public com.google.inject.Injector getInjector()
Gets the Guice injector.


resetInjector

public void resetInjector()

run

public void run(RunNotifier notifier)
Overrides:
run in class ParentRunner<org.junit.runners.model.FrameworkMethod>

createTest

public java.lang.Object createTest()
Overrides:
createTest in class BlockJUnit4ClassRunner

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.