Constructor and Description |
---|
AbstractTest() |
Modifier and Type | Method and Description |
---|---|
void |
assertBool(boolean b)
This method just invokes the test utils method, it is here for convenience
|
void |
assertBool(boolean b,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertLabel(int[] path,
String text)
This method just invokes the test utils method, it is here for convenience
|
void |
assertLabel(String text)
This method just invokes the test utils method, it is here for convenience
|
void |
assertLabel(String name,
String text)
This method just invokes the test utils method, it is here for convenience
|
void |
assertTextArea(int[] path,
String text)
This method just invokes the test utils method, it is here for convenience
|
void |
assertTextArea(String text)
This method just invokes the test utils method, it is here for convenience
|
void |
assertTextArea(String name,
String text)
This method just invokes the test utils method, it is here for convenience
|
void |
assertTitle(String title)
This method just invokes the test utils method, it is here for convenience
|
void |
cleanup()
Cleanup after a test case executed
|
void |
clickButtonByLabel(String text)
This method just invokes the test utils method, it is here for convenience
|
void |
clickButtonByName(String name)
This method just invokes the test utils method, it is here for convenience
|
void |
clickButtonByPath(int[] path)
This method just invokes the test utils method, it is here for convenience
|
void |
clickMenuItem(String name)
This method just invokes the test utils method, it is here for convenience
|
void |
ensureVisible(Component c)
This method just invokes the test utils method, it is here for convenience
|
void |
ensureVisible(int[] c)
This method just invokes the test utils method, it is here for convenience
|
void |
ensureVisible(String c)
This method just invokes the test utils method, it is here for convenience
|
Component |
findByName(String componentName)
This method just invokes the test utils method, it is here for convenience
|
Label |
findLabelText(String text)
This method just invokes the test utils method, it is here for convenience
|
TextArea |
findTextAreaText(String text)
This method just invokes the test utils method, it is here for convenience
|
void |
gameKeyPress(int gameKey)
This method just invokes the test utils method, it is here for convenience
|
void |
gameKeyRelease(int gameKey)
This method just invokes the test utils method, it is here for convenience
|
Component |
getComponentByPath(int[] path)
This method just invokes the test utils method, it is here for convenience
|
int |
getTimeoutMillis()
Defaults to two minutes.
|
void |
goBack()
This method just invokes the test utils method, it is here for convenience
|
void |
keyPress(int keyCode)
This method just invokes the test utils method, it is here for convenience
|
void |
keyRelease(int keyCode)
This method just invokes the test utils method, it is here for convenience
|
void |
log(String t)
This method just invokes the test utils method, it is here for convenience
|
void |
log(Throwable t)
This method just invokes the test utils method, it is here for convenience
|
void |
pointerDrag(float x,
float y,
int[] path)
This method just invokes the test utils method, it is here for convenience
|
void |
pointerDrag(float x,
float y,
String componentName)
This method just invokes the test utils method, it is here for convenience
|
void |
pointerPress(float x,
float y,
int[] path)
This method just invokes the test utils method, it is here for convenience
|
void |
pointerPress(float x,
float y,
String componentName)
This method just invokes the test utils method, it is here for convenience
|
void |
pointerRelease(float x,
float y,
int[] path)
This method just invokes the test utils method, it is here for convenience
|
void |
pointerRelease(float x,
float y,
String componentName)
This method just invokes the test utils method, it is here for convenience
|
void |
prepare()
Prepares the unit test for execution
|
boolean |
screenshotTest(String screenshotName)
This method just invokes the test utils method, it is here for convenience
|
void |
selectInList(int[] path,
int offset)
This method just invokes the test utils method, it is here for convenience
|
void |
selectInList(String listName,
int offset)
This method just invokes the test utils method, it is here for convenience
|
void |
setText(int[] path,
String text)
This method just invokes the test utils method, it is here for convenience
|
void |
setText(String name,
String text)
This method just invokes the test utils method, it is here for convenience
|
void |
setVerboseMode(boolean v)
This method just invokes the test utils method, it is here for convenience
|
boolean |
shouldExecuteOnEDT()
Returns false, default tests run in their own thread.
|
void |
waitFor(int millis)
This method just invokes the test utils method, it is here for convenience
|
void |
waitForFormName(String name)
This method just invokes the test utils method, it is here for convenience
|
void |
waitForFormTitle(String title)
This method just invokes the test utils method, it is here for convenience
|
public void prepare()
UnitTest
public void cleanup()
UnitTest
public int getTimeoutMillis()
getTimeoutMillis
in interface UnitTest
public boolean shouldExecuteOnEDT()
shouldExecuteOnEDT
in interface UnitTest
public void assertBool(boolean b)
TestUtils
public void assertBool(boolean b, String errorMessage)
TestUtils
public void waitFor(int millis)
TestUtils
public Component findByName(String componentName)
TestUtils
public Label findLabelText(String text)
TestUtils
public void clickButtonByLabel(String text)
TestUtils
public void clickButtonByName(String name)
TestUtils
public void clickButtonByPath(int[] path)
TestUtils
public void goBack()
TestUtils
public void clickMenuItem(String name)
TestUtils
public void ensureVisible(Component c)
TestUtils
public void ensureVisible(int[] c)
TestUtils
public void ensureVisible(String c)
TestUtils
public void waitForFormTitle(String title)
TestUtils
public void waitForFormName(String name)
TestUtils
public void log(String t)
TestUtils
public void log(Throwable t)
TestUtils
public boolean screenshotTest(String screenshotName)
TestUtils
public void keyPress(int keyCode)
TestUtils
public void keyRelease(int keyCode)
TestUtils
public void gameKeyPress(int gameKey)
TestUtils
public void gameKeyRelease(int gameKey)
TestUtils
public void pointerPress(float x, float y, String componentName)
TestUtils
public void pointerRelease(float x, float y, String componentName)
TestUtils
public void pointerDrag(float x, float y, String componentName)
TestUtils
public void pointerPress(float x, float y, int[] path)
TestUtils
public void pointerRelease(float x, float y, int[] path)
TestUtils
public void pointerDrag(float x, float y, int[] path)
TestUtils
public Component getComponentByPath(int[] path)
TestUtils
public void setText(String name, String text)
TestUtils
public void setText(int[] path, String text)
TestUtils
public void assertTitle(String title)
TestUtils
public void assertLabel(String name, String text)
TestUtils
public void assertLabel(String text)
TestUtils
public void assertLabel(int[] path, String text)
TestUtils
public void assertTextArea(String name, String text)
TestUtils
public void assertTextArea(int[] path, String text)
TestUtils
public void assertTextArea(String text)
TestUtils
public TextArea findTextAreaText(String text)
TestUtils
public void setVerboseMode(boolean v)
TestUtils
public void selectInList(String listName, int offset)
TestUtils
public void selectInList(int[] path, int offset)
TestUtils