jdoctest 1.5

net.cscott.jdoctest
Class JDoctestRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runner.Runner>
          extended by org.junit.runners.Suite
              extended by net.cscott.jdoctest.JDoctestRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class JDoctestRunner
extends org.junit.runners.Suite

The JDoctestRunner runs doctests generated from a single given class. Just annotate the class @RunWith(value=JDoctestRunner.class). Add a @SrcRoot(value="foo/bar") if the source files for your class live someplace other than "src".


Nested Class Summary
static interface JDoctestRunner.SrcRoot
          Annotation for a method which provides parameters to be injected into the test class constructor by Parameterized
 
Nested classes/interfaces inherited from class org.junit.runners.Suite
org.junit.runners.Suite.SuiteClasses
 
Constructor Summary
JDoctestRunner(Class<?> klass)
          Only called reflectively.
 
Method Summary
protected  String defaultSrcRoot()
          Override this method to change the default path to your sources.
protected  List<org.junit.runner.Runner> getChildren()
           
protected  String getName()
           
 
Methods inherited from class org.junit.runners.Suite
describeChild, runChild
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, collectInitializationErrors, filter, getDescription, getFilteredChildren, getTestClass, run, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDoctestRunner

public JDoctestRunner(Class<?> klass)
               throws Throwable
Only called reflectively. Do not use programmatically.

Throws:
Throwable
Method Detail

getName

protected String getName()
Overrides:
getName in class org.junit.runners.ParentRunner<org.junit.runner.Runner>

getChildren

protected List<org.junit.runner.Runner> getChildren()
Overrides:
getChildren in class org.junit.runners.Suite

defaultSrcRoot

protected String defaultSrcRoot()
Override this method to change the default path to your sources.


jdoctest 1.5

Copyright © 2009 C. Scott Ananian