|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.midlet.MIDlet
mome.MoMIDlet
mome.MoXMIDlet
momeunit.runner.AntTestRunner
public class AntTestRunner
Test runner that generates test events to be processed by formatters of
MoMEUnit Ant Integration package. It creates test events of tests run, sends
them to recipient via System.err
output stream and exits.
Note: It is built upon MoMELib library. This is a J2ME library that offers possibilities to execute commands in separate from AMS (Application Management Software) callback thread, issue commands programmatically, associate key (game action) or sequence of keys and/or game actions with command, use any complimentary argument with command and much more. If you are interested, visit MoMELib Home Page
Field Summary | |
---|---|
static String |
DEFAULT_SUITE_NAME
Global test suite default name. |
static String |
HALTONERROR_PROPERTY
HaltOnError property name. |
static String |
HALTONFAILURE_PROPERTY
HaltOnFailure property name. |
static String |
HEREDOCUMENT_TESTEVENT_INDICATOR
Test event here-document indicator. |
static String |
ITEM_SEPARATOR
Item separator string. |
static String |
TEST_PROPERTY_PREFIX
Test suite description property prefix. |
static String |
TESTS_PROPERTY
Global test suite description property name. |
static String |
TESTSNAME_PROPERTY
Global test suite name property name. |
static String |
TIMEOUT_PROPERTY
Timeout property name. |
Fields inherited from class mome.MoXMIDlet |
---|
ITEM_STATE_CHANGED |
Constructor Summary | |
---|---|
AntTestRunner()
|
Method Summary | |
---|---|
void |
addError(Test test,
Throwable t)
Sends error test event. |
void |
addFailure(Test test,
AssertionFailedError t)
Sends failure test event. |
void |
endTest(Test test)
Sends end test event. |
protected void |
initApp()
Generates global test suite. |
protected void |
setTimeOut()
|
protected void |
startApp()
Starts tests run, creates and sends test events and then exits. |
void |
startTest(Test test)
Sends start test event. |
void |
xCommandAction(Object cmd,
Object src)
Indicates that a command event has occurred. |
Methods inherited from class mome.MoXMIDlet |
---|
commandAction, commandAction, destroyApp, getExecutor, itemStateChanged, pauseApp, pushCommand, setCommandEventsHeapSize, startExecutor, stopExecutor |
Methods inherited from class mome.MoMIDlet |
---|
exit, getDisplay, isInitialized |
Methods inherited from class javax.microedition.midlet.MIDlet |
---|
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ITEM_SEPARATOR
public static final String TEST_PROPERTY_PREFIX
public static final String TESTS_PROPERTY
public static final String TESTSNAME_PROPERTY
public static final String DEFAULT_SUITE_NAME
public static final String TIMEOUT_PROPERTY
public static final String HALTONERROR_PROPERTY
public static final String HALTONFAILURE_PROPERTY
public static final String HEREDOCUMENT_TESTEVENT_INDICATOR
Constructor Detail |
---|
public AntTestRunner()
Method Detail |
---|
protected void initApp() throws MIDletStateChangeException
initApp
in class MoXMIDlet
MIDletStateChangeException
- is thrown if the MIDlet cannot start now but might be able to
start at a later time.MoXMIDlet.initApp()
protected void setTimeOut()
protected void startApp() throws MIDletStateChangeException
startApp
in class MoXMIDlet
MIDletStateChangeException
MoXMIDlet.startApp()
public void xCommandAction(Object cmd, Object src)
MoXMIDlet
xCommandAction
in interface XCommandListener
xCommandAction
in class MoXMIDlet
cmd
- An object identifying the command. This can be any object.
Implementation should test on specific command by identity not
equality.src
- An object on which this event has occurred. Either Displayable or
Item or can be used as parameter for any user command.XCommandListener.xCommandAction(java.lang.Object,
java.lang.Object)
public void addError(Test test, Throwable t)
addError
in interface TestListener
test
- test that threw the error.t
- exception thrown by test.TestListener.addError(momeunit.framework.Test,
java.lang.Throwable)
public void addFailure(Test test, AssertionFailedError t)
addFailure
in interface TestListener
test
- the failed test.t
- exception thrown by test.TestListener.addFailure(momeunit.framework.Test,
momeunit.framework.AssertionFailedError)
public void endTest(Test test)
endTest
in interface TestListener
test
- test that ends.TestListener.endTest(momeunit.framework.Test)
public void startTest(Test test)
startTest
in interface TestListener
test
- test that starts.TestListener.startTest(momeunit.framework.Test)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |