| Constructor and Description |
|---|
AbstractTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertArrayEqual(byte[] expected,
byte[] actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(byte[] expected,
byte[] actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(double[] expected,
double[] actual,
double maxRelativeError)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(double[] expected,
double[] actual,
double maxRelativeError,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(float[] expected,
float[] actual,
double maxRelativeError)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(float[] expected,
float[] actual,
double maxRelativeError,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(int[] expected,
int[] actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(int[] expected,
int[] actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(long[] expected,
long[] actual,
long maxRelativeError)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(long[] expected,
long[] actual,
long maxRelativeError,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(Object[] expected,
Object[] actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(Object[] expected,
Object[] actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(short[] expected,
short[] actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertArrayEqual(short[] expected,
short[] actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
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 |
assertEqual(byte expected,
byte actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(byte expected,
byte actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(double expected,
double actual,
double maxRelativeError)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(double expected,
double actual,
double maxRelativeError,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(float expected,
float actual,
double maxRelativeError)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(float expected,
float actual,
double maxRelativeError,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(int expected,
int actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(int expected,
int actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(long expected,
long actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(long expected,
long actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(Object expected,
Object actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(Object expected,
Object actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(short expected,
short actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertEqual(short expected,
short actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertException(RuntimeException exception,
Runnable expression)
This method just invokes the test utils method, it is here for convenience
|
void |
assertException(RuntimeException exception,
Runnable expression,
String message)
This method just invokes the test utils method, it is here for convenience
|
void |
assertFalse(boolean value)
This method just invokes the test utils method, it is here for convenience
|
void |
assertFalse(boolean value,
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 |
assertNoException(Runnable expression)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNoException(Runnable expression,
String message)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(byte expected,
byte actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(byte expected,
byte actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(double expected,
double actual,
double minRelativeError)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(double expected,
double actual,
double minRelativeError,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(float expected,
float actual,
double minRelativeError)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(float expected,
float actual,
double minRelativeError,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(int expected,
int actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(int expected,
int actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(long expected,
long actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(long expected,
long actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(Object expected,
Object actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(Object expected,
Object actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(short expected,
short actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotEqual(short expected,
short actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotNull(Object object)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotNull(Object object,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotSame(Object expected,
Object actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNotSame(Object expected,
Object actual,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNull(Object object)
This method just invokes the test utils method, it is here for convenience
|
void |
assertNull(Object object,
String errorMessage)
This method just invokes the test utils method, it is here for convenience
|
void |
assertRange(double expected,
double actual,
double maxAbsoluteError) |
void |
assertRange(double expected,
double actual,
double maxAbsoluteError,
String errorMessage) |
void |
assertSame(Object expected,
Object actual)
This method just invokes the test utils method, it is here for convenience
|
void |
assertSame(Object expected,
Object actual,
String errorMessage)
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 |
assertTrue(boolean value)
This method just invokes the test utils method, it is here for convenience
|
void |
assertTrue(boolean value,
String errorMessage)
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
|
void |
executeToolbarCommandAtOffset(int offset)
Executes a command from the offset returned by
getToolbarCommands() |
void |
fail()
This method just invokes the test utils method, it is here for convenience
|
void |
fail(String errorMessage)
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.
Returns the time in milliseconds after which the test should be automatically failed. |
Command[] |
getToolbarCommands()
Returns all the command objects from the toolbar in the order of left, right, overflow & sidemenu
|
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 |
showSidemenu()
Shows the sidemenu UI
|
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
|
void |
waitForUnnamedForm()
Waits for a form change and if no form change occurred after a given timeout then fail the test
|
public void prepare()
public void cleanup()
public int getTimeoutMillis()
getTimeoutMillis in interface UnitTestpublic boolean shouldExecuteOnEDT()
shouldExecuteOnEDT in interface UnitTestpublic void assertBool(boolean b)
TestUtilspublic void assertBool(boolean b,
String errorMessage)
TestUtilspublic void fail()
TestUtilspublic void fail(String errorMessage)
TestUtilspublic void assertTrue(boolean value)
TestUtilspublic void assertTrue(boolean value,
String errorMessage)
TestUtilspublic void assertFalse(boolean value)
TestUtilspublic void assertFalse(boolean value,
String errorMessage)
TestUtilspublic void assertNull(Object object)
TestUtilspublic void assertNull(Object object, String errorMessage)
TestUtilspublic void assertNotNull(Object object)
TestUtilspublic void assertNotNull(Object object, String errorMessage)
TestUtilspublic void assertSame(Object expected, Object actual)
TestUtilspublic void assertSame(Object expected, Object actual, String errorMessage)
TestUtilspublic void assertNotSame(Object expected, Object actual)
TestUtilspublic void assertNotSame(Object expected, Object actual, String errorMessage)
TestUtilspublic void assertEqual(byte expected,
byte actual)
TestUtilspublic void assertEqual(byte expected,
byte actual,
String errorMessage)
TestUtilspublic void assertEqual(short expected,
short actual)
TestUtilspublic void assertEqual(short expected,
short actual,
String errorMessage)
TestUtilspublic void assertEqual(int expected,
int actual)
TestUtilspublic void assertEqual(int expected,
int actual,
String errorMessage)
TestUtilspublic void assertEqual(long expected,
long actual)
TestUtilspublic void assertEqual(long expected,
long actual,
String errorMessage)
TestUtilspublic void assertEqual(float expected,
float actual,
double maxRelativeError)
TestUtilspublic void assertEqual(float expected,
float actual,
double maxRelativeError,
String errorMessage)
TestUtilspublic void assertEqual(double expected,
double actual,
double maxRelativeError)
TestUtilspublic void assertRange(double expected,
double actual,
double maxAbsoluteError)
TestUtils.assertRange(double, double, double)public void assertRange(double expected,
double actual,
double maxAbsoluteError,
String errorMessage)
TestUtils.assertRange(double, double, double, String)public void assertEqual(double expected,
double actual,
double maxRelativeError,
String errorMessage)
TestUtilspublic void assertEqual(Object expected, Object actual)
TestUtilspublic void assertEqual(Object expected, Object actual, String errorMessage)
TestUtilspublic void assertNotEqual(byte expected,
byte actual)
TestUtilspublic void assertNotEqual(byte expected,
byte actual,
String errorMessage)
TestUtilspublic void assertNotEqual(short expected,
short actual)
TestUtilspublic void assertNotEqual(short expected,
short actual,
String errorMessage)
TestUtilspublic void assertNotEqual(int expected,
int actual)
TestUtilspublic void assertNotEqual(int expected,
int actual,
String errorMessage)
TestUtilspublic void assertNotEqual(long expected,
long actual)
TestUtilspublic void assertNotEqual(long expected,
long actual,
String errorMessage)
TestUtilspublic void assertNotEqual(float expected,
float actual,
double minRelativeError)
TestUtilspublic void assertNotEqual(float expected,
float actual,
double minRelativeError,
String errorMessage)
TestUtilspublic void assertNotEqual(double expected,
double actual,
double minRelativeError)
TestUtilspublic void assertNotEqual(double expected,
double actual,
double minRelativeError,
String errorMessage)
TestUtilspublic void assertNotEqual(Object expected, Object actual)
TestUtilspublic void assertNotEqual(Object expected, Object actual, String errorMessage)
TestUtilspublic void assertArrayEqual(byte[] expected,
byte[] actual)
TestUtilspublic void assertArrayEqual(byte[] expected,
byte[] actual,
String errorMessage)
TestUtilspublic void assertArrayEqual(short[] expected,
short[] actual)
TestUtilspublic void assertArrayEqual(short[] expected,
short[] actual,
String errorMessage)
TestUtilspublic void assertArrayEqual(int[] expected,
int[] actual)
TestUtilspublic void assertArrayEqual(int[] expected,
int[] actual,
String errorMessage)
TestUtilspublic void assertArrayEqual(long[] expected,
long[] actual,
long maxRelativeError)
TestUtilspublic void assertArrayEqual(long[] expected,
long[] actual,
long maxRelativeError,
String errorMessage)
TestUtilspublic void assertArrayEqual(float[] expected,
float[] actual,
double maxRelativeError)
TestUtilspublic void assertArrayEqual(float[] expected,
float[] actual,
double maxRelativeError,
String errorMessage)
TestUtilspublic void assertArrayEqual(double[] expected,
double[] actual,
double maxRelativeError)
TestUtilspublic void assertArrayEqual(double[] expected,
double[] actual,
double maxRelativeError,
String errorMessage)
TestUtilspublic void assertArrayEqual(Object[] expected, Object[] actual)
TestUtilspublic void assertArrayEqual(Object[] expected, Object[] actual, String errorMessage)
TestUtilspublic void assertException(RuntimeException exception, Runnable expression)
TestUtilspublic void assertException(RuntimeException exception, Runnable expression, String message)
TestUtilspublic void assertNoException(Runnable expression)
TestUtilspublic void assertNoException(Runnable expression, String message)
TestUtilspublic void waitFor(int millis)
TestUtilspublic Component findByName(String componentName)
TestUtilspublic Label findLabelText(String text)
TestUtilspublic void clickButtonByLabel(String text)
TestUtilspublic void clickButtonByName(String name)
TestUtilspublic void clickButtonByPath(int[] path)
TestUtilspublic void goBack()
TestUtilspublic void clickMenuItem(String name)
TestUtilspublic void ensureVisible(Component c)
TestUtilspublic void ensureVisible(int[] c)
TestUtilspublic void ensureVisible(String c)
TestUtilspublic void waitForFormTitle(String title)
TestUtilspublic void waitForUnnamedForm()
public void waitForFormName(String name)
TestUtilspublic void log(String t)
TestUtilspublic void log(Throwable t)
TestUtilspublic boolean screenshotTest(String screenshotName)
TestUtilspublic void keyPress(int keyCode)
TestUtilspublic void keyRelease(int keyCode)
TestUtilspublic void gameKeyPress(int gameKey)
TestUtilspublic void gameKeyRelease(int gameKey)
TestUtilspublic void pointerPress(float x,
float y,
String componentName)
TestUtilspublic void pointerRelease(float x,
float y,
String componentName)
TestUtilspublic void pointerDrag(float x,
float y,
String componentName)
TestUtilspublic void pointerPress(float x,
float y,
int[] path)
TestUtilspublic void pointerRelease(float x,
float y,
int[] path)
TestUtilspublic void pointerDrag(float x,
float y,
int[] path)
TestUtilspublic Component getComponentByPath(int[] path)
TestUtilspublic void setText(String name, String text)
TestUtilspublic void setText(int[] path,
String text)
TestUtilspublic void assertTitle(String title)
TestUtilspublic void assertLabel(String name, String text)
TestUtilspublic void assertLabel(String text)
TestUtilspublic void assertLabel(int[] path,
String text)
TestUtilspublic void assertTextArea(String name, String text)
TestUtilspublic void assertTextArea(int[] path,
String text)
TestUtilspublic void assertTextArea(String text)
TestUtilspublic TextArea findTextAreaText(String text)
TestUtilspublic void setVerboseMode(boolean v)
TestUtilspublic void selectInList(String listName, int offset)
TestUtilspublic void selectInList(int[] path,
int offset)
TestUtilspublic Command[] getToolbarCommands()
public void executeToolbarCommandAtOffset(int offset)
getToolbarCommands()offset - the offset of the command we want to executepublic void showSidemenu()