public class JUnit4TestAdapter extends Object implements Test, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable, org.junit.runner.Describable
| Constructor and Description |
|---|
JUnit4TestAdapter(Class<?> newTestClass) |
JUnit4TestAdapter(Class<?> newTestClass,
JUnit4TestAdapterCache cache) |
| Modifier and Type | Method and Description |
|---|---|
int |
countTestCases()
Counts the number of test cases that will be run by this test.
|
void |
filter(org.junit.runner.manipulation.Filter filter)
Remove tests that don't pass the parameter
filter. |
org.junit.runner.Description |
getDescription() |
Class<?> |
getTestClass() |
List<Test> |
getTests() |
void |
run(TestResult result)
Runs a test and collects its result in a TestResult instance.
|
void |
sort(org.junit.runner.manipulation.Sorter sorter)
Sorts the tests using
sorter |
String |
toString() |
public JUnit4TestAdapter(Class<?> newTestClass)
public JUnit4TestAdapter(Class<?> newTestClass, JUnit4TestAdapterCache cache)
public int countTestCases()
TestcountTestCases in interface Testpublic void run(TestResult result)
Testpublic Class<?> getTestClass()
public org.junit.runner.Description getDescription()
getDescription in interface org.junit.runner.DescribableDescription showing the tests to be run by the receiverpublic void filter(org.junit.runner.manipulation.Filter filter)
throws org.junit.runner.manipulation.NoTestsRemainException
org.junit.runner.manipulation.Filterablefilter.filter in interface org.junit.runner.manipulation.Filterablefilter - the Filter to applyorg.junit.runner.manipulation.NoTestsRemainException - if all tests are filtered outpublic void sort(org.junit.runner.manipulation.Sorter sorter)
org.junit.runner.manipulation.Sortablesortersort in interface org.junit.runner.manipulation.Sortablesorter - the Sorter to use for sorting the testsCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.