|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.runner.Runner
org.ops4j.pax.exam.junit.JUnit4TestRunner
org.ops4j.pax.exam.junit.AbstractJUnit4TestRunner
public abstract class AbstractJUnit4TestRunner
This provides a convenient way to write a self-Runner that can be set in annotation. Extend this class and implement the getTestOptions method of a system wide default setup. Now, writing tests for *your* system is just a matter of setting
Constructor Summary | |
---|---|
AbstractJUnit4TestRunner(java.lang.Class<?> aClass)
|
Method Summary | |
---|---|
protected java.util.Collection<JUnit4ConfigMethod> |
getConfigurationMethods()
Finds the configuration methods based on the configured ConfigurationStrategy . |
protected abstract Option[] |
getTestOptions()
|
Methods inherited from class org.ops4j.pax.exam.junit.JUnit4TestRunner |
---|
classAnnotations, createTest, filter, getDescription, getName, getTestClass, getTestMethods, invokeTestMethod, methodDescription, methodDescription, run, runMethods, sort, testAnnotations, testName, testName, validate, wrapMethod |
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 AbstractJUnit4TestRunner(java.lang.Class<?> aClass) throws org.junit.internal.runners.InitializationError
org.junit.internal.runners.InitializationError
Method Detail |
---|
protected java.util.Collection<JUnit4ConfigMethod> getConfigurationMethods() throws java.lang.Exception
JUnit4TestRunner
ConfigurationStrategy
.
getConfigurationMethods
in class JUnit4TestRunner
java.lang.Exception
- - If test instance cannot be created
- Re-thrown while finding the configuration methodsprotected abstract Option[] getTestOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |