|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.midlet.MIDlet
jmunit.framework.cldc11.Assertion
jmunit.framework.cldc11.AdvancedAssertion
jmunit.framework.cldc11.Test
jmunit.framework.cldc11.TestCase
public abstract class TestCase
The principal class in the framework. All your test classes must extend this one. It's purpose is to encapsulate all the tests methods of the application or a specific group of them. The framework then use it to execute all.
Field Summary |
---|
Fields inherited from class jmunit.framework.cldc11.Test |
---|
screen |
Constructor Summary | |
---|---|
TestCase(int totalOfTests,
java.lang.String name)
The default constructor. |
Method Summary | |
---|---|
void |
setUp()
A empty mehod used by the framework to initialize the tests. |
void |
tearDown()
A empty mehod used by the framework to release resources used by the tests. |
void |
test()
The test method executes all the tests. |
abstract void |
test(int testNumber)
This method stores all the test methods invocation. |
Methods inherited from class jmunit.framework.cldc11.Test |
---|
destroyApp, pauseApp, setScreen, startApp |
Methods inherited from class javax.microedition.midlet.MIDlet |
---|
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestCase(int totalOfTests, java.lang.String name)
totalOfTests
- the total of test methods present in the class.name
- this testcase's name.Method Detail |
---|
public final void test()
test
in class Test
public abstract void test(int testNumber) throws java.lang.Throwable
testNumber
- the test to be executed.
java.lang.Throwable
- anything that the executed test can throw.public void setUp() throws java.lang.Throwable
java.lang.Throwable
- anything that the initialization can throw.public void tearDown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |