org.junit.internal.builders
Class AnnotatedBuilder

java.lang.Object
  extended by org.junit.runners.model.RunnerBuilder
      extended by org.junit.internal.builders.AnnotatedBuilder

public class AnnotatedBuilder
extends RunnerBuilder


Constructor Summary
AnnotatedBuilder(RunnerBuilder suiteBuilder)
           
 
Method Summary
 Runner buildRunner(Class<? extends Runner> runnerClass, Class<?> testClass)
           
 Runner runnerForClass(Class<?> testClass)
          Override to calculate the correct runner for a test class at runtime.
 
Methods inherited from class org.junit.runners.model.RunnerBuilder
runners, safeRunnerForClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedBuilder

public AnnotatedBuilder(RunnerBuilder suiteBuilder)
Method Detail

runnerForClass

public Runner runnerForClass(Class<?> testClass)
                      throws Exception
Description copied from class: RunnerBuilder
Override to calculate the correct runner for a test class at runtime.

Specified by:
runnerForClass in class RunnerBuilder
Parameters:
testClass - class to be run
Returns:
a Runner
Throws:
Exception

buildRunner

public Runner buildRunner(Class<? extends Runner> runnerClass,
                          Class<?> testClass)
                   throws Exception
Throws:
Exception