org.junitext.runner
Class AnnotationHandlingJUnit4TestAdapter

java.lang.Object
  extended by junit.framework.JUnit4TestAdapter
      extended by 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


Constructor Summary
AnnotationHandlingJUnit4TestAdapter(java.lang.Class<?> newTestClass)
           
AnnotationHandlingJUnit4TestAdapter(java.lang.Class<?> newTestClass, junit.framework.JUnit4TestAdapterCache cache)
           
 
Method Summary
 int countTestCases()
           
 org.junit.runner.Description getDescription()
           
 void run(junit.framework.TestResult result)
           
 
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
 

Constructor Detail

AnnotationHandlingJUnit4TestAdapter

public AnnotationHandlingJUnit4TestAdapter(java.lang.Class<?> newTestClass)

AnnotationHandlingJUnit4TestAdapter

public AnnotationHandlingJUnit4TestAdapter(java.lang.Class<?> newTestClass,
                                           junit.framework.JUnit4TestAdapterCache cache)
Method Detail

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