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(java.lang.Class<?> klass)
Only called reflectively.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
defaultSrcRoot()
Override this method to change the default path to your sources.
|
protected java.util.List<org.junit.runner.Runner> |
getChildren() |
protected java.lang.String |
getName() |
public JDoctestRunner(java.lang.Class<?> klass)
throws java.lang.Throwable
java.lang.Throwableprotected java.lang.String getName()
getName in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected java.util.List<org.junit.runner.Runner> getChildren()
getChildren in class org.junit.runners.Suiteprotected java.lang.String defaultSrcRoot()
Copyright © 2009 C. Scott Ananian