A C D E F G I J M O P R S T V W

A

addError(Test, Throwable) - Method in interface j2meunit.framework.TestListener
An error occurred.
addError(Test, Throwable) - Method in class j2meunit.framework.TestResult
Adds an error to the list of errors.
addError(Test, Throwable) - Method in class j2meunit.textui.TestRunner
DOCUMENT ME!
addFailure(Test, AssertionFailedError) - Method in interface j2meunit.framework.TestListener
A failure occurred.
addFailure(Test, AssertionFailedError) - Method in class j2meunit.framework.TestResult
Adds a failure to the list of failures.
addFailure(Test, AssertionFailedError) - Method in class j2meunit.textui.TestRunner
DOCUMENT ME!
addListener(TestListener) - Method in class j2meunit.framework.TestResult
Registers a TestListener
addTest(Test) - Method in class j2meunit.framework.TestSuite
Adds a test to the suite.
Assert - Class in j2meunit.framework
A set of assert methods.
Assert() - Constructor for class j2meunit.framework.Assert
Creates a new Assert object.
assertEquals(long, long) - Method in class j2meunit.framework.Assert
Asserts that two longs are equal.
assertEquals(Object, Object) - Method in class j2meunit.framework.Assert
Asserts that two objects are equal.
assertEquals(String, long, long) - Method in class j2meunit.framework.Assert
Asserts that two longs are equal.
assertEquals(String, Object, Object) - Method in class j2meunit.framework.Assert
Asserts that two objects are equal.
assertionCount() - Method in class j2meunit.framework.TestResult
Gets the number of detected failures.
AssertionFailedError - Error in j2meunit.framework
Thrown when an assertion failed.
AssertionFailedError() - Constructor for error j2meunit.framework.AssertionFailedError
Creates a new AssertionFailedError object.
AssertionFailedError(String) - Constructor for error j2meunit.framework.AssertionFailedError
Creates a new AssertionFailedError object.
assertionMade() - Method in class j2meunit.framework.TestResult
Adds a failure to the list of failures.
assertNotNull(Object) - Method in class j2meunit.framework.Assert
Asserts that an object isn't null.
assertNotNull(String, Object) - Method in class j2meunit.framework.Assert
Asserts that an object isn't null.
assertNull(Object) - Method in class j2meunit.framework.Assert
Asserts that an object is null.
assertNull(String, Object) - Method in class j2meunit.framework.Assert
Asserts that an object is null.
assertSame(Object, Object) - Method in class j2meunit.framework.Assert
Asserts that two objects refer to the same object.
assertSame(String, Object, Object) - Method in class j2meunit.framework.Assert
Asserts that two objects refer to the same object.
assertTrue(String, boolean) - Method in class j2meunit.framework.Assert
Asserts that a condition is true.
assertTrue(boolean) - Method in class j2meunit.framework.Assert
Asserts that a condition is true.

C

com.livescribe.penunit.framework - package com.livescribe.penunit.framework
 
countTestCases() - Method in interface j2meunit.framework.Test
Counts the number of test cases that will be run by this test.
countTestCases() - Method in class j2meunit.framework.TestCase
Always return 1.
countTestCases() - Method in class j2meunit.framework.TestSuite
Counts the number of test cases that will be run by this suite.
countTestSteps() - Method in interface j2meunit.framework.Test
Counts the number of test steps that will be run by this test.
countTestSteps() - Method in class j2meunit.framework.TestCase
Returns the same as countTestCases.
countTestSteps() - Method in class j2meunit.framework.TestSuite
Counts the number of test steps that will be run by this suite.
createResult() - Method in class j2meunit.framework.TestCase
Creates a default TestResult object
createTestResult() - Method in class j2meunit.textui.TestRunner
Creates the TestResult to be used for the test run.

D

doRun(Test) - Method in class j2meunit.textui.TestRunner
DOCUMENT ME!

E

elapsedTimeAsString(long) - Static method in class j2meunit.util.StringUtil
Assumes the argument to be a decimal number of milliseconds and formats it into a string.
endTest(Test) - Method in interface j2meunit.framework.TestListener
A test ended.
endTest(Test) - Method in class j2meunit.framework.TestResult
Informs the result that a test was completed.
endTest(Test) - Method in class j2meunit.textui.TestRunner
DOCUMENT ME!
endTestStep(Test) - Method in interface j2meunit.framework.TestListener
A test step ended.
endTestStep(Test) - Method in class j2meunit.framework.TestResult
Informs the result that a test was completed.
endTestStep(Test) - Method in class j2meunit.textui.TestRunner
TestListener.endTestStep()
errorCount() - Method in class j2meunit.framework.TestResult
Gets the number of detected errors.
errors() - Method in class j2meunit.framework.TestResult
Returns an Enumeration for the errors

F

fail() - Method in class j2meunit.framework.Assert
Fails a test with no message.
fail(String) - Method in class j2meunit.framework.Assert
Fails a test with the given error message.
failedTest() - Method in class j2meunit.framework.TestFailure
Gets the failed test.
failNotEquals(String, Object, Object) - Method in class j2meunit.framework.Assert
Fails an "assertEquals" test with the given error message.
failNotSame(String, Object, Object) - Method in class j2meunit.framework.Assert
Fails an "assertSame" test with the given error message.
failureCount() - Method in class j2meunit.framework.TestResult
Gets the number of detected failures.
failures() - Method in class j2meunit.framework.TestResult
Returns an Enumeration for the failures
fAssertions - Variable in class j2meunit.framework.TestResult
 
fErrors - Variable in class j2meunit.framework.TestResult
 
fFailedTest - Variable in class j2meunit.framework.TestFailure
 
fFailures - Variable in class j2meunit.framework.TestResult
 
fListeners - Variable in class j2meunit.framework.TestResult
 
fRunTests - Variable in class j2meunit.framework.TestResult
 
fThrownException - Variable in class j2meunit.framework.TestFailure
 
fWriter - Variable in class j2meunit.textui.TestRunner
 

G

getName() - Method in class j2meunit.framework.TestCase
Returns the test name.
getPageInstance(int, int, String) - Static method in class com.livescribe.penunit.framework.PenletTestCase
 
getPageInstance(int, int, long) - Static method in class com.livescribe.penunit.framework.PenletTestCase
 
getPenlet() - Method in class com.livescribe.penunit.framework.PenletTestCase
Returns the initialized Penlet.
getRegionCollection(PageInstance) - Method in class com.livescribe.penunit.framework.PenletTestCase
Returns the region collection associated with a page.
getTestMethod() - Method in class j2meunit.framework.TestCase
Returns the Method to be executed by the test case instance.
getTestMethodName() - Method in class j2meunit.framework.TestCase
Deprecated. Replaced by getName()

I

id() - Static method in class j2meunit.util.Version
Returns the current version of J2MEUnit.

J

j2meunit.framework - package j2meunit.framework
 
j2meunit.textui - package j2meunit.textui
 
j2meunit.util - package j2meunit.util
 

M

main(String[]) - Static method in class j2meunit.textui.TestRunner
main entry point.

O

onAssertion() - Method in class j2meunit.framework.Assert
This method is called every time an assertion is made (this does not include direct fails).
onAssertion() - Method in class j2meunit.framework.TestCase
Callback from the Assert base class that will be invoked on assertions.

P

PenletTestCase - Class in com.livescribe.penunit.framework
PenletTestCase is an extension of TestCase that provides access to an initialized Penlet.
PenletTestCase(String) - Constructor for class com.livescribe.penunit.framework.PenletTestCase
 
PenletTestCase(String, String) - Constructor for class com.livescribe.penunit.framework.PenletTestCase
 
PenletTestCase(String, TestMethod, String) - Constructor for class com.livescribe.penunit.framework.PenletTestCase
 
print(TestResult) - Method in class j2meunit.textui.TestRunner
Prints failures to the standard output
printErrors(TestResult) - Method in class j2meunit.textui.TestRunner
Prints the errors to the standard output
printFailures(TestResult) - Method in class j2meunit.textui.TestRunner
Prints failures to the standard output
printHeader(TestResult) - Method in class j2meunit.textui.TestRunner
Prints the header of the report
processArguments(String[]) - Method in class j2meunit.textui.TestRunner
Starts a test run.
protect() - Method in interface j2meunit.framework.Protectable
Run the the following method protected.
Protectable - Interface in j2meunit.framework
A Protectable can be run and can throw a Throwable.

R

run(TestResult) - Method in interface j2meunit.framework.Test
Runs a test and collects its result in a TestResult instance.
run() - Method in class j2meunit.framework.TestCase
A convenience method to run this test, collecting the results with a default TestResult object.
run(TestResult) - Method in class j2meunit.framework.TestCase
Runs the test case and collects the results in TestResult.
run(TestCase) - Method in interface j2meunit.framework.TestMethod
This is the method that needs to be implemented to invoke the actual test method of the TestCase class.
run(TestCase) - Method in class j2meunit.framework.TestResult
Runs a TestCase.
run(TestResult) - Method in class j2meunit.framework.TestSuite
Runs the tests and collects their result in a TestResult.
run(Test) - Static method in class j2meunit.textui.TestRunner
Runs a single test and collects its results.
runBare() - Method in class j2meunit.framework.TestCase
Runs the bare test sequence.
runCount() - Method in class j2meunit.framework.TestResult
Gets the number of run tests.
runProtected(Test, Protectable) - Method in class j2meunit.framework.TestResult
Runs a TestCase.
runTest() - Method in class j2meunit.framework.TestCase
The default implementation will run the TestMethod associated with the TestCase instance and asserts that it is not null.
runTests() - Method in class j2meunit.framework.TestResult
Deprecated. use runCount instead

S

setName(String) - Method in class j2meunit.framework.TestCase
To set the test name.
setTestMethod(String, TestMethod) - Method in class j2meunit.framework.TestCase
Convenience method to set the name and wrapper of the method to be executed by the test case instance.
setTestMethod(TestMethod) - Method in class j2meunit.framework.TestCase
To set the method to be executed by the test case instance.
setTestMethodName(String) - Method in class j2meunit.framework.TestCase
Deprecated. Replaced by setName(String)
setUp() - Method in class com.livescribe.penunit.framework.PenletTestCase
Loads the penlet associated with the testcase.
setUp() - Method in class j2meunit.framework.TestCase
Sets up the fixture, for example, open a network connection.
shouldStop() - Method in class j2meunit.framework.TestResult
Checks whether the test run should stop
start(String[]) - Method in class j2meunit.textui.TestRunner
Starts a test run.
startTest(Test) - Method in interface j2meunit.framework.TestListener
A test started.
startTest(Test) - Method in class j2meunit.framework.TestResult
Informs the result that a test will be started.
startTest(Test) - Method in class j2meunit.textui.TestRunner
DOCUMENT ME!
stop() - Method in class j2meunit.framework.TestResult
Marks that the test run should stop.
StringUtil - Class in j2meunit.util
A class with junit related String utilities.
StringUtil() - Constructor for class j2meunit.util.StringUtil
Creates a new StringUtil object.
suite() - Method in class j2meunit.framework.TestCase
This method should be overridden if a test case contains multiple test methods.

T

tearDown() - Method in class com.livescribe.penunit.framework.PenletTestCase
UnLoads the penlet associated with the testcase.
tearDown() - Method in class j2meunit.framework.TestCase
Tears down the fixture, for example, close a network connection.
Test - Interface in j2meunit.framework
A Test can be run and collect its results.
testAt(int) - Method in class j2meunit.framework.TestSuite
Returns the test at the given index.
TestCase - Class in j2meunit.framework
A test case defines the fixture to run multiple tests.
TestCase() - Constructor for class j2meunit.framework.TestCase
Default constructor.
TestCase(String) - Constructor for class j2meunit.framework.TestCase
Constructor for a named Test.
TestCase(String, TestMethod) - Constructor for class j2meunit.framework.TestCase
Constructor for a test that will execute a particular test method.
testCount() - Method in class j2meunit.framework.TestSuite
Returns the number of tests in this suite.
testErrors() - Method in class j2meunit.framework.TestResult
Deprecated. use errorCount instead
TestFailure - Class in j2meunit.framework
A TestFailure collects a failed test together with the caught exception.
TestFailure(Test, Throwable) - Constructor for class j2meunit.framework.TestFailure
Constructs a TestFailure with the given test and exception.
testFailures() - Method in class j2meunit.framework.TestResult
Deprecated. use failureCount instead
TestListener - Interface in j2meunit.framework
A Listener for test progress
TestMethod - Interface in j2meunit.framework
Wrapper interface for single test methods to alleviate the lack of reflection in J2ME.
TestResult - Class in j2meunit.framework
A TestResult collects the results of executing a test case.
TestResult() - Constructor for class j2meunit.framework.TestResult
Creates a new TestResult object.
TestRunner - Class in j2meunit.textui
A command line based tool to run tests.
TestRunner() - Constructor for class j2meunit.textui.TestRunner
Default constructor.
TestRunner(PrintStream) - Constructor for class j2meunit.textui.TestRunner
Constructor with a specific output stream.
tests() - Method in class j2meunit.framework.TestSuite
Returns the tests as an enumeration.
testStepFinished() - Method in class j2meunit.framework.TestCase
Notifies listeners that a test step has finished.
TestSuite - Class in j2meunit.framework
A TestSuite is a collection of Test instances which can be run together.
TestSuite() - Constructor for class j2meunit.framework.TestSuite
Default constructor.
TestSuite(String) - Constructor for class j2meunit.framework.TestSuite
To create a test suite with a particular name.
TestSuite(Test) - Constructor for class j2meunit.framework.TestSuite
To create a test suite initialized with a single test.
TestSuite(Test[]) - Constructor for class j2meunit.framework.TestSuite
To create a test suite initialized with multiple tests.
TestSuite(Class, String[]) - Constructor for class j2meunit.framework.TestSuite
Creates a new test suite for certain methods of a particular test case class.
thrownException() - Method in class j2meunit.framework.TestFailure
Gets the thrown exception.
toString() - Method in class j2meunit.framework.TestCase
Returns a string representation of the test case.
toString() - Method in class j2meunit.framework.TestFailure
Returns a short description of the failure.
toString() - Method in class j2meunit.framework.TestSuite
Create a string description of the suite.
truncate(String, int) - Static method in class j2meunit.util.StringUtil
Truncates a string to a maximum length.

V

Version - Class in j2meunit.util
This class contains the current version number of J2MEUnit.

W

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

A C D E F G I J M O P R S T V W