Alphabetical Index

A B C E F G I J P R S T W

A

ActiveTestSuite - class junit.extensions.ActiveTestSuite
A TestSuite for active Tests.
ActiveTestSuite() - constructor for class junit.extensions.ActiveTestSuite
Constructs an empty TestSuite.
ActiveTestSuite(Class) - constructor for class junit.extensions.ActiveTestSuite
Constructs a TestSuite from the given class.
ActiveTestSuite(Class,String) - constructor for class junit.extensions.ActiveTestSuite
Constructs a TestSuite from the given class with the given name.
ActiveTestSuite(String) - constructor for class junit.extensions.ActiveTestSuite
Constructs an empty TestSuite.
addError(junit.framework.Test,Throwable) - method in class junit.framework.TestListener
An error occurred.
addError(junit.framework.Test,Throwable) - method in class junit.framework.TestResult
Adds an error to the list of errors.
A failure occurred.
Adds a failure to the list of failures.
addListener(junit.framework.TestListener) - method in class junit.framework.TestResult
Registers a TestListener
addTest(junit.framework.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
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
assertEquals(boolean,boolean) - static method in class junit.framework.Assert
Asserts that two booleans are equal.
assertEquals(byte,byte) - static method in class junit.framework.Assert
Asserts that two bytes are equal.
assertEquals(char,char) - static method in class junit.framework.Assert
Asserts that two chars are equal.
assertEquals(double,double,double) - static method in class junit.framework.Assert
Asserts that two doubles 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(int,int) - static method in class junit.framework.Assert
Asserts that two ints 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(short,short) - static method in class junit.framework.Assert
Asserts that two shorts are equal.
assertEquals(String,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(String,char,char) - static method in class junit.framework.Assert
Asserts that two chars are equal.
assertEquals(String,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(String,int,int) - static method in class junit.framework.Assert
Asserts that two ints 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.
assertEquals(String,short,short) - static method in class junit.framework.Assert
Asserts that two shorts are equal.
assertEquals(String,String) - static method in class junit.framework.Assert
Asserts that two Strings are equal.
assertEquals(String,String,String) - static method in class junit.framework.Assert
Asserts that two Strings are equal.
assertFalse(boolean) - static method in class junit.framework.Assert
Asserts that a condition is false.
assertFalse(String,boolean) - static method in class junit.framework.Assert
Asserts that a condition is false.
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.
assertNotSame(Object,Object) - static method in class junit.framework.Assert
Asserts that two objects do not refer to the same object.
assertNotSame(String,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(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.
assertTrue(boolean) - static method in class junit.framework.Assert
Asserts that a condition is true.
assertTrue(String,boolean) - static method in class junit.framework.Assert
Asserts that a condition is true.

B

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

C

compact(String) - method in class junit.framework.ComparisonCompactor
ComparisonCompactor(int,String,String) - constructor for class junit.framework.ComparisonCompactor
ComparisonFailure - class junit.framework.ComparisonFailure
Thrown when an assert equals for Strings failed.
ComparisonFailure(String,String,String) - constructor for class junit.framework.ComparisonFailure
Constructs a comparison failure.
countTestCases() - method in class junit.extensions.RepeatedTest
countTestCases() - method in class 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.extensions.TestDecorator
Counts the number of test cases that will be run by this test.
countTestCases() - method in class junit.framework.TestSuite
Counts the number of test cases that will be run by this test.
createResult() - method in class junit.framework.TestCase
Creates a default TestResult object
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...

E

endTest(junit.framework.Test) - method in class junit.framework.TestListener
A test ended.
endTest(junit.framework.Test) - method in class junit.framework.TestResult
Informs the result that a test was completed.
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
exceptionMessage() - method in class junit.framework.TestFailure
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

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.
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
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 - field in class junit.framework.TestResult
fFailedTest - field in class junit.framework.TestFailure
fFailures - field in class junit.framework.TestResult
fListeners - field in class junit.framework.TestResult
fRunTests - field in class junit.framework.TestResult
fTest - field in class junit.extensions.TestDecorator
fThrownException - field in class junit.framework.TestFailure

G

getActual() - method in class junit.framework.ComparisonFailure
Gets the actual string value
getExpected() - method in class junit.framework.ComparisonFailure
Gets the expected string value
getMessage() - method in class 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.
getTest() - method in class junit.extensions.TestDecorator
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.

I

isFailure() - method in class junit.framework.TestFailure

J

junit.framework - package

P

protect() - method in class 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

Unregisters a TestListener
RepeatedTest - class junit.extensions.RepeatedTest
A Decorator that runs a test repeatedly.
RepeatedTest(junit.framework.Test,int) - constructor for class junit.extensions.RepeatedTest
run() - method in class junit.framework.TestCase
A convenience method to run this test, collecting the results with a default TestResult object.
run(junit.framework.TestCase) - method in class junit.framework.TestResult
Runs a TestCase.
run(junit.framework.TestResult) - method in class junit.extensions.ActiveTestSuite
Runs the tests and collects their result in a TestResult.
run(junit.framework.TestResult) - method in class junit.extensions.RepeatedTest
run(junit.framework.TestResult) - method in class junit.framework.Test
Runs a test and collects its result in a TestResult instance.
run(junit.framework.TestResult) - method in class junit.framework.TestCase
Runs the test case and collects the results in TestResult.
run(junit.framework.TestResult) - method in class junit.extensions.TestDecorator
Runs a test and collects its result in a TestResult instance.
run(junit.framework.TestResult) - method in class junit.extensions.TestSetup
run(junit.framework.TestResult) - method in class junit.framework.TestSuite
Runs the tests and collects their result in a TestResult.
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.
runFinished() - method in class junit.extensions.ActiveTestSuite
Runs a TestCase.
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.

S

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.
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
startTest(junit.framework.Test) - method in class junit.framework.TestListener
A test started.
startTest(junit.framework.Test) - method in class junit.framework.TestResult
Informs the result that a test will be started.
stop() - method in class junit.framework.TestResult
Marks that the test run should stop.

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.
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() - 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.
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(junit.framework.Test) - constructor for class junit.extensions.TestDecorator
TestFailure - class junit.framework.TestFailure
A TestFailure collects a failed test together with the caught exception.
TestFailure(junit.framework.Test,Throwable) - constructor for class junit.framework.TestFailure
Constructs a TestFailure with the given test and exception.
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
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(junit.framework.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(Class,String) - constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given class with the given name.
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.
TestSuite(String) - constructor for class junit.framework.TestSuite
Constructs an empty TestSuite.
thrownException() - method in class junit.framework.TestFailure
Gets the thrown exception.
toString() - method in class junit.extensions.RepeatedTest
toString() - method in class junit.framework.TestCase
Returns a string representation of the test case
toString() - method in class junit.extensions.TestDecorator
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

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.