|
jdoctest 1.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.junit.runners.Suite
net.cscott.jdoctest.JDoctestRunner
public class JDoctestRunner
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 |
---|
public JDoctestRunner(Class<?> klass) throws Throwable
Throwable
Method Detail |
---|
protected String getName()
getName
in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
protected List<org.junit.runner.Runner> getChildren()
getChildren
in class org.junit.runners.Suite
protected String defaultSrcRoot()
|
jdoctest 1.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |