Interface UnitTest
- All Known Implementing Classes:
AbstractTest
public interface UnitTest
A Codename One unit test interface, you would normally like to derive from
AbstractTest which is less verbose and contains many helper methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Cleanup after a test case executedintReturns the time in milliseconds after which the test should be automatically failed.voidprepare()Prepares the unit test for executionbooleanrunTest()Runs a unit test, if it returns true it passed.booleanReturns true to indicate that the test expects to be executed on the EDT
-
Method Details
-
runTest
-
prepare
void prepare()Prepares the unit test for execution -
cleanup
void cleanup()Cleanup after a test case executed -
getTimeoutMillis
int getTimeoutMillis()Returns the time in milliseconds after which the test should be automatically failed.
Returns
time in milliseconds
-
shouldExecuteOnEDT
boolean shouldExecuteOnEDT()Returns true to indicate that the test expects to be executed on the EDT
Returns
whether the test should execute on the EDT or the testing thread
-