Skip navigation links
A B C D E F G H I J K L M O P R S T U V W 

A

aboutToStart(Test, TestResult) - Method in class junit.swingui.FailureRunView
 
aboutToStart(Test, TestResult) - Method in class junit.swingui.TestHierarchyRunView
 
aboutToStart(Test) - Method in class junit.swingui.TestRunner
 
activate() - Method in class junit.swingui.FailureRunView
 
activate() - Method in class junit.swingui.TestHierarchyRunView
 
ActiveTestSuite - Class in junit.extensions
A TestSuite for active Tests.
ActiveTestSuite() - Constructor for class junit.extensions.ActiveTestSuite
 
ActiveTestSuite(Class) - Constructor for class junit.extensions.ActiveTestSuite
 
ActiveTestSuite(String) - Constructor for class junit.extensions.ActiveTestSuite
 
ActiveTestSuite(Class, String) - Constructor for class junit.extensions.ActiveTestSuite
 
addError(Test, Throwable) - Method in interface junit.framework.TestListener
An error occurred.
addError(Test, Throwable) - Method in class junit.framework.TestResult
Adds an error to the list of errors.
addError(Test, Throwable) - Method in class junit.runner.BaseTestRunner
 
addError(Test, Throwable) - Method in class junit.textui.ResultPrinter
 
addFailure(Test, AssertionFailedError) - Method in interface junit.framework.TestListener
A failure occurred.
addFailure(Test, AssertionFailedError) - Method in class junit.framework.TestResult
Adds a failure to the list of failures.
addFailure(Test, AssertionFailedError) - Method in class junit.runner.BaseTestRunner
 
addFailure(Test, AssertionFailedError) - Method in class junit.textui.ResultPrinter
 
addGrid(Panel, Component, int, int, int, int, double, int) - Method in class junit.awtui.TestRunner
 
addListener(TestListener) - Method in class junit.framework.TestResult
Registers a TestListener
addTab(JTabbedPane) - Method in class junit.swingui.FailureRunView
 
addTab(JTabbedPane) - Method in class junit.swingui.TestHierarchyRunView
 
addTest(Test) - Method in class junit.framework.TestSuite
Adds a test to the suite.
addTestSuite(Class) - Method in class junit.framework.TestSuite
Adds the tests from the given class to the suite
addToGrid(Component, int, int, int, int, double, double, int, int, Insets) - Method in class junit.swingui.CounterPanel
 
Assert - Class in junit.framework
A set of assert methods.
Assert() - Constructor for class junit.framework.Assert
Protect constructor since it is a static only class
assertEquals(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects are equal.
assertEquals(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects are equal.
assertEquals(String, String, String) - Static method in class junit.framework.Assert
Asserts that two Strings are equal.
assertEquals(String, String) - Static method in class junit.framework.Assert
Asserts that two Strings are equal.
assertEquals(String, double, double, double) - Static method in class junit.framework.Assert
Asserts that two doubles are equal concerning a delta.
assertEquals(double, double, double) - Static method in class junit.framework.Assert
Asserts that two doubles are equal concerning a delta.
assertEquals(String, float, float, float) - Static method in class junit.framework.Assert
Asserts that two floats are equal concerning a delta.
assertEquals(float, float, float) - Static method in class junit.framework.Assert
Asserts that two floats are equal concerning a delta.
assertEquals(String, long, long) - Static method in class junit.framework.Assert
Asserts that two longs are equal.
assertEquals(long, long) - Static method in class junit.framework.Assert
Asserts that two longs are equal.
assertEquals(String, boolean, boolean) - Static method in class junit.framework.Assert
Asserts that two booleans are equal.
assertEquals(boolean, boolean) - Static method in class junit.framework.Assert
Asserts that two booleans are equal.
assertEquals(String, byte, byte) - Static method in class junit.framework.Assert
Asserts that two bytes are equal.
assertEquals(byte, byte) - Static method in class junit.framework.Assert
Asserts that two bytes are equal.
assertEquals(String, char, char) - Static method in class junit.framework.Assert
Asserts that two chars are equal.
assertEquals(char, char) - Static method in class junit.framework.Assert
Asserts that two chars are equal.
assertEquals(String, short, short) - Static method in class junit.framework.Assert
Asserts that two shorts are equal.
assertEquals(short, short) - Static method in class junit.framework.Assert
Asserts that two shorts are equal.
assertEquals(String, int, int) - Static method in class junit.framework.Assert
Asserts that two ints are equal.
assertEquals(int, int) - Static method in class junit.framework.Assert
Asserts that two ints are equal.
assertFalse(String, boolean) - Static method in class junit.framework.Assert
Asserts that a condition is false.
assertFalse(boolean) - Static method in class junit.framework.Assert
Asserts that a condition is false.
AssertionFailedError - Error in junit.framework
Thrown when an assertion failed.
AssertionFailedError() - Constructor for error junit.framework.AssertionFailedError
 
AssertionFailedError(String) - Constructor for error 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.
assertNotSame(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects do not refer to the same object.
assertNotSame(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects do not refer to the same object.
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(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects refer to the same object.
assertSame(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects refer to the same object.
assertTrue(String, boolean) - Static method in class junit.framework.Assert
Asserts that a condition is true.
assertTrue(boolean) - Static method in class junit.framework.Assert
Asserts that a condition is true.

B

BaseTestRunner - Class in junit.runner
Base class for all test runners.
BaseTestRunner() - Constructor for class junit.runner.BaseTestRunner
 
basicRun(TestResult) - Method in class junit.extensions.TestDecorator
The basic run behaviour.
BOLD_FONT - Static variable in class junit.swingui.StatusLine
 
browseTestClasses() - Method in class junit.swingui.TestRunner
 

C

centerWindow(Component) - Static method in class junit.swingui.TestSelector
 
checkEnableOK(ListSelectionEvent) - Method in class junit.swingui.TestSelector
 
classNameFromFile(String) - Method in class junit.runner.ClassPathTestCollector
 
ClassPathTestCollector - Class in junit.runner
An implementation of a TestCollector that consults the class path.
ClassPathTestCollector() - Constructor for class junit.runner.ClassPathTestCollector
 
clear() - Method in interface junit.runner.FailureDetailView
Clears the view
clear() - Method in class junit.swingui.DefaultFailureDetailView
Clears the output.
clear() - Method in class junit.swingui.StatusLine
 
clearStatus() - Method in class junit.awtui.TestRunner
 
clearStatus() - Method in class junit.runner.BaseTestRunner
Clears the status message.
clearStatus() - Method in class junit.swingui.TestRunner
 
collectFilesInPath(String) - Method in class junit.runner.ClassPathTestCollector
 
collectTests() - Method in class junit.runner.ClassPathTestCollector
 
collectTests() - Method in interface junit.runner.TestCollector
Returns an enumeration of Strings with qualified class names
compact(String) - Method in class junit.framework.ComparisonCompactor
 
ComparisonCompactor - Class in junit.framework
 
ComparisonCompactor(int, String, String) - Constructor for class junit.framework.ComparisonCompactor
 
ComparisonFailure - Error in junit.framework
Thrown when an assert equals for Strings failed.
ComparisonFailure(String, String, String) - Constructor for error junit.framework.ComparisonFailure
Constructs a comparison failure.
CounterPanel - Class in junit.swingui
A panel with test run counters
CounterPanel() - Constructor for class junit.swingui.CounterPanel
 
countTestCases() - Method in class junit.extensions.RepeatedTest
 
countTestCases() - Method in class junit.extensions.TestDecorator
 
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.
createBrowseButton() - Method in class junit.swingui.TestRunner
 
createCounterPanel() - Method in class junit.awtui.TestRunner
 
createCounterPanel() - Method in class junit.swingui.TestRunner
 
createFailedPanel() - Method in class junit.swingui.TestRunner
 
createFailureDetailView() - Method in class junit.swingui.TestRunner
 
createFrame() - Method in class junit.swingui.TestRunner
 
createJUnitMenu() - Method in class junit.awtui.TestRunner
Creates the JUnit menu.
createJUnitMenu() - Method in class junit.swingui.TestRunner
Creates the JUnit menu.
createLoader() - Method in class junit.runner.ReloadingTestSuiteLoader
 
createLogo() - Method in class junit.swingui.TestRunner
 
createMenus(MenuBar) - Method in class junit.awtui.TestRunner
 
createMenus(JMenuBar) - Method in class junit.swingui.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
 
createStatusLine() - Method in class junit.swingui.TestRunner
 
createSuiteCombo() - Method in class junit.swingui.TestRunner
 
createTest(Class, String) - Static method in class junit.framework.TestSuite
...as the moon sets over the early morning Merlin, Oregon mountains, our intrepid adventurers type...
createTestResult() - Method in class junit.awtui.TestRunner
 
createTestResult() - Method in class junit.swingui.TestRunner
 
createTestResult() - Method in class junit.textui.TestRunner
Creates the TestResult to be used for the test run.
createTestRunViews() - Method in class junit.swingui.TestRunner
 
createUI(String) - Method in class junit.awtui.TestRunner
 
createUI(String) - Method in class junit.swingui.TestRunner
 
createUseLoaderCheckBox() - Method in class junit.swingui.TestRunner
 

D

DefaultFailureDetailView - Class in junit.swingui
A view that shows a stack trace of a failure
DefaultFailureDetailView() - Constructor for class junit.swingui.DefaultFailureDetailView
 
doRun(Test) - Method in class junit.textui.TestRunner
 
doRun(Test, boolean) - Method in class junit.textui.TestRunner
 
DoubleClickListener() - Constructor for class junit.swingui.TestSelector.DoubleClickListener
 

E

elapsedTimeAsString(long) - Method in class junit.runner.BaseTestRunner
Returns the formatted string of the elapsed time.
elapsedTimeAsString(long) - Method in class junit.textui.ResultPrinter
Returns the formatted string of the elapsed time.
endTest(Test) - Method in interface junit.framework.TestListener
A test ended.
endTest(Test) - Method in class junit.framework.TestResult
Informs the result that a test was completed.
endTest(Test) - Method in class junit.runner.BaseTestRunner
 
endTest(Test) - Method in class junit.textui.ResultPrinter
 
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
EXCEPTION_EXIT - Static variable in class junit.textui.TestRunner
 
exceptionMessage() - Method in class junit.framework.TestFailure
 
ExceptionTestCase - Class in junit.extensions
A TestCase that expects an Exception of class fExpected to be thrown.
ExceptionTestCase(String, Class) - Constructor for class junit.extensions.ExceptionTestCase
 
extractClassName(String) - Method in class junit.runner.BaseTestRunner
Extract the class name from a String in VA/Java style

F

fail(String) - Static method in class junit.framework.Assert
Fails a test with the given message.
fail() - Static method in class junit.framework.Assert
Fails a test with no message.
failedTest() - Method in class junit.framework.TestFailure
Gets the failed test.
failNotEquals(String, Object, Object) - Static method in class junit.framework.Assert
 
failNotSame(String, Object, Object) - Static method in class junit.framework.Assert
 
failSame(String) - Static method in class junit.framework.Assert
 
FAILURE_EXIT - Static variable in class junit.textui.TestRunner
 
failureCount() - Method in class junit.framework.TestResult
Gets the number of detected failures.
FailureDetailView - Interface in junit.runner
A view to show a details about a failure
FailureRunView - Class in junit.swingui
A view presenting the test failures as a list.
FailureRunView(TestRunContext) - Constructor for class junit.swingui.FailureRunView
 
failures() - Method in class junit.framework.TestResult
Returns an Enumeration for the failures
failureSelected() - Method in class junit.awtui.TestRunner
 
fError - Variable in class junit.awtui.ProgressBar
 
fErrors - Variable in class junit.framework.TestResult
 
fExceptions - Variable in class junit.awtui.TestRunner
 
fFailedTest - Variable in class junit.framework.TestFailure
 
fFailedTests - Variable in class junit.awtui.TestRunner
 
fFailureList - Variable in class junit.awtui.TestRunner
 
fFailures - Variable in class junit.framework.TestResult
 
fFrame - Variable in class junit.awtui.TestRunner
 
fFrame - Variable in class junit.swingui.TestRunner
 
fListeners - Variable in class junit.framework.TestResult
 
fLogo - Variable in class junit.awtui.TestRunner
 
fNumberOfErrors - Variable in class junit.awtui.TestRunner
 
fNumberOfFailures - Variable in class junit.awtui.TestRunner
 
fNumberOfRuns - Variable in class junit.awtui.TestRunner
 
fProgress - Variable in class junit.awtui.ProgressBar
 
fProgressIndicator - Variable in class junit.awtui.TestRunner
 
fProgressX - Variable in class junit.awtui.ProgressBar
 
fQuitButton - Variable in class junit.awtui.TestRunner
 
fRerunButton - Variable in class junit.awtui.TestRunner
 
fRun - Variable in class junit.awtui.TestRunner
 
fRunner - Variable in class junit.awtui.TestRunner
 
fRunTests - Variable in class junit.framework.TestResult
 
fStatusLine - Variable in class junit.awtui.TestRunner
 
fSuiteField - Variable in class junit.awtui.TestRunner
 
fTest - Variable in class junit.extensions.TestDecorator
 
fTestResult - Variable in class junit.awtui.TestRunner
 
fThrownException - Variable in class junit.framework.TestFailure
 
fTotal - Variable in class junit.awtui.ProgressBar
 
fTraceArea - Variable in class junit.awtui.TestRunner
 
fUseLoadingRunner - Variable in class junit.awtui.TestRunner
 

G

getActual() - Method in error junit.framework.ComparisonFailure
Gets the actual string value
getComponent() - Method in interface junit.runner.FailureDetailView
Returns the component used to present the TraceView
getComponent() - Method in class junit.swingui.DefaultFailureDetailView
Returns the component used to present the trace
getExpected() - Method in error junit.framework.ComparisonFailure
Gets the expected string value
getFailures() - Method in interface junit.swingui.TestRunContext
Returns the failure model
getFailures() - Method in class junit.swingui.TestRunner
 
getFilteredTrace(Throwable) - Static method in class junit.runner.BaseTestRunner
Returns a filtered stack trace
getFilteredTrace(String) - Static method in class junit.runner.BaseTestRunner
Filters stack frames from internal JUnit classes
getIconResource(Class, String) - Static method in class junit.swingui.TestRunner
 
getLoader() - Method in class junit.runner.BaseTestRunner
Returns the loader to be used.
getLoader() - Method in class junit.textui.TestRunner
Always use the StandardTestSuiteLoader.
getMessage() - Method in error junit.framework.ComparisonFailure
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
getName() - Method in class junit.framework.TestCase
Gets the name of a TestCase
getName() - Method in class junit.framework.TestSuite
Returns the name of the suite.
getPreference(String) - Static method in class junit.runner.BaseTestRunner
 
getPreference(String, int) - Static method in class junit.runner.BaseTestRunner
 
getPreferences() - Static method in class junit.runner.BaseTestRunner
 
getResource(String) - Method in class junit.runner.TestCaseClassLoader
 
getResourceAsStream(String) - Method in class junit.runner.TestCaseClassLoader
 
getRunner() - Method in class junit.awtui.TestRunner
 
getSelectedItem() - Method in class junit.swingui.TestSelector
 
getSelectedTest() - Method in class junit.swingui.FailureRunView
 
getSelectedTest() - Method in class junit.swingui.TestHierarchyRunView
 
getSuiteText() - Method in class junit.swingui.TestRunner
 
getTest() - Method in class junit.extensions.TestDecorator
 
getTest(String) - Method in class junit.runner.BaseTestRunner
Returns the Test corresponding to the given suite.
getTestConstructor(Class) - Static method in class junit.framework.TestSuite
Gets a constructor which takes a single String as its argument or a no arg constructor.
getWriter() - Method in class junit.textui.ResultPrinter
 

H

handleTestSelected(Test) - Method in interface junit.swingui.TestRunContext
Handles the selection of a Test.
handleTestSelected(Test) - Method in class junit.swingui.TestRunner
 

I

id() - Static method in class junit.runner.Version
 
inMac() - Static method in class junit.runner.BaseTestRunner
 
insertUpdate(DocumentEvent) - Method in class junit.swingui.TestRunner
 
instanciateClass(String, Object) - Method in class junit.swingui.TestRunner
 
inVAJava() - Static method in class junit.runner.BaseTestRunner
 
isEmpty() - Method in class junit.swingui.TestSelector
 
isExcluded(String) - Method in class junit.runner.TestCaseClassLoader
 
isFailure() - Method in class junit.framework.TestFailure
 
isTestClass(String) - Method in class junit.runner.ClassPathTestCollector
 
isTestClass(String) - Method in class junit.runner.LoadingTestCollector
 
isTestClass(String) - Method in class junit.runner.SimpleTestCollector
 

J

junit.awtui - package junit.awtui
 
junit.extensions - package junit.extensions
 
junit.framework - package junit.framework
 
junit.runner - package junit.runner
 
junit.swingui - package junit.swingui
 
junit.textui - package junit.textui
 

K

KeySelectListener() - Constructor for class junit.swingui.TestSelector.KeySelectListener
 
keySelectTestClass(char) - Method in class junit.swingui.TestSelector
 
keyTyped(KeyEvent) - Method in class junit.swingui.TestSelector.KeySelectListener
 

L

load(String) - Method in class junit.runner.ReloadingTestSuiteLoader
 
load(String) - Method in class junit.runner.StandardTestSuiteLoader
Uses the system class loader to load the test class
load(String) - Method in interface junit.runner.TestSuiteLoader
 
loadClass(String, boolean) - Method in class junit.runner.TestCaseClassLoader
 
loadImage(String) - Method in class junit.awtui.Logo
 
LoadingTestCollector - Class in junit.runner
An implementation of a TestCollector that loads all classes on the class path and tests whether it is assignable from Test or provides a static suite method.
LoadingTestCollector() - Constructor for class junit.runner.LoadingTestCollector
 
loadSuiteClass(String) - Method in class junit.runner.BaseTestRunner
Returns the loaded Class for a suite name.
Logo - Class in junit.awtui
 
Logo() - Constructor for class junit.awtui.Logo
 

M

MacProgressBar - Class in junit.swingui
http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac2/
MacProgressBar(JTextField) - Constructor for class junit.swingui.MacProgressBar
 
main(String[]) - Static method in class junit.awtui.TestRunner
 
main(String[]) - Static method in class junit.runner.Version
 
main(String[]) - Static method in class junit.swingui.TestRunner
 
main(String[]) - Static method in class junit.textui.TestRunner
 
mouseClicked(MouseEvent) - Method in class junit.swingui.TestSelector.DoubleClickListener
 

O

okSelected() - Method in class junit.swingui.TestSelector
 

P

paint(Graphics) - Method in class junit.awtui.Logo
 
paint(Graphics) - Method in class junit.awtui.ProgressBar
 
paintBackground(Graphics) - Method in class junit.awtui.Logo
 
paintBackground(Graphics) - Method in class junit.awtui.ProgressBar
 
paintStatus(Graphics) - Method in class junit.awtui.ProgressBar
 
pause(boolean) - Method in class junit.textui.TestRunner
 
PLAIN_FONT - Static variable in class junit.awtui.TestRunner
 
PLAIN_FONT - Static variable in class junit.swingui.StatusLine
 
printDefect(TestFailure, int) - Method in class junit.textui.ResultPrinter
 
printDefectHeader(TestFailure, int) - Method in class junit.textui.ResultPrinter
 
printDefects(Enumeration, int, String) - Method in class junit.textui.ResultPrinter
 
printDefectTrace(TestFailure) - Method in class junit.textui.ResultPrinter
 
printErrors(TestResult) - Method in class junit.textui.ResultPrinter
 
printFailures(TestResult) - Method in class junit.textui.ResultPrinter
 
printFooter(TestResult) - Method in class junit.textui.ResultPrinter
 
printHeader(long) - Method in class junit.textui.ResultPrinter
 
processArguments(String[]) - Method in class junit.runner.BaseTestRunner
Processes the command line arguments and returns the name of the suite class to run or null
ProgressBar - Class in junit.awtui
 
ProgressBar() - Constructor for class junit.awtui.ProgressBar
 
protect() - Method in interface junit.framework.Protectable
Run the the following method protected.
Protectable - Interface in junit.framework
A Protectable can be run and can throw a Throwable.

R

reload(Class) - Method in class junit.runner.ReloadingTestSuiteLoader
 
reload(Class) - Method in class junit.runner.StandardTestSuiteLoader
Uses the system class loader to load the test class
reload(Class) - Method in interface junit.runner.TestSuiteLoader
 
ReloadingTestSuiteLoader - Class in junit.runner
A TestSuite loader that can reload classes.
ReloadingTestSuiteLoader() - Constructor for class junit.runner.ReloadingTestSuiteLoader
 
removeListener(TestListener) - Method in class junit.framework.TestResult
Unregisters a TestListener
removeUpdate(DocumentEvent) - Method in class junit.swingui.TestRunner
 
RepeatedTest - Class in junit.extensions
A Decorator that runs a test repeatedly.
RepeatedTest(Test, int) - Constructor for class junit.extensions.RepeatedTest
 
rerun() - Method in class junit.awtui.TestRunner
 
reset() - Method in class junit.awtui.ProgressBar
 
reset() - Method in class junit.awtui.TestRunner
 
reset() - Method in class junit.swingui.CounterPanel
 
reset() - Method in class junit.swingui.TestRunner
 
ResultPrinter - Class in junit.textui
 
ResultPrinter(PrintStream) - Constructor for class junit.textui.ResultPrinter
 
revealFailure(Test) - Method in class junit.swingui.FailureRunView
 
revealFailure(Test) - Method in class junit.swingui.TestHierarchyRunView
 
run(Class) - Static method in class junit.awtui.TestRunner
 
run(TestResult) - Method in class junit.extensions.ActiveTestSuite
 
run(TestResult) - Method in class junit.extensions.RepeatedTest
 
run(TestResult) - Method in class junit.extensions.TestDecorator
 
run(TestResult) - Method in class junit.extensions.TestSetup
 
run(TestResult) - Method in interface junit.framework.Test
Runs a test and collects its result in a TestResult instance.
run() - Method in class junit.framework.TestCase
A convenience method to run this test, collecting the results with a default TestResult object.
run(TestResult) - Method in class junit.framework.TestCase
Runs the test case and collects the results in TestResult.
run(TestCase) - Method in class junit.framework.TestResult
Runs a TestCase.
run(TestResult) - Method in class junit.framework.TestSuite
Runs the tests and collects their result in a TestResult.
run(Class) - Static method in class junit.swingui.TestRunner
 
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.
runAndWait(Test) - Static method in class junit.textui.TestRunner
Runs a single test and waits until the user 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.
runFailed(String) - Method in class junit.awtui.TestRunner
 
runFailed(String) - Method in class junit.runner.BaseTestRunner
Override to define how to handle a failed loading of a test suite.
runFailed(String) - Method in class junit.swingui.TestRunner
 
runFailed(String) - Method in class junit.textui.TestRunner
 
runFinished() - Method in class junit.extensions.ActiveTestSuite
 
runFinished(Test, TestResult) - Method in class junit.swingui.FailureRunView
 
runFinished(Test, TestResult) - Method in class junit.swingui.TestHierarchyRunView
 
runFinished(Test) - Method in class junit.swingui.TestRunner
 
runProtected(Test, Protectable) - Method in class junit.framework.TestResult
Runs a TestCase.
runSingleMethod(String, String, boolean) - Method in class junit.textui.TestRunner
 
runSuite() - Method in class junit.awtui.TestRunner
 
runSuite() - Method in class junit.swingui.TestRunner
 
runTest(Test, TestResult) - Method in class junit.extensions.ActiveTestSuite
 
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() - Method in class junit.framework.TestCase
Override to run the test and assert its state.
runTest(Test, TestResult) - Method in class junit.framework.TestSuite
 
runTest(Test) - Method in class junit.swingui.TestRunner
 

S

savePreferences() - Static method in class junit.runner.BaseTestRunner
 
scale(int) - Method in class junit.awtui.ProgressBar
 
setBounds(int, int, int, int) - Method in class junit.awtui.ProgressBar
 
setErrorValue(int) - Method in class junit.swingui.CounterPanel
 
setFailureValue(int) - Method in class junit.swingui.CounterPanel
 
setLoading(boolean) - Method in class junit.runner.BaseTestRunner
Sets the loading behaviour of the test runner
setName(String) - Method in class junit.framework.TestCase
Sets the name of a TestCase
setName(String) - Method in class junit.framework.TestSuite
Sets the name of the suite.
setPreference(String, String) - Static method in class junit.runner.BaseTestRunner
 
setPreferences(Properties) - Static method in class junit.runner.BaseTestRunner
 
setPrinter(ResultPrinter) - Method in class junit.textui.TestRunner
 
setRunValue(int) - Method in class junit.swingui.CounterPanel
 
setSuite(String) - Method in class junit.swingui.TestRunner
 
setSuiteName(String) - Method in class junit.awtui.TestRunner
 
setTotal(int) - Method in class junit.swingui.CounterPanel
 
setUp() - Method in class junit.extensions.TestSetup
Sets up the fixture.
setUp() - Method in class junit.framework.TestCase
Sets up the fixture, for example, open a network connection.
shouldStop() - Method in class junit.framework.TestResult
Checks whether the test run should stop
showError(String) - Method in class junit.swingui.StatusLine
 
showFailure(TestFailure) - Method in interface junit.runner.FailureDetailView
Shows details of a TestFailure
showFailure(TestFailure) - Method in class junit.swingui.DefaultFailureDetailView
Shows a TestFailure
showInfo(String) - Method in class junit.swingui.StatusLine
 
showStackRaw() - Static method in class junit.runner.BaseTestRunner
 
SimpleTestCollector - Class in junit.runner
An implementation of a TestCollector that considers a class to be a test class when it contains the pattern "Test" in its name
SimpleTestCollector() - Constructor for class junit.runner.SimpleTestCollector
 
Sorter - Class in junit.runner
A custom quick sort with support to customize the swap behaviour.
Sorter() - Constructor for class junit.runner.Sorter
 
Sorter.Swapper - Interface in junit.runner
 
sortStrings(Vector, int, int, Sorter.Swapper) - Static method in class junit.runner.Sorter
 
StandardTestSuiteLoader - Class in junit.runner
The standard test suite loader.
StandardTestSuiteLoader() - Constructor for class junit.runner.StandardTestSuiteLoader
 
start(int) - Method in class junit.awtui.ProgressBar
 
start(String[]) - Method in class junit.awtui.TestRunner
Starts the TestRunner
start(String[]) - Method in class junit.swingui.TestRunner
Starts the TestRunner
start(String[]) - Method in class junit.textui.TestRunner
Starts a test run.
startTest(Test) - Method in interface junit.framework.TestListener
A test started.
startTest(Test) - Method in class junit.framework.TestResult
Informs the result that a test will be started.
startTest(Test) - Method in class junit.runner.BaseTestRunner
 
startTest(Test) - Method in class junit.textui.ResultPrinter
 
STATUS_ERROR - Static variable in interface junit.runner.TestRunListener
 
STATUS_FAILURE - Static variable in interface junit.runner.TestRunListener
 
StatusLine - Class in junit.swingui
A status line component.
StatusLine(int) - Constructor for class junit.swingui.StatusLine
 
step(boolean) - Method in class junit.awtui.ProgressBar
 
stop() - Method in class junit.framework.TestResult
Marks that the test run should stop.
SUCCESS_EXIT - Static variable in class junit.textui.TestRunner
 
SUITE_METHODNAME - Static variable in class junit.runner.BaseTestRunner
 
swap(Vector, int, int) - Method in interface junit.runner.Sorter.Swapper
 

T

tearDown() - Method in class junit.extensions.TestSetup
Tears down the fixture.
tearDown() - Method in class junit.framework.TestCase
Tears down the fixture, for example, close a network connection.
terminate() - Method in class junit.swingui.TestRunner
Terminates the TestRunner
Test - Interface in junit.framework
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 in junit.framework
A test case defines the fixture to run multiple tests.
TestCase() - Constructor for class junit.framework.TestCase
No-arg constructor to enable serialization.
TestCase(String) - Constructor for class junit.framework.TestCase
Constructs a test case with the given name.
TestCaseClassLoader - Class in junit.runner
A custom class loader which enables the reloading of classes for each test run.
TestCaseClassLoader() - Constructor for class junit.runner.TestCaseClassLoader
Constructs a TestCaseLoader.
TestCaseClassLoader(String) - Constructor for class junit.runner.TestCaseClassLoader
Constructs a TestCaseLoader.
TestCollector - Interface in junit.runner
Collects Test class names to be presented by the TestSelector.
testCount() - Method in class junit.framework.TestSuite
Returns the number of tests in this suite
TestDecorator - Class in junit.extensions
A Decorator for Tests.
TestDecorator(Test) - Constructor for class junit.extensions.TestDecorator
 
testEnded(String) - Method in class junit.awtui.TestRunner
 
testEnded(String) - Method in class junit.runner.BaseTestRunner
 
testEnded(String) - Method in interface junit.runner.TestRunListener
 
testEnded(String) - Method in class junit.swingui.TestRunner
 
testEnded(String) - Method in class junit.textui.TestRunner
 
testFailed(int, Test, Throwable) - Method in class junit.awtui.TestRunner
 
testFailed(int, Test, Throwable) - Method in class junit.runner.BaseTestRunner
 
testFailed(int, String, String) - Method in interface junit.runner.TestRunListener
 
testFailed(int, Test, Throwable) - Method in class junit.swingui.TestRunner
 
testFailed(int, Test, Throwable) - Method in class junit.textui.TestRunner
 
TestFailure - Class in junit.framework
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.
TestHierarchyRunView - Class in junit.swingui
A hierarchical view of a test run.
TestHierarchyRunView(TestRunContext) - Constructor for class junit.swingui.TestHierarchyRunView
 
TestListener - Interface in junit.framework
A Listener for test progress
TestResult - Class in junit.framework
A TestResult collects the results of executing a test case.
TestResult() - Constructor for class junit.framework.TestResult
 
TestRunContext - Interface in junit.swingui
The interface for accessing the Test run context.
testRunEnded(long) - Method in interface junit.runner.TestRunListener
 
TestRunListener - Interface in junit.runner
A listener interface for observing the execution of a test run.
TestRunner - Class in junit.awtui
An AWT based user interface to run tests.
TestRunner() - Constructor for class junit.awtui.TestRunner
 
TestRunner - Class in junit.swingui
A Swing based user interface to run tests.
TestRunner() - Constructor for class junit.swingui.TestRunner
 
TestRunner - Class in junit.textui
A command line based tool to run tests.
TestRunner() - Constructor for class junit.textui.TestRunner
Constructs a TestRunner.
TestRunner(PrintStream) - Constructor for class junit.textui.TestRunner
Constructs a TestRunner using the given stream for all the output
TestRunner(ResultPrinter) - Constructor for class junit.textui.TestRunner
Constructs a TestRunner using the given ResultPrinter all the output
testRunStarted(String, int) - Method in interface junit.runner.TestRunListener
 
testRunStopped(long) - Method in interface junit.runner.TestRunListener
 
tests() - Method in class junit.framework.TestSuite
Returns the tests as an enumeration
testSelected() - Method in class junit.swingui.FailureRunView
 
testSelected() - Method in class junit.swingui.TestHierarchyRunView
 
TestSelector - Class in junit.swingui
A test class selector.
TestSelector(Frame, TestCollector) - Constructor for class junit.swingui.TestSelector
 
TestSelector.DoubleClickListener - Class in junit.swingui
 
TestSelector.KeySelectListener - Class in junit.swingui
 
TestSetup - Class in junit.extensions
A Decorator to set up and tear down additional fixture state.
TestSetup(Test) - Constructor for class junit.extensions.TestSetup
 
testStarted(String) - Method in class junit.awtui.TestRunner
 
testStarted(String) - Method in class junit.runner.BaseTestRunner
 
testStarted(String) - Method in interface junit.runner.TestRunListener
 
testStarted(String) - Method in class junit.swingui.TestRunner
 
testStarted(String) - Method in class junit.textui.TestRunner
 
TestSuite - Class in junit.framework
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(Class, String) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given class with the given name.
TestSuite(String) - Constructor for class junit.framework.TestSuite
Constructs an empty TestSuite.
TestSuite(Class[]) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given array of classes.
TestSuite(Class[], String) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given array of classes with the given name.
TestSuiteLoader - Interface in junit.runner
An interface to define how a test suite should be loaded.
testViewChanged() - Method in class junit.swingui.TestRunner
 
textChanged() - Method in class junit.swingui.TestRunner
 
thrownException() - Method in class junit.framework.TestFailure
Gets the thrown exception.
toString() - Method in class junit.extensions.RepeatedTest
 
toString() - Method in class junit.extensions.TestDecorator
 
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
 
trace() - Method in class junit.framework.TestFailure
 
truncate(String) - Static method in class junit.runner.BaseTestRunner
Truncates a String to the maximum length.

U

updateBarColor() - Method in class junit.swingui.MacProgressBar
 
useReloadingTestSuiteLoader() - Method in class junit.runner.BaseTestRunner
 

V

Version - Class in junit.runner
This class defines the current version of JUnit

W

warning(String) - Static method in class junit.framework.TestSuite
Returns a test which will fail and log a warning message.
wasSuccessful() - Method in class junit.framework.TestResult
Returns whether the entire test was successful or not.
A B C D E F G H I J K L M O P R S T U V W 
Skip navigation links