Class AbstractTest
- All Implemented Interfaces:
UnitTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertArrayEqual(byte[] expected, byte[] actual) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(byte[] expected, byte[] actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(double[] expected, double[] actual, double maxRelativeError) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(double[] expected, double[] actual, double maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(float[] expected, float[] actual, double maxRelativeError) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(float[] expected, float[] actual, double maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(int[] expected, int[] actual) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(int[] expected, int[] actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(long[] expected, long[] actual, long maxRelativeError) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(long[] expected, long[] actual, long maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(short[] expected, short[] actual) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(short[] expected, short[] actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(Object[] expected, Object[] actual) This method just invokes the test utils method, it is here for conveniencevoidassertArrayEqual(Object[] expected, Object[] actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertBool(boolean b) This method just invokes the test utils method, it is here for conveniencevoidassertBool(boolean b, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(byte expected, byte actual) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(byte expected, byte actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(double expected, double actual, double maxRelativeError) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(double expected, double actual, double maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(float expected, float actual, double maxRelativeError) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(float expected, float actual, double maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(int expected, int actual) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(int expected, int actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(long expected, long actual) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(long expected, long actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(short expected, short actual) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(short expected, short actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(Object expected, Object actual) This method just invokes the test utils method, it is here for conveniencevoidassertEqual(Object expected, Object actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertException(RuntimeException exception, Runnable expression) This method just invokes the test utils method, it is here for conveniencevoidassertException(RuntimeException exception, Runnable expression, String message) This method just invokes the test utils method, it is here for conveniencevoidassertFalse(boolean value) This method just invokes the test utils method, it is here for conveniencevoidassertFalse(boolean value, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertLabel(int[] path, String text) This method just invokes the test utils method, it is here for conveniencevoidassertLabel(String text) This method just invokes the test utils method, it is here for conveniencevoidassertLabel(String name, String text) This method just invokes the test utils method, it is here for conveniencevoidassertNoException(Runnable expression) This method just invokes the test utils method, it is here for conveniencevoidassertNoException(Runnable expression, String message) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(byte expected, byte actual) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(byte expected, byte actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(double expected, double actual, double minRelativeError) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(double expected, double actual, double minRelativeError, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(float expected, float actual, double minRelativeError) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(float expected, float actual, double minRelativeError, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(int expected, int actual) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(int expected, int actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(long expected, long actual) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(long expected, long actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(short expected, short actual) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(short expected, short actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(Object expected, Object actual) This method just invokes the test utils method, it is here for conveniencevoidassertNotEqual(Object expected, Object actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotNull(Object object) This method just invokes the test utils method, it is here for conveniencevoidassertNotNull(Object object, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNotSame(Object expected, Object actual) This method just invokes the test utils method, it is here for conveniencevoidassertNotSame(Object expected, Object actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertNull(Object object) This method just invokes the test utils method, it is here for conveniencevoidassertNull(Object object, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertRange(double expected, double actual, double maxAbsoluteError) Since
voidassertRange(double expected, double actual, double maxAbsoluteError, String errorMessage) Since
voidassertSame(Object expected, Object actual) This method just invokes the test utils method, it is here for conveniencevoidassertSame(Object expected, Object actual, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidassertTextArea(int[] path, String text) This method just invokes the test utils method, it is here for conveniencevoidassertTextArea(String text) This method just invokes the test utils method, it is here for conveniencevoidassertTextArea(String name, String text) This method just invokes the test utils method, it is here for conveniencevoidassertTitle(String title) This method just invokes the test utils method, it is here for conveniencevoidassertTrue(boolean value) This method just invokes the test utils method, it is here for conveniencevoidassertTrue(boolean value, String errorMessage) This method just invokes the test utils method, it is here for conveniencevoidcleanup()Cleanup after a test case executedvoidclickButtonByLabel(String text) This method just invokes the test utils method, it is here for conveniencevoidclickButtonByName(String name) This method just invokes the test utils method, it is here for conveniencevoidclickButtonByPath(int[] path) This method just invokes the test utils method, it is here for conveniencevoidclickMenuItem(String name) This method just invokes the test utils method, it is here for conveniencevoidensureVisible(int[] c) This method just invokes the test utils method, it is here for conveniencevoidThis method just invokes the test utils method, it is here for conveniencevoidThis method just invokes the test utils method, it is here for conveniencevoidexecuteToolbarCommandAtOffset(int offset) Executes a command from the offset returned by#getToolbarCommands()voidfail()This method just invokes the test utils method, it is here for conveniencevoidThis method just invokes the test utils method, it is here for conveniencefindByName(String componentName) This method just invokes the test utils method, it is here for conveniencefindLabelText(String text) This method just invokes the test utils method, it is here for conveniencefindTextAreaText(String text) This method just invokes the test utils method, it is here for conveniencevoidgameKeyPress(int gameKey) This method just invokes the test utils method, it is here for conveniencevoidgameKeyRelease(int gameKey) This method just invokes the test utils method, it is here for conveniencegetComponentByPath(int[] path) This method just invokes the test utils method, it is here for convenienceintDefaults to two minutes.Command[]Returns all the command objects from the toolbar in the order of left, right, overflow & sidemenuvoidgoBack()This method just invokes the test utils method, it is here for conveniencevoidkeyPress(int keyCode) This method just invokes the test utils method, it is here for conveniencevoidkeyRelease(int keyCode) This method just invokes the test utils method, it is here for conveniencevoidThis method just invokes the test utils method, it is here for conveniencevoidThis method just invokes the test utils method, it is here for conveniencevoidpointerDrag(float x, float y, int[] path) This method just invokes the test utils method, it is here for conveniencevoidpointerDrag(float x, float y, String componentName) This method just invokes the test utils method, it is here for conveniencevoidpointerPress(float x, float y, int[] path) This method just invokes the test utils method, it is here for conveniencevoidpointerPress(float x, float y, String componentName) This method just invokes the test utils method, it is here for conveniencevoidpointerRelease(float x, float y, int[] path) This method just invokes the test utils method, it is here for conveniencevoidpointerRelease(float x, float y, String componentName) This method just invokes the test utils method, it is here for conveniencevoidprepare()Prepares the unit test for executionbooleanscreenshotTest(String screenshotName) This method just invokes the test utils method, it is here for conveniencevoidselectInList(int[] path, int offset) This method just invokes the test utils method, it is here for conveniencevoidselectInList(String listName, int offset) This method just invokes the test utils method, it is here for conveniencevoidThis method just invokes the test utils method, it is here for conveniencevoidThis method just invokes the test utils method, it is here for conveniencevoidsetVerboseMode(boolean v) This method just invokes the test utils method, it is here for conveniencebooleanReturns false, default tests run in their own thread.voidShows the sidemenu UIvoidwaitFor(int millis) This method just invokes the test utils method, it is here for conveniencevoidwaitForFormName(String name) This method just invokes the test utils method, it is here for conveniencevoidwaitForFormTitle(String title) This method just invokes the test utils method, it is here for conveniencevoidWaits for a form change and if no form change occurred after a given timeout then fail the test
-
Constructor Details
-
AbstractTest
public AbstractTest()
-
-
Method Details
-
prepare
-
cleanup
-
getTimeoutMillis
public int getTimeoutMillis()Defaults to two minutes.
Returns the time in milliseconds after which the test should be automatically failed.
Returns
time in milliseconds
- Specified by:
getTimeoutMillisin interfaceUnitTest
-
shouldExecuteOnEDT
public boolean shouldExecuteOnEDT()Returns false, default tests run in their own thread.
Returns true to indicate that the test expects to be executed on the EDT
Returns
whether the test should execute on the EDT or the testing thread
- Specified by:
shouldExecuteOnEDTin interfaceUnitTest
-
assertBool
public void assertBool(boolean b) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertBool
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
fail
public void fail()This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
fail
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertTrue
public void assertTrue(boolean value) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertTrue
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertFalse
public void assertFalse(boolean value) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertFalse
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNull
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNull
-
assertNotNull
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotNull
-
assertSame
-
assertSame
-
assertNotSame
-
assertNotSame
-
assertEqual
public void assertEqual(byte expected, byte actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
public void assertEqual(short expected, short actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
public void assertEqual(int expected, int actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
public void assertEqual(long expected, long actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
public void assertEqual(float expected, float actual, double maxRelativeError) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
public void assertEqual(double expected, double actual, double maxRelativeError) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertRange
public void assertRange(double expected, double actual, double maxAbsoluteError) Since
8.0
See also
- TestUtils#assertRange(double, double, double)
-
assertRange
public void assertRange(double expected, double actual, double maxAbsoluteError, String errorMessage) Since
8.0
See also
- TestUtils#assertRange(double, double, double, String)
-
assertEqual
public void assertEqual(double expected, double actual, double maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertEqual
-
assertEqual
-
assertNotEqual
public void assertNotEqual(byte expected, byte actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
public void assertNotEqual(short expected, short actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
public void assertNotEqual(int expected, int actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
public void assertNotEqual(long expected, long actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
public void assertNotEqual(float expected, float actual, double minRelativeError) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
public void assertNotEqual(float expected, float actual, double minRelativeError, String errorMessage) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
public void assertNotEqual(double expected, double actual, double minRelativeError) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
public void assertNotEqual(double expected, double actual, double minRelativeError, String errorMessage) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNotEqual
-
assertNotEqual
-
assertArrayEqual
public void assertArrayEqual(byte[] expected, byte[] actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(short[] expected, short[] actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(int[] expected, int[] actual) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(long[] expected, long[] actual, long maxRelativeError) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(long[] expected, long[] actual, long maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(float[] expected, float[] actual, double maxRelativeError) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(float[] expected, float[] actual, double maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(double[] expected, double[] actual, double maxRelativeError) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
public void assertArrayEqual(double[] expected, double[] actual, double maxRelativeError, String errorMessage) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertArrayEqual
-
assertArrayEqual
-
assertException
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertException
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNoException
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertNoException
-
waitFor
public void waitFor(int millis) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
findByName
-
findLabelText
-
clickButtonByLabel
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
clickButtonByName
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
clickButtonByPath
public void clickButtonByPath(int[] path) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
goBack
public void goBack()This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
clickMenuItem
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
ensureVisible
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
ensureVisible
public void ensureVisible(int[] c) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
ensureVisible
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
waitForFormTitle
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
waitForUnnamedForm
public void waitForUnnamedForm()Waits for a form change and if no form change occurred after a given timeout then fail the test -
waitForFormName
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
log
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
log
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
screenshotTest
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
keyPress
public void keyPress(int keyCode) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
keyRelease
public void keyRelease(int keyCode) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
gameKeyPress
public void gameKeyPress(int gameKey) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
gameKeyRelease
public void gameKeyRelease(int gameKey) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
pointerPress
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
pointerRelease
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
pointerDrag
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
pointerPress
public void pointerPress(float x, float y, int[] path) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
pointerRelease
public void pointerRelease(float x, float y, int[] path) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
pointerDrag
public void pointerDrag(float x, float y, int[] path) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
getComponentByPath
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
setText
-
setText
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertTitle
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertLabel
-
assertLabel
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertLabel
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertTextArea
-
assertTextArea
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
assertTextArea
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
findTextAreaText
-
setVerboseMode
public void setVerboseMode(boolean v) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
selectInList
This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
selectInList
public void selectInList(int[] path, int offset) This method just invokes the test utils method, it is here for convenience
See also
- TestUtils
-
getToolbarCommands
Returns all the command objects from the toolbar in the order of left, right, overflow & sidemenu
Returns
the set of commands
-
executeToolbarCommandAtOffset
public void executeToolbarCommandAtOffset(int offset) Executes a command from the offset returned by
#getToolbarCommands()Parameters
offset: the offset of the command we want to execute
-