public class

JUnit4TestAdapter

extends Object
implements Test Describable Filterable Sortable
java.lang.Object
   ↳ junit.framework.JUnit4TestAdapter

Summary

Public Constructors
JUnit4TestAdapter(Class<?> newTestClass)
JUnit4TestAdapter(Class<?> newTestClass, JUnit4TestAdapterCache cache)
Public Methods
int countTestCases()
Counts the number of test cases that will be run by this test.
void filter(Filter filter)
Remove tests that don't pass the parameter filter.
Description getDescription()
Class<?> getTestClass()
List<Test> getTests()
void run(TestResult result)
Runs a test and collects its result in a TestResult instance.
void sort(Sorter sorter)
Sorts the tests using sorter
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface junit.framework.Test
From interface org.junit.runner.Describable
From interface org.junit.runner.manipulation.Filterable
From interface org.junit.runner.manipulation.Sortable

Public Constructors

public JUnit4TestAdapter (Class<?> newTestClass)

public JUnit4TestAdapter (Class<?> newTestClass, JUnit4TestAdapterCache cache)

Public Methods

public int countTestCases ()

Counts the number of test cases that will be run by this test.

public void filter (Filter filter)

Remove tests that don't pass the parameter filter.

Parameters
filter the Filter to apply

public Description getDescription ()

public Class<?> getTestClass ()

public List<Test> getTests ()

public void run (TestResult result)

Runs a test and collects its result in a TestResult instance.

public void sort (Sorter sorter)

Sorts the tests using sorter

Parameters
sorter the Sorter to use for sorting the tests

public String toString ()