|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.midlet.MIDlet
jmunit.framework.cldc10.Assertion
jmunit.framework.cldc10.AdvancedAssertion
jmunit.framework.cldc10.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 Screen |
screen
|
Constructor Summary | |
---|---|
Test(int totalOfTests,
java.lang.String name)
The default constructor. |
Method Summary | |
---|---|
void |
destroyApp(boolean unconditional)
It's a empty method. |
void |
pauseApp()
It's a empty method. |
void |
setScreen(Screen screen)
A setter method that associates a Screen's object to this instance of Test. |
void |
startApp()
The startApp puts the screen in the simulator interface. |
abstract void |
test()
This abstract method is used to execute the tests. |
Methods inherited from class jmunit.framework.cldc10.Assertion |
---|
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, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, fail, fail, fail, fail, fail, fail, fail, fail |
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 |
Field Detail |
---|
protected Screen screen
Constructor Detail |
---|
public Test(int totalOfTests, java.lang.String name)
name
- the name of the executing class.totalOfTests
- the amount of test methods that the subclass has.
java.lang.IllegalArgumentException
- when the total of tests is negative.Method Detail |
---|
public final void startApp()
startApp
in class javax.microedition.midlet.MIDlet
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
- a irrelevant boolean.public final void setScreen(Screen screen)
screen
- the object that is setted.public abstract void test()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |