org.junitext.runner
Class AnnotationHandlingJUnit4TestAdapter
java.lang.Object
junit.framework.JUnit4TestAdapter
org.junitext.runner.AnnotationHandlingJUnit4TestAdapter
- All Implemented Interfaces:
- junit.framework.Test
public class AnnotationHandlingJUnit4TestAdapter
- extends junit.framework.JUnit4TestAdapter
JUnit4Adapter which supports annotation handling.
We have to create our own runner based on an annotation request. As runner in
superclass is private, we have to override all methods, referring fRunner.
TODO: ugly, cleanup with JUnit
| Methods inherited from class junit.framework.JUnit4TestAdapter |
getTestClass, getTests, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationHandlingJUnit4TestAdapter
public AnnotationHandlingJUnit4TestAdapter(java.lang.Class<?> newTestClass)
AnnotationHandlingJUnit4TestAdapter
public AnnotationHandlingJUnit4TestAdapter(java.lang.Class<?> newTestClass,
junit.framework.JUnit4TestAdapterCache cache)
countTestCases
public int countTestCases()
- Specified by:
countTestCases in interface junit.framework.Test- Overrides:
countTestCases in class junit.framework.JUnit4TestAdapter
run
public void run(junit.framework.TestResult result)
- Specified by:
run in interface junit.framework.Test- Overrides:
run in class junit.framework.JUnit4TestAdapter
getDescription
public org.junit.runner.Description getDescription()
- Overrides:
getDescription in class junit.framework.JUnit4TestAdapter