A B C D E F G I J L M N P R S T V W

A

ActiveTest - class junit.extensions.ActiveTest.
A Decorator that runs a test in a separate thread.
ActiveTest(Test) - Constructor for class junit.extensions.ActiveTest
 
addError(Test, Throwable) - Method in class junit.framework.TestResult
Adds an error to the list of errors.
addError(Test, Throwable) - Method in interface junit.framework.TestListener
An error occurred.
addError(Test, Throwable) - Method in class junit.ui.TestRunner
 
addError(Test, Throwable) - Method in class junit.textui.TestRunner
 
addError(Test, Throwable) - Method in class junit.swingui.TestRunner
 
addFailure(Test, AssertionFailedError) - Method in class junit.framework.TestResult
Adds a failure to the list of failures.
addFailure(Test, Throwable) - Method in interface junit.framework.TestListener
A failure occurred.
addFailure(Test, Throwable) - Method in class junit.ui.TestRunner
 
addFailure(Test, Throwable) - Method in class junit.textui.TestRunner
 
addFailure(Test, Throwable) - Method in class junit.swingui.TestRunner
 
addListener(TestListener) - Method in class junit.framework.TestResult
Registers a TestListener
addTest(Test) - Method in class junit.framework.TestSuite
Adds a test to the suite.
Assert - class junit.framework.Assert.
A set of assert methods.
Assert() - Constructor for class junit.framework.Assert
Protect constructor since it is a static only class
assert(boolean) - Static method in class junit.framework.Assert
Asserts that a condition is true.
assert(String, boolean) - Static method in class junit.framework.Assert
Asserts that a condition is true.
assertEquals(double, double, double) - Static method in class junit.framework.Assert
Asserts that two doubles are equal.
assertEquals(long, long) - Static method in class junit.framework.Assert
Asserts that two longs are equal.
assertEquals(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects are equal.
assertEquals(String, double, double, double) - Static method in class junit.framework.Assert
Asserts that two doubles are equal.
assertEquals(String, long, long) - Static method in class junit.framework.Assert
Asserts that two longs are equal.
assertEquals(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects are equal.
AssertionFailedError - error junit.framework.AssertionFailedError.
Thrown when an assertion failed.
AssertionFailedError() - Constructor for class junit.framework.AssertionFailedError
 
AssertionFailedError(String) - Constructor for class junit.framework.AssertionFailedError
 
assertNotNull(Object) - Static method in class junit.framework.Assert
Asserts that an object isn't null.
assertNotNull(String, Object) - Static method in class junit.framework.Assert
Asserts that an object isn't null.
assertNull(Object) - Static method in class junit.framework.Assert
Asserts that an object is null.
assertNull(String, Object) - Static method in class junit.framework.Assert
Asserts that an object is null.
assertSame(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects refer to the same object.
assertSame(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects refer to the same object.

B

basicRun(TestResult) - Method in class junit.extensions.TestDecorator
The basic run behaviour.

C

changedUpdate(DocumentEvent) - Method in class junit.swingui.TestRunner
 
connectTestBrowser(Test, boolean) - Method in class junit.swingui.TestRunner
 
countTestCases() - Method in interface junit.framework.Test
Counts the number of test cases that will be run by this test.
countTestCases() - Method in class junit.framework.TestCase
Counts the number of test cases executed by run(TestResult result).
countTestCases() - Method in class junit.framework.TestSuite
Counts the number of test cases that will be run by this test.
countTestCases() - Method in class junit.extensions.TestDecorator
 
countTestCases() - Method in class junit.extensions.RepeatedTest
 
createCounterPanel() - Method in class junit.swingui.TestRunner
 
createFailedPanel() - Method in class junit.swingui.TestRunner
 
createFailureList(ListModel) - Method in class junit.swingui.TestRunner
 
createFrame(String) - Method in class junit.swingui.TestRunner
 
createJUnitMenu() - Method in class junit.ui.TestRunner
Creates the JUnit menu.
createJUnitMenu() - Method in class junit.swingui.TestRunner
Creates the JUnit menu.
createLogo() - Method in class junit.swingui.TestRunner
 
createMenus(JMenuBar) - Method in class junit.swingui.TestRunner
 
createMenus(MenuBar) - Method in class junit.ui.TestRunner
 
createQuitButton() - Method in class junit.swingui.TestRunner
 
createResult() - Method in class junit.framework.TestCase
Creates a default TestResult object
createRunButton() - Method in class junit.swingui.TestRunner
 
createRunExtension() - Method in class junit.swingui.TestRunner
Hook to plug in a UI component on the run line
createStatusLine() - Method in class junit.swingui.TestRunner
 
createSuiteCombo() - Method in class junit.swingui.TestRunner
 
createTestResult() - Method in class junit.ui.TestRunner
 
createTestResult() - Method in class junit.textui.TestRunner
Creates the TestResult to be used for the test run.
createTestResult() - Method in class junit.swingui.TestRunner
 
createUI(String) - Method in class junit.ui.TestRunner
 
createUI(String) - Method in class junit.swingui.TestRunner
 

D

doRun(Test, boolean) - Method in class junit.textui.TestRunner
 

E

elapsedTimeAsString(long) - Static method in class junit.util.StringUtil
 
endTest(Test) - Method in class junit.framework.TestResult
Informs the result that a test was completed.
endTest(Test) - Method in interface junit.framework.TestListener
A test ended.
endTest(Test) - Method in class junit.ui.TestRunner
 
endTest(Test) - Method in class junit.textui.TestRunner
 
endTest(Test) - Method in class junit.swingui.TestRunner
 
errorCount() - Method in class junit.framework.TestResult
Gets the number of detected errors.
errors() - Method in class junit.framework.TestResult
Returns an Enumeration for the errors
ExceptionTestCase - class junit.extensions.ExceptionTestCase.
A TestCase that expects an Exception of class fExpected to be thrown.
ExceptionTestCase(String, Class) - Constructor for class junit.extensions.ExceptionTestCase
 
extractClassName(String) - Static method in class junit.util.StringUtil
 

F

fail() - Static method in class junit.framework.Assert
Fails a test with no message.
fail(String) - Static method in class junit.framework.Assert
Fails a test with the given message.
failedTest() - Method in class junit.framework.TestFailure
Gets the failed test.
failureCount() - Method in class junit.framework.TestResult
Gets the number of detected failures.
failures() - Method in class junit.framework.TestResult
Returns an Enumeration for the failures
fErrors - Variable in class junit.framework.TestResult
 
fFailedTest - Variable in class junit.framework.TestFailure
 
fFailures - Variable in class junit.framework.TestResult
 
fFrame - Variable in class junit.swingui.TestRunner
 
fListeners - Variable in class junit.framework.TestResult
 
fRunTests - Variable in class junit.framework.TestResult
 
fTest - Variable in class junit.extensions.TestDecorator
 
fThrownException - Variable in class junit.framework.TestFailure
 

G

getResource(String) - Method in class junit.util.TestCaseClassLoader
 
getResourceAsStream(String) - Method in class junit.util.TestCaseClassLoader
 
getSuiteText() - Method in class junit.swingui.TestRunner
 
getTest(String) - Method in class junit.swingui.TestRunner
Loads the named test suite and returns it.

I

id() - Static method in class junit.util.Version
 
insertUpdate(DocumentEvent) - Method in class junit.swingui.TestRunner
 
isExcluded(String) - Method in class junit.util.TestCaseClassLoader
 

J

junit.extensions - package junit.extensions
 
junit.framework - package junit.framework
 
junit.swingui - package junit.swingui
 
junit.textui - package junit.textui
 
junit.ui - package junit.ui
 
junit.util - package junit.util
 

L

load(String) - Method in interface junit.util.TestSuiteLoader
 
load(String) - Method in class junit.util.StandardTestSuiteLoader
Uses the system class loader to load the test class
load(String) - Method in class junit.util.ReloadingTestSuiteLoader
 
loadClass(String, boolean) - Method in class junit.util.TestCaseClassLoader
 
LoadingTestRunner - class junit.ui.LoadingTestRunner.
A TestRunner that dynamically reloads classes.
LoadingTestRunner - class junit.swingui.LoadingTestRunner.
A convenience class to use TestRunner that can reload classes.
LoadingTestRunner() - Constructor for class junit.ui.LoadingTestRunner
 
LoadingTestRunner() - Constructor for class junit.swingui.LoadingTestRunner
 
loadSuiteClass(String) - Method in class junit.ui.TestRunner
 
loadSuiteClass(String) - Method in class junit.swingui.TestRunner
 

M

main(String[]) - Static method in class junit.ui.LoadingTestRunner
main entrypoint
main(String[]) - Static method in class junit.ui.TestRunner
main entrypoint
main(String[]) - Static method in class junit.textui.TestRunner
main entry point.
main(String[]) - Static method in class junit.swingui.LoadingTestRunner
main entrypoint
main(String[]) - Static method in class junit.swingui.TestRunner
main entrypoint

N

name() - Method in class junit.framework.TestCase
Gets the name of the test case.

P

print(TestResult) - Method in class junit.textui.TestRunner
Prints failures to the standard output
printErrors(TestResult) - Method in class junit.textui.TestRunner
Prints the errors to the standard output
printFailures(TestResult) - Method in class junit.textui.TestRunner
Prints failures to the standard output
printHeader(TestResult) - Method in class junit.textui.TestRunner
Prints the header of the report
protect() - Method in interface junit.framework.Protectable
Run the the following method protected.
Protectable - interface junit.framework.Protectable.
A Protectable can be run and can throw a Throwable.

R

reload(Class) - Method in interface junit.util.TestSuiteLoader
 
reload(Class) - Method in class junit.util.StandardTestSuiteLoader
Uses the system class loader to load the test class
reload(Class) - Method in class junit.util.ReloadingTestSuiteLoader
 
ReloadingTestSuiteLoader - class junit.util.ReloadingTestSuiteLoader.
A TestSuite loader that can reload classes.
ReloadingTestSuiteLoader() - Constructor for class junit.util.ReloadingTestSuiteLoader
 
removeUpdate(DocumentEvent) - Method in class junit.swingui.TestRunner
 
RepeatedTest - class junit.extensions.RepeatedTest.
A Decorator that runs a test repeatedly.
RepeatedTest(Test, int) - Constructor for class junit.extensions.RepeatedTest
 
reset() - Method in class junit.ui.TestRunner
 
reset() - Method in class junit.swingui.TestRunner
 
run() - Method in class junit.framework.TestCase
A convenience method to run this test, collecting the results with a default TestResult object.
run() - Method in class junit.ui.TestRunner
Deprecated. use runSuite() instead
run() - Method in class junit.swingui.TestRunner
Deprecated. use runSuite() instead
run(Class) - Static method in class junit.textui.TestRunner
Runs a suite extracted from a TestCase subclass.
run(Test) - Static method in class junit.textui.TestRunner
Runs a single test and collects its results.
run(TestCase) - Method in class junit.framework.TestResult
Runs a TestCase.
run(TestResult) - Method in interface junit.framework.Test
Runs a test and collects its result in a TestResult instance.
run(TestResult) - Method in class junit.framework.TestCase
Runs the test case and collects the results in TestResult.
run(TestResult) - Method in class junit.framework.TestSuite
Runs the tests and collects their result in a TestResult.
run(TestResult) - Method in class junit.extensions.TestDecorator
 
run(TestResult) - Method in class junit.extensions.TestSetup
 
run(TestResult) - Method in class junit.extensions.ActiveTest
 
run(TestResult) - Method in class junit.extensions.RepeatedTest
 
runAndWait(Test) - Static method in class junit.textui.TestRunner
Runs a single test and waits until the users types RETURN.
runBare() - Method in class junit.framework.TestCase
Runs the bare test sequence.
runCount() - Method in class junit.framework.TestResult
Gets the number of run tests.
runProtected(Test, Protectable) - Method in class junit.framework.TestResult
Runs a TestCase.
runSuite() - Method in class junit.ui.TestRunner
 
runSuite() - Method in class junit.swingui.TestRunner
 
runTest() - Method in class junit.framework.TestCase
Override to run the test and assert its state.
runTest() - Method in class junit.extensions.ExceptionTestCase
Execute the test method expecting that an Exception of class fExpected or one of its subclasses will be thrown
runTest(Test) - Method in class junit.swingui.TestRunner
 
runTests() - Method in class junit.framework.TestResult
Deprecated. use runCount instead

S

setSuiteName(String) - Method in class junit.ui.TestRunner
 
setSuiteName(String) - Method in class junit.swingui.TestRunner
 
setUp() - Method in class junit.framework.TestCase
Sets up the fixture, for example, open a network connection.
setUp() - Method in class junit.extensions.TestSetup
Sets up the fixture.
shouldStop() - Method in class junit.framework.TestResult
Checks whether the test run should stop
StandardTestSuiteLoader - class junit.util.StandardTestSuiteLoader.
The standard test suite loader.
StandardTestSuiteLoader() - Constructor for class junit.util.StandardTestSuiteLoader
 
start(String[]) - Method in class junit.textui.TestRunner
Starts a test run.
start(String[], TestSuiteLoader) - Method in class junit.ui.TestRunner
Starts the TestRunner
start(String[], TestSuiteLoader) - Method in class junit.swingui.TestRunner
Starts the TestRunner
startTest(Test) - Method in class junit.framework.TestResult
Informs the result that a test will be started.
startTest(Test) - Method in interface junit.framework.TestListener
A test started.
startTest(Test) - Method in class junit.ui.TestRunner
 
startTest(Test) - Method in class junit.textui.TestRunner
 
startTest(Test) - Method in class junit.swingui.TestRunner
 
stop() - Method in class junit.framework.TestResult
Marks that the test run should stop.
StringUtil - class junit.util.StringUtil.
A class with junit related String utilities.
StringUtil() - Constructor for class junit.util.StringUtil
 

T

tearDown() - Method in class junit.framework.TestCase
Tears down the fixture, for example, close a network connection.
tearDown() - Method in class junit.extensions.TestSetup
Tears down the fixture.
terminate() - Method in class junit.swingui.TestRunner
Terminates the TestRunner
Test - interface junit.framework.Test.
A Test can be run and collect its results.
testAt(int) - Method in class junit.framework.TestSuite
Returns the test at the given index
TestCase - class junit.framework.TestCase.
A test case defines the fixture to run multiple tests.
TestCase(String) - Constructor for class junit.framework.TestCase
Constructs a test case with the given name.
TestCaseClassLoader - class junit.util.TestCaseClassLoader.
A custom class loader which enables the reloading of classes for each test run.
TestCaseClassLoader() - Constructor for class junit.util.TestCaseClassLoader
Constructs a TestCaseLoader.
testCount() - Method in class junit.framework.TestSuite
Returns the number of tests in this suite
TestDecorator - class junit.extensions.TestDecorator.
A Decorator for Tests.
TestDecorator(Test) - Constructor for class junit.extensions.TestDecorator
 
testErrors() - Method in class junit.framework.TestResult
Deprecated. use errorCount instead
TestFailure - class junit.framework.TestFailure.
A TestFailure collects a failed test together with the caught exception.
TestFailure(Test, Throwable) - Constructor for class junit.framework.TestFailure
Constructs a TestFailure with the given test and exception.
testFailures() - Method in class junit.framework.TestResult
Deprecated. use failureCount instead
TestListener - interface junit.framework.TestListener.
A Listener for test progress
TestResult - class junit.framework.TestResult.
A TestResult collects the results of executing a test case.
TestResult() - Constructor for class junit.framework.TestResult
 
TestRunner - class junit.ui.TestRunner.
A simple user interface to run tests.
TestRunner - class junit.textui.TestRunner.
A command line based tool to run tests.
TestRunner - class junit.swingui.TestRunner.
A simple user interface to run tests.
TestRunner() - Constructor for class junit.ui.TestRunner
 
TestRunner() - Constructor for class junit.textui.TestRunner
This method was created in VisualAge.
TestRunner() - Constructor for class junit.swingui.TestRunner
 
TestRunner(PrintStream) - Constructor for class junit.textui.TestRunner
This method was created in VisualAge.
tests() - Method in class junit.framework.TestSuite
Returns the tests as an enumeration
TestSetup - class junit.extensions.TestSetup.
A Decorator to set up and tear down additional fixture state.
TestSetup(Test) - Constructor for class junit.extensions.TestSetup
 
TestSuite - class junit.framework.TestSuite.
A TestSuite is a Composite of Tests.
TestSuite() - Constructor for class junit.framework.TestSuite
Constructs an empty TestSuite.
TestSuite(Class) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given class.
TestSuite(String) - Constructor for class junit.framework.TestSuite
Constructs an empty TestSuite.
TestSuiteLoader - interface junit.util.TestSuiteLoader.
An interface to define how a test suite should be loaded.
textChanged() - Method in class junit.swingui.TestRunner
 
thrownException() - Method in class junit.framework.TestFailure
Gets the thrown exception.
toString() - Method in class junit.framework.TestCase
Returns a string representation of the test case
toString() - Method in class junit.framework.TestFailure
Returns a short description of the failure.
toString() - Method in class junit.framework.TestSuite
 
toString() - Method in class junit.extensions.TestDecorator
 
toString() - Method in class junit.extensions.ActiveTest
 
toString() - Method in class junit.extensions.RepeatedTest
 
truncate(String, int) - Static method in class junit.util.StringUtil
 

V

Version - class junit.util.Version.
This class defines the current version of JUnit

W

wasSuccessful() - Method in class junit.framework.TestResult
Returns whether the entire test was successful or not.

A B C D E F G I J L M N P R S T V W