public class JDoctestRunner
extends org.junit.runners.Suite
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".Modifier and Type | Class and Description |
---|---|
static interface |
JDoctestRunner.SrcRoot
Annotation for a method which provides parameters to be injected into the
test class constructor by
Parameterized |
Constructor and Description |
---|
JDoctestRunner(Class<?> klass)
Only called reflectively.
|
Modifier and Type | Method and Description |
---|---|
protected String |
defaultSrcRoot()
Override this method to change the default path to your sources.
|
protected List<org.junit.runner.Runner> |
getChildren() |
protected String |
getName() |
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()
Copyright © 2009 C. Scott Ananian