|
||||||||
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.Test
public abstract class Test
The Test is a abstract class that has the main implementation to create a executing test class or a utility class to execute others. The MIDlet methods as startApp are localized here.
Field Summary | |
---|---|
protected java.lang.String |
name
The name of the test. |
protected TestResult |
results
The TestResult object that will handle test result updates. |
Constructor Summary | |
---|---|
Test(java.lang.String name)
The constructor. |
Method Summary | |
---|---|
abstract int |
countTestCases()
Counts the number of test cases that will be run by this test. |
void |
destroyApp(boolean unconditional)
It's an empty method. |
void |
doStart()
The doStart method is a template method that is called when an app is started. |
java.lang.String |
getName()
This method gets the names of the test. |
void |
pauseApp()
It's an empty method. |
abstract void |
run(TestResult result)
Runs a test and collects its result in a TestResult instance. |
void |
startApp()
The startApp puts the screen in the simulator interface. |
void |
test()
This convenience method runs all the tests and creates a TestResult if necessary. |
Methods inherited from class jmunit.framework.cldc11.Assertion |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, fail, fail, fail, fail, fail, fail, fail, fail, fail |
Methods inherited from class javax.microedition.midlet.MIDlet |
---|
getAppProperty, notifyDestroyed, notifyPaused, resumeRequest |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected TestResult results
Constructor Detail |
---|
public Test(java.lang.String name)
name
- the name of the executing class.Method Detail |
---|
public final void startApp()
startApp
in class javax.microedition.midlet.MIDlet
public void doStart()
public final void pauseApp()
pauseApp
in class javax.microedition.midlet.MIDlet
public final void destroyApp(boolean unconditional)
destroyApp
in class javax.microedition.midlet.MIDlet
unconditional
- an irrelevant boolean.public final void test()
public final java.lang.String getName()
public abstract int countTestCases()
public abstract void run(TestResult result)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |