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 UnitTest
public boolean shouldExecuteOnEDT()
shouldExecuteOnEDT
in interface UnitTest
public void assertBool(boolean b)
TestUtils
public void assertBool(boolean b, String errorMessage)
TestUtils
public void fail()
TestUtils
public void fail(String errorMessage)
TestUtils
public void assertTrue(boolean value)
TestUtils
public void assertTrue(boolean value, String errorMessage)
TestUtils
public void assertFalse(boolean value)
TestUtils
public void assertFalse(boolean value, String errorMessage)
TestUtils
public void assertNull(Object object)
TestUtils
public void assertNull(Object object, String errorMessage)
TestUtils
public void assertNotNull(Object object)
TestUtils
public void assertNotNull(Object object, String errorMessage)
TestUtils
public void assertSame(Object expected, Object actual)
TestUtils
public void assertSame(Object expected, Object actual, String errorMessage)
TestUtils
public void assertNotSame(Object expected, Object actual)
TestUtils
public void assertNotSame(Object expected, Object actual, String errorMessage)
TestUtils
public void assertEqual(byte expected, byte actual)
TestUtils
public void assertEqual(byte expected, byte actual, String errorMessage)
TestUtils
public void assertEqual(short expected, short actual)
TestUtils
public void assertEqual(short expected, short actual, String errorMessage)
TestUtils
public void assertEqual(int expected, int actual)
TestUtils
public void assertEqual(int expected, int actual, String errorMessage)
TestUtils
public void assertEqual(long expected, long actual)
TestUtils
public void assertEqual(long expected, long actual, String errorMessage)
TestUtils
public void assertEqual(float expected, float actual, double maxRelativeError)
TestUtils
public void assertEqual(float expected, float actual, double maxRelativeError, String errorMessage)
TestUtils
public void assertEqual(double expected, double actual, double maxRelativeError)
TestUtils
public 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)
TestUtils
public void assertEqual(Object expected, Object actual)
TestUtils
public void assertEqual(Object expected, Object actual, String errorMessage)
TestUtils
public void assertNotEqual(byte expected, byte actual)
TestUtils
public void assertNotEqual(byte expected, byte actual, String errorMessage)
TestUtils
public void assertNotEqual(short expected, short actual)
TestUtils
public void assertNotEqual(short expected, short actual, String errorMessage)
TestUtils
public void assertNotEqual(int expected, int actual)
TestUtils
public void assertNotEqual(int expected, int actual, String errorMessage)
TestUtils
public void assertNotEqual(long expected, long actual)
TestUtils
public void assertNotEqual(long expected, long actual, String errorMessage)
TestUtils
public void assertNotEqual(float expected, float actual, double minRelativeError)
TestUtils
public void assertNotEqual(float expected, float actual, double minRelativeError, String errorMessage)
TestUtils
public void assertNotEqual(double expected, double actual, double minRelativeError)
TestUtils
public void assertNotEqual(double expected, double actual, double minRelativeError, String errorMessage)
TestUtils
public void assertNotEqual(Object expected, Object actual)
TestUtils
public void assertNotEqual(Object expected, Object actual, String errorMessage)
TestUtils
public void assertArrayEqual(byte[] expected, byte[] actual)
TestUtils
public void assertArrayEqual(byte[] expected, byte[] actual, String errorMessage)
TestUtils
public void assertArrayEqual(short[] expected, short[] actual)
TestUtils
public void assertArrayEqual(short[] expected, short[] actual, String errorMessage)
TestUtils
public void assertArrayEqual(int[] expected, int[] actual)
TestUtils
public void assertArrayEqual(int[] expected, int[] actual, String errorMessage)
TestUtils
public void assertArrayEqual(long[] expected, long[] actual, long maxRelativeError)
TestUtils
public void assertArrayEqual(long[] expected, long[] actual, long maxRelativeError, String errorMessage)
TestUtils
public void assertArrayEqual(float[] expected, float[] actual, double maxRelativeError)
TestUtils
public void assertArrayEqual(float[] expected, float[] actual, double maxRelativeError, String errorMessage)
TestUtils
public void assertArrayEqual(double[] expected, double[] actual, double maxRelativeError)
TestUtils
public void assertArrayEqual(double[] expected, double[] actual, double maxRelativeError, String errorMessage)
TestUtils
public void assertArrayEqual(Object[] expected, Object[] actual)
TestUtils
public void assertArrayEqual(Object[] expected, Object[] actual, String errorMessage)
TestUtils
public void assertException(RuntimeException exception, Runnable expression)
TestUtils
public void assertException(RuntimeException exception, Runnable expression, String message)
TestUtils
public void assertNoException(Runnable expression)
TestUtils
public void assertNoException(Runnable expression, String message)
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 waitForUnnamedForm()
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
public Command[] getToolbarCommands()
public void executeToolbarCommandAtOffset(int offset)
getToolbarCommands()
offset
- the offset of the command we want to executepublic void showSidemenu()