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 org.junit.runners.model.RunnerBuilder

Just like AnnotatedBuilder in JUnit4 except it supports running single JDave behaviors.

If jdave-junit4 is in your classpath before junit4 then this will be loaded first.

When running in your buildtool etc. you won't care about running a single behavior. This class should be equivalent to the default JUnit4 one, so in that case it won't matter which one is loaded first.

Author:
Tuomas Karkkainen

Constructor Summary
AnnotatedBuilder(org.junit.runners.model.RunnerBuilder suiteBuilder)
           
 
Method Summary
 org.junit.runner.Runner runnerForClass(java.lang.Class<?> testClass)
           
 
Methods inherited from class org.junit.runners.model.RunnerBuilder
runners, safeRunnerForClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedBuilder

public AnnotatedBuilder(org.junit.runners.model.RunnerBuilder suiteBuilder)
Method Detail

runnerForClass

public org.junit.runner.Runner runnerForClass(java.lang.Class<?> testClass)
                                       throws java.lang.Exception
Specified by:
runnerForClass in class org.junit.runners.model.RunnerBuilder
Throws:
java.lang.Exception


Copyright ? 2009. All Rights Reserved.