junit.framework
Class JUnit4TestAdapter

java.lang.Object
  extended by junit.framework.JUnit4TestAdapter
All Implemented Interfaces:
Test

public class JUnit4TestAdapter
extends java.lang.Object
implements Test


Constructor Summary
JUnit4TestAdapter(java.lang.Class<?> newTestClass)
           
JUnit4TestAdapter(java.lang.Class<?> newTestClass, JUnit4TestAdapterCache cache)
           
 
Method Summary
 int countTestCases()
          Counts the number of test cases that will be run by this test.
 org.junit.runner.Description getDescription()
           
 java.lang.Class<?> getTestClass()
           
 java.util.List<Test> getTests()
           
 void run(TestResult result)
          Runs a test and collects its result in a TestResult instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JUnit4TestAdapter

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

JUnit4TestAdapter

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

countTestCases

public int countTestCases()
Description copied from interface: Test
Counts the number of test cases that will be run by this test.

Specified by:
countTestCases in interface Test

run

public void run(TestResult result)
Description copied from interface: Test
Runs a test and collects its result in a TestResult instance.

Specified by:
run in interface Test

getTests

public java.util.List<Test> getTests()

getTestClass

public java.lang.Class<?> getTestClass()

getDescription

public org.junit.runner.Description getDescription()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object