Package | Description |
---|---|
junit.extensions |
Provides extended functionality for JUnit v3.x.
|
junit.framework |
Provides JUnit v3.x core classes.
|
junit.runner |
Provides JUnit v3.x test runners.
|
junit.textui |
Provides JUnit v3.x command line based tool to run tests.
|
org.junit.internal.runners |
Provides implementations of
Runner |
org.junit.runner |
Provides classes used to describe, collect, run and analyze multiple tests.
|
Modifier and Type | Class and Description |
---|---|
class |
ActiveTestSuite
A TestSuite for active Tests.
|
class |
RepeatedTest
A Decorator that runs a test repeatedly.
|
class |
TestDecorator
A Decorator for Tests.
|
class |
TestSetup
A Decorator to set up and tear down additional fixture state.
|
Modifier and Type | Field and Description |
---|---|
protected Test |
TestDecorator.fTest |
Modifier and Type | Method and Description |
---|---|
Test |
TestDecorator.getTest() |
Modifier and Type | Method and Description |
---|---|
void |
ActiveTestSuite.runTest(Test test,
TestResult result) |
Constructor and Description |
---|
RepeatedTest(Test test,
int repeat) |
TestDecorator(Test test) |
TestSetup(Test test) |
Modifier and Type | Class and Description |
---|---|
class |
JUnit4TestAdapter
The JUnit4TestAdapter enables running JUnit-4-style tests using a JUnit-3-style test runner.
|
class |
JUnit4TestCaseFacade |
class |
TestCase
A test case defines the fixture to run multiple tests.
|
class |
TestSuite
A
TestSuite is a Composite of Tests. |
Modifier and Type | Field and Description |
---|---|
protected Test |
TestFailure.fFailedTest |
Modifier and Type | Field and Description |
---|---|
private java.util.Vector<Test> |
TestSuite.fTests |
Modifier and Type | Method and Description |
---|---|
Test |
JUnit4TestAdapterCache.asTest(Description description) |
static Test |
TestSuite.createTest(java.lang.Class<?> theClass,
java.lang.String name)
...as the moon sets over the early morning Merlin, Oregon
mountains, our intrepid adventurers type...
|
(package private) Test |
JUnit4TestAdapterCache.createTest(Description description) |
Test |
TestFailure.failedTest()
Gets the failed test.
|
Test |
TestSuite.testAt(int index)
Returns the test at the given index.
|
private Test |
TestSuite.testCaseForClass(java.lang.Class<?> each) |
static Test |
TestSuite.warning(java.lang.String message)
Returns a test which will fail and log a warning message.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Test> |
JUnit4TestAdapterCache.asTestList(Description description) |
java.util.List<Test> |
JUnit4TestAdapter.getTests() |
java.util.Enumeration<Test> |
TestSuite.tests()
Returns the tests as an enumeration.
|
Modifier and Type | Method and Description |
---|---|
void |
TestListener.addError(Test test,
java.lang.Throwable e)
An error occurred.
|
void |
TestResult.addError(Test test,
java.lang.Throwable e)
Adds an error to the list of errors.
|
void |
TestListener.addFailure(Test test,
AssertionFailedError e)
A failure occurred.
|
void |
TestResult.addFailure(Test test,
AssertionFailedError e)
Adds a failure to the list of failures.
|
void |
TestSuite.addTest(Test test)
Adds a test to the suite.
|
void |
TestListener.endTest(Test test)
A test ended.
|
void |
TestResult.endTest(Test test)
Informs the result that a test was completed.
|
void |
TestResult.runProtected(Test test,
Protectable p)
Runs a TestCase.
|
void |
TestSuite.runTest(Test test,
TestResult result) |
void |
TestListener.startTest(Test test)
A test started.
|
void |
TestResult.startTest(Test test)
Informs the result that a test will be started.
|
Constructor and Description |
---|
TestFailure(Test failedTest,
java.lang.Throwable thrownException)
Constructs a TestFailure with the given test and exception.
|
Modifier and Type | Method and Description |
---|---|
Test |
BaseTestRunner.getTest(java.lang.String suiteClassName)
Returns the Test corresponding to the given suite.
|
Modifier and Type | Method and Description |
---|---|
void |
BaseTestRunner.addError(Test test,
java.lang.Throwable e) |
void |
BaseTestRunner.addFailure(Test test,
AssertionFailedError e) |
void |
BaseTestRunner.endTest(Test test) |
void |
BaseTestRunner.startTest(Test test) |
abstract void |
BaseTestRunner.testFailed(int status,
Test test,
java.lang.Throwable e) |
Modifier and Type | Method and Description |
---|---|
void |
ResultPrinter.addError(Test test,
java.lang.Throwable e) |
void |
ResultPrinter.addFailure(Test test,
AssertionFailedError t) |
TestResult |
TestRunner.doRun(Test test) |
TestResult |
TestRunner.doRun(Test suite,
boolean wait) |
void |
ResultPrinter.endTest(Test test) |
static TestResult |
TestRunner.run(Test test)
Runs a single test and collects its results.
|
static void |
TestRunner.runAndWait(Test suite)
Runs a single test and waits until the user
types RETURN.
|
void |
ResultPrinter.startTest(Test test) |
void |
TestRunner.testFailed(int status,
Test test,
java.lang.Throwable e) |
Modifier and Type | Field and Description |
---|---|
private Test |
JUnit38ClassRunner.test |
Modifier and Type | Method and Description |
---|---|
private Test |
JUnit38ClassRunner.getTest() |
static Test |
SuiteMethod.testFromSuiteMethod(java.lang.Class<?> klass) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Class<? extends Test> |
JUnit38ClassRunner.OldTestClassAdaptingListener.getEffectiveClass(Test test) |
Modifier and Type | Method and Description |
---|---|
void |
JUnit38ClassRunner.OldTestClassAdaptingListener.addError(Test test,
java.lang.Throwable e) |
void |
JUnit38ClassRunner.OldTestClassAdaptingListener.addFailure(Test test,
AssertionFailedError t) |
private Description |
JUnit38ClassRunner.OldTestClassAdaptingListener.asDescription(Test test) |
void |
JUnit38ClassRunner.OldTestClassAdaptingListener.endTest(Test test) |
private java.lang.Class<? extends Test> |
JUnit38ClassRunner.OldTestClassAdaptingListener.getEffectiveClass(Test test) |
private java.lang.String |
JUnit38ClassRunner.OldTestClassAdaptingListener.getName(Test test) |
private static Description |
JUnit38ClassRunner.makeDescription(Test test) |
private void |
JUnit38ClassRunner.setTest(Test test) |
void |
JUnit38ClassRunner.OldTestClassAdaptingListener.startTest(Test test) |
Constructor and Description |
---|
JUnit38ClassRunner(Test test) |
Modifier and Type | Method and Description |
---|---|
Result |
JUnitCore.run(Test test)
Run all the tests contained in JUnit 3.8.x
test . |