| |
|
| java.lang.Object javax.microedition.midlet.MIDlet com.sun.midp.util.LcduiTestMIDlet
LcduiTestMIDlet | public class LcduiTestMIDlet extends MIDlet (Code) | | A MIDlet for use by i3tests. This MIDlet includes utility
functions that start the midlet, activate it, and bring its display into
the foreground. Invoke this from a test class with the statement
LcduiTestMIDlet.invoke();
and clean it up with the statement
LcduiTestMIDlet.cleanup();
|
Constructor Summary | |
public | LcduiTestMIDlet() Should be called only by the MIDlet runtime. |
Method Summary | |
public static void | cleanup() Destroys the test MIDlet and waits for the AMS to finish
its processing. | public void | destroyApp(boolean unconditional) Should be called only by the MIDlet runtime. | public static Display | getDisplay() Gets the Display object for the test MIDlet. | public static MIDlet | getMIDlet() Gets the MIDlet instance. | public static boolean | invoke() Starts the test MIDlet and waits for it to be created, activated, and
for its Display to be put into the foreground and painted. | public void | pauseApp() Should be called only by the MIDlet runtime. | public void | startApp() Should be called only by the MIDlet runtime. |
canvasPainted | static boolean canvasPainted(Code) | | |
display | static Display display(Code) | | |
LcduiTestMIDlet | public LcduiTestMIDlet()(Code) | | Should be called only by the MIDlet runtime.
|
cleanup | public static void cleanup()(Code) | | Destroys the test MIDlet and waits for the AMS to finish
its processing.
|
getDisplay | public static Display getDisplay()(Code) | | Gets the Display object for the test MIDlet. This is non-null only
between calls to invoke() and cleanup().
|
getMIDlet | public static MIDlet getMIDlet()(Code) | | Gets the MIDlet instance. This is non-null only between calls
to invoke() and cleanup().
|
invoke | public static boolean invoke() throws Throwable(Code) | | Starts the test MIDlet and waits for it to be created, activated, and
for its Display to be put into the foreground and painted. Returns true
if this all worked; returns false if the operation timed out. Passes on
any exceptions that occurred in starting up the MIDlet.
|
pauseApp | public void pauseApp()(Code) | | Should be called only by the MIDlet runtime.
|
|
|
|