Class TestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertArrayEqual(byte[] expected, byte[] actual) Asserts that the given byte arrays are equalstatic voidassertArrayEqual(byte[] expected, byte[] actual, String errorMessage) Asserts that the given byte arrays are equalstatic voidassertArrayEqual(double[] expected, double[] actual, double maxRelativeError) Asserts that the given double arrays are equalstatic voidassertArrayEqual(double[] expected, double[] actual, double maxRelativeError, String errorMessage) Asserts that the given double arrays are equalstatic voidassertArrayEqual(float[] expected, float[] actual, double maxRelativeError) Asserts that the given float arrays are equalstatic voidassertArrayEqual(float[] expected, float[] actual, double maxRelativeError, String errorMessage) Asserts that the given double arrays are equalstatic voidassertArrayEqual(int[] expected, int[] actual) Asserts that the given int arrays are equalstatic voidassertArrayEqual(int[] expected, int[] actual, String errorMessage) Asserts that the given int arrays are equalstatic voidassertArrayEqual(long[] expected, long[] actual, double maxRelativeError) Asserts that the given long arrays are equalstatic voidassertArrayEqual(long[] expected, long[] actual, double maxRelativeError, String errorMessage) Asserts that the given long arrays are equalstatic voidassertArrayEqual(short[] expected, short[] actual) Asserts that the given short arrays are equalstatic voidassertArrayEqual(short[] expected, short[] actual, String errorMessage) Asserts that the given short arrays are equalstatic voidassertArrayEqual(Object[] expected, Object[] actual) Asserts that the given object arrays are equalstatic voidassertArrayEqual(Object[] expected, Object[] actual, String errorMessage) Asserts that the given object arrays are equalstatic voidassertBool(boolean b) Assertions allow for simpler test codestatic voidassertBool(boolean b, String errorMessage) Assertions allow for simpler test codestatic voidassertEqual(byte expected, byte actual) Asserts that the given bytes are equalstatic voidassertEqual(byte expected, byte actual, String errorMessage) Asserts that the given bytes are equalstatic voidassertEqual(double expected, double actual, double maxRelativeError) Asserts that the given doubles are equalstatic voidassertEqual(double expected, double actual, double maxRelativeError, String errorMessage) Asserts that the given doubles are equalstatic voidassertEqual(float expected, float actual, double maxRelativeError) Asserts that the given floats are equalstatic voidassertEqual(float expected, float actual, double maxRelativeError, String errorMessage) Asserts that the given floats are equalstatic voidassertEqual(int expected, int actual) Asserts that the given ints are equalstatic voidassertEqual(int expected, int actual, String errorMessage) Asserts that the given ints are equalstatic voidassertEqual(long expected, long actual) Asserts that the given longs are equalstatic voidassertEqual(long expected, long actual, String errorMessage) Asserts that the given longs are equalstatic voidassertEqual(short expected, short actual) Asserts that the given shorts are equalstatic voidassertEqual(short expected, short actual, String errorMessage) Asserts that the given shorts are equalstatic voidassertEqual(Object expected, Object actual) Asserts that the given objects are equal using the first object's .equal() methodstatic voidassertEqual(Object expected, Object actual, String errorMessage) Asserts that the given objects are equal using the first object's .equal() methodstatic voidassertException(RuntimeException exception, Runnable expression) Asserts that a certain exception is raisedstatic voidassertException(RuntimeException exception, Runnable expression, String errorMessage) Asserts that a certain exception is raisedstatic voidassertFalse(boolean value) Asserts that the given expression evaluates to falsestatic voidassertFalse(boolean value, String errorMessage) Asserts that the given expression evaluates to falsestatic voidassertLabel(int[] path, String text) Asserts that we have a label with the given text baring the given namestatic voidassertLabel(String text) Asserts that we have a label with the given text baring the given namestatic voidassertLabel(String name, String text) Asserts that we have a label with the given text baring the given namestatic voidassertNoException(Runnable expression) Asserts that no exception is raisedstatic voidassertNoException(Runnable expression, String errorMessage) Asserts that no exception is raisedstatic voidassertNotEqual(byte expected, byte actual) Asserts that the given bytes are not equalstatic voidassertNotEqual(byte expected, byte actual, String errorMessage) Asserts that the given bytes are not equalstatic voidassertNotEqual(double expected, double actual, double minRelativeError) Asserts that the given doubles are not equalstatic voidassertNotEqual(double expected, double actual, double minRelativeError, String errorMessage) Asserts that the given doubles are not equalstatic voidassertNotEqual(int expected, int actual) Asserts that the given ints are not equalstatic voidassertNotEqual(int expected, int actual, String errorMessage) Asserts that the given ints are not equalstatic voidassertNotEqual(long expected, long actual, double minRelativeError) Asserts that the given longs are not equalstatic voidassertNotEqual(long expected, long actual, double minRelativeError, String errorMessage) Asserts that the given longs are not equalstatic voidassertNotEqual(short expected, short actual) Asserts that the given shorts are not equalstatic voidassertNotEqual(short expected, short actual, String errorMessage) Asserts that the given shorts are not equalstatic voidassertNotEqual(Object expected, Object actual) Asserts that the given objects are not equal using the first object's .equal() methodstatic voidassertNotEqual(Object expected, Object actual, String errorMessage) Asserts that the given objects are not equal using the first object's .equal() methodstatic voidassertNotNull(Object object) Asserts that the given expression does not evaluate to nullstatic voidassertNotNull(Object object, String errorMessage) Asserts that the given expression does not evaluate to nullstatic voidassertNotSame(Object expected, Object actual) Asserts that the given parameters do not reference the same objectstatic voidassertNotSame(Object expected, Object actual, String errorMessage) Asserts that the given parameters do not reference the same objectstatic voidassertNull(Object object) Asserts that the given expression evaluates to nullstatic voidassertNull(Object object, String errorMessage) Asserts that the given expression evaluates to nullstatic voidassertRange(double expected, double actual, double absoluteError) Asserts that the given doubles are equalstatic voidassertRange(double expected, double actual, double maxAbsoluteError, String errorMessage) Asserts that the given doubles are equalstatic voidassertSame(Object expected, Object actual) Asserts that the given parameters reference the same objectstatic voidassertSame(Object expected, Object actual, String errorMessage) Asserts that the given parameters reference the same objectstatic voidassertTextArea(int[] path, String text) Asserts that we have a label with the given text baring the given namestatic voidassertTextArea(String text) Asserts that we have a label with the given text baring the given namestatic voidassertTextArea(String name, String text) Asserts that we have a TextArea with the given text and the given namestatic voidassertTextAreaContaining(String name, String text) Asserts that we have a TextArea with the a text contains the given text and with the given namestatic voidassertTextAreaEndingWith(String name, String text) Asserts that we have a TextArea with the a text ending with the given text and with the given namestatic voidassertTextAreaStartingWith(String name, String text) Asserts that we have a TextArea with the a text starting with the given text and with the given namestatic voidassertTitle(String title) Verifies the current title is the same otherwise throws an exceptionstatic voidassertTrue(boolean value) Asserts that the given expression evaluates to truestatic voidassertTrue(boolean value, String errorMessage) Asserts that the given expression evaluates to truestatic voidclickButtonByLabel(String text) Clicks the button with the given labelstatic voidclickButtonByName(String name) Clicks the button with the given labelstatic voidclickButtonByPath(int[] path) Clicks the button with the given component pathstatic voidclickMenuItem(String name) Executes a menu command with the given namestatic voidensureVisible(int[] path) Scrolls to show the component in case it is invisible currentlystatic voidScrolls to show the component in case it is invisible currentlystatic voidensureVisible(String componentName) Scrolls to show the component in case it is invisible currentlystatic voidexecuteToolbarCommandAtOffset(int offset) Executes a command from the offset returned by#getToolbarCommands()static voidfail()An assertion that always fails a test.static voidAn assertion that always fails a test.static ComponentfindByName(String componentName) Finds a component with the given name, works even with UI's that weren't created with the GUI builderstatic LabelfindLabelText(String text) Finds a component with the given name, works even with UI's that weren't created with the GUI builderstatic TextAreafindTextAreaText(String text) Finds a component with the given name, works even with UI's that weren't created with the GUI builderstatic voidgameKeyPress(int gameKey) Simulates a game key pressstatic voidgameKeyRelease(int gameKey) Simulates a game key releasestatic ComponentgetComponentByPath(int[] path) Gets the component from the current form based on its path.static Command[]Returns all the command objects from the toolbar in the order of left, right, overflow & sidemenustatic voidgoBack()Executes the back command for the current form, similarly to pressing the back buttonstatic voidkeyPress(int keyCode) Simulates a device key pressstatic voidkeyRelease(int keyCode) Simulates a device key releasestatic voidLog to the test logstatic voidLog to the test logstatic voidpointerDrag(float x, float y, int[] path) A component drag on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place.static voidpointerDrag(float x, float y, String componentName) A component drag on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place.static voidpointerPress(float x, float y, int[] path) A component press on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place.static voidpointerPress(float x, float y, String componentName) A component press on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place.static voidpointerRelease(float x, float y, int[] path) A component release on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place.static voidpointerRelease(float x, float y, String componentName) A component release on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place.static booleanscreenshotTest(String screenshotName) The screenshot test takes a screenshot of the screen and compares it to a prior screenshot, if both are 100% identical the test passes.static voidselectInList(int[] path, int offset) Selects the given offset in a liststatic voidselectInList(String listName, int offset) Selects the given offset in a liststatic voidSets the text for the given componentstatic voidSets the text for the given componentstatic voidsetVerboseMode(boolean v) Activates/deactivates the verbose test modestatic voidShows the sidemenu UIstatic voidwaitFor(int millis) Waits for the given number of milliseconds even if the waiting is on the EDT threadstatic voidwaitForFormName(String name) Waits for a form change and if no form change occurred after a given timeout then fail the test.static voidwaitForFormName(String name, long timeout) Waits for a form change and if no form change occurred after a given timeout then fail the teststatic voidwaitForFormTitle(String title) Waits for a form change and if no form change occurred after a given timeout then fail the test.static voidwaitForFormTitle(String title, long timeout) Waits for a form change and if no form change occurred after a given timeout then fail the teststatic voidWaits for a form change and if no form change occurred after a given timeout then fail the teststatic voidwaitForUnnamedForm(long timeout) Waits for a form change and if no form change occurred after a given timeout then fail the test
-
Method Details
-
setVerboseMode
public static void setVerboseMode(boolean v) Activates/deactivates the verbose test mode
Parameters
v: true for verbosity
-
waitFor
public static void waitFor(int millis) Waits for the given number of milliseconds even if the waiting is on the EDT thread
Parameters
millis: the number of milliseconds to wait
-
findByName
-
selectInList
Selects the given offset in a list
Parameters
-
listName: the name of the list component -
offset: the offset to select
-
-
selectInList
public static void selectInList(int[] path, int offset) Selects the given offset in a list
Parameters
offset: the offset to select
-
findLabelText
-
clickButtonByLabel
Clicks the button with the given label
Parameters
text: the text on the button
-
clickButtonByName
Clicks the button with the given label
Parameters
name: the name of the button
-
clickButtonByPath
public static void clickButtonByPath(int[] path) Clicks the button with the given component path
Parameters
path: the path
-
goBack
public static void goBack()Executes the back command for the current form, similarly to pressing the back button -
clickMenuItem
Executes a menu command with the given name
Parameters
name: the name of the command
-
getToolbarCommands
Returns all the command objects from the toolbar in the order of left, right, overflow & sidemenu
Returns
the set of commands
-
executeToolbarCommandAtOffset
public static void executeToolbarCommandAtOffset(int offset) Executes a command from the offset returned by
#getToolbarCommands()Parameters
offset: the offset of the command we want to execute
-
ensureVisible
Scrolls to show the component in case it is invisible currently
Parameters
c: the component
-
ensureVisible
Scrolls to show the component in case it is invisible currently
Parameters
componentName: the component
-
ensureVisible
public static void ensureVisible(int[] path) Scrolls to show the component in case it is invisible currently
Parameters
path: the path to the component
-
waitForFormTitle
Waits for a form change and if no form change occurred after a given timeout then fail the test
Parameters
-
title: the title of the form to wait for -
timeout: Timeout in ms.
-
-
waitForFormTitle
Waits for a form change and if no form change occurred after a given timeout then fail the test. Timeout is 90 seconds.
Parameters
title: the title of the form to wait for
-
waitForFormName
Waits for a form change and if no form change occurred after a given timeout then fail the test
Parameters
-
name: the name of the form to wait for -
timeout: Timeout in ms
-
-
waitForFormName
Waits for a form change and if no form change occurred after a given timeout then fail the test. Timeout is 90 seconds.
Parameters
name: the name of the form to wait for
-
waitForUnnamedForm
public static void waitForUnnamedForm(long timeout) Waits for a form change and if no form change occurred after a given timeout then fail the test
Parameters
timeout: Timeout in milliseconds.
-
waitForUnnamedForm
public static void waitForUnnamedForm()Waits for a form change and if no form change occurred after a given timeout then fail the test -
screenshotTest
The screenshot test takes a screenshot of the screen and compares it to a prior screenshot, if both are 100% identical the test passes. If not the test fails.
If this is the first time the test is run then the screenshot is taken and saved under the given name in the devices storage. The test passes for this case but a warning is printed to the console. The name will have .png appended to it so it will be identified.
This test will only work on devices that support the ImageIO API with PNG file format.
Parameters
screenshotName: the name to use for the storage, must be unique!
Returns
- Returns:
- true if the screenshots are identical or no prior screenshot exists or if the test can't be run on this device. False if a screenshot exists and it isn't 100% identical.
-
log
Log to the test log
Parameters
t: the string to log
-
log
Log to the test log
Parameters
t: exception to log
-
keyPress
public static void keyPress(int keyCode) Simulates a device key press
Parameters
keyCode: the keycode
-
keyRelease
public static void keyRelease(int keyCode) Simulates a device key release
Parameters
keyCode: the keycode
-
gameKeyPress
public static void gameKeyPress(int gameKey) Simulates a game key press
Parameters
gameKey: the game key (arrows etc.)
-
gameKeyRelease
public static void gameKeyRelease(int gameKey) Simulates a game key release
Parameters
gameKey: the game key (arrows etc.)
-
pointerPress
A component press on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place. E.g. For a 100x100 component a press within 10,5 would be 0.1f, 0.05f.
Parameters
-
x: the offset within the component as a number between 0 and 1 -
y: the offset within the component as a number between 0 and 1 -
componentName: the name of the component
-
-
pointerRelease
A component release on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place. E.g. For a 100x100 component a press within 10,5 would be 0.1f, 0.05f.
Parameters
-
x: the offset within the component as a number between 0 and 1 -
y: the offset within the component as a number between 0 and 1 -
componentName: the name of the component
-
-
pointerDrag
A component drag on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place. E.g. For a 100x100 component a press within 10,5 would be 0.1f, 0.05f.
Parameters
-
x: the offset within the component as a number between 0 and 1 -
y: the offset within the component as a number between 0 and 1 -
componentName: the name of the component
-
-
pointerPress
public static void pointerPress(float x, float y, int[] path) A component press on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place. E.g. For a 100x100 component a press within 10,5 would be 0.1f, 0.05f.
Parameters
-
x: the offset within the component as a number between 0 and 1 -
y: the offset within the component as a number between 0 and 1 -
path: the path to the component
-
-
pointerRelease
public static void pointerRelease(float x, float y, int[] path) A component release on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place. E.g. For a 100x100 component a press within 10,5 would be 0.1f, 0.05f.
Parameters
-
x: the offset within the component as a number between 0 and 1 -
y: the offset within the component as a number between 0 and 1 -
path: the path to the component
-
-
pointerDrag
public static void pointerDrag(float x, float y, int[] path) A component drag on a given named component at x/y where x and y are NOT pixels but rather a number between 0 to 1 representing the percentage within the component where the event took place. E.g. For a 100x100 component a press within 10,5 would be 0.1f, 0.05f.
Parameters
-
x: the offset within the component as a number between 0 and 1 -
y: the offset within the component as a number between 0 and 1 -
path: the path to the component
-
-
getComponentByPath
Gets the component from the current form based on its path. A path is a set of offsets starting from the content pane and moving inwards so a path of { 0, 3 } would mean that the first component within the Content pane (by index) is a Container whose 3rd component (again by index) is the component we want.
Parameters
path: an array
Returns
a component
-
setText
-
setText
Sets the text for the given component
Parameters
-
path: the path to the component -
text: the text to set
-
-
assertBool
public static void assertBool(boolean b) Assertions allow for simpler test code
Parameters
b: must be true, otherwise an exception is thrown thus failing the test
-
assertBool
Assertions allow for simpler test code
Parameters
b: must be true, otherwise an exception is thrown thus failing the test
-
fail
public static void fail()An assertion that always fails a test. -
fail
An assertion that always fails a test.
Parameters
errorMessage: is a string describing the failure
-
assertTrue
public static void assertTrue(boolean value) Asserts that the given expression evaluates to true -
assertTrue
Asserts that the given expression evaluates to true
Parameters
errorMessage: is a string describing the failure
-
assertFalse
public static void assertFalse(boolean value) Asserts that the given expression evaluates to false -
assertFalse
Asserts that the given expression evaluates to false
Parameters
errorMessage: is a string describing the failure
-
assertNull
Asserts that the given expression evaluates to null -
assertNull
-
assertNotNull
Asserts that the given expression does not evaluate to null -
assertNotNull
-
assertSame
-
assertSame
-
assertNotSame
-
assertNotSame
-
assertEqual
public static void assertEqual(byte expected, byte actual) Asserts that the given bytes are equal -
assertEqual
Asserts that the given bytes are equal
Parameters
errorMessage: is a string describing the failure
-
assertEqual
public static void assertEqual(short expected, short actual) Asserts that the given shorts are equal -
assertEqual
Asserts that the given shorts are equal
Parameters
errorMessage: is a string describing the failure
-
assertEqual
public static void assertEqual(int expected, int actual) Asserts that the given ints are equal -
assertEqual
Asserts that the given ints are equal
Parameters
errorMessage: is a string describing the failure
-
assertEqual
public static void assertEqual(long expected, long actual) Asserts that the given longs are equal -
assertEqual
Asserts that the given longs are equal
Parameters
errorMessage: is a string describing the failure
-
assertEqual
public static void assertEqual(float expected, float actual, double maxRelativeError) Asserts that the given floats are equal
Parameters
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error.
-
assertEqual
public static void assertEqual(float expected, float actual, double maxRelativeError, String errorMessage) Asserts that the given floats are equal
Parameters
-
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertEqual
public static void assertEqual(double expected, double actual, double maxRelativeError) Asserts that the given doubles are equal
Parameters
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error.
-
assertRange
public static void assertRange(double expected, double actual, double absoluteError) Asserts that the given doubles are equal
Parameters
-
expected: Expected value -
actual: Actual value -
absoluteError: is the maximum allowed error, a value of 1 represents a 1% error.
Since
8.0
-
-
assertEqual
public static void assertEqual(double expected, double actual, double maxRelativeError, String errorMessage) Asserts that the given doubles are equal
Parameters
-
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertRange
public static void assertRange(double expected, double actual, double maxAbsoluteError, String errorMessage) Asserts that the given doubles are equal
Parameters
-
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertEqual
-
assertEqual
-
assertNotEqual
public static void assertNotEqual(byte expected, byte actual) Asserts that the given bytes are not equal -
assertNotEqual
Asserts that the given bytes are not equal
Parameters
errorMessage: is a string describing the failure
-
assertNotEqual
public static void assertNotEqual(short expected, short actual) Asserts that the given shorts are not equal -
assertNotEqual
Asserts that the given shorts are not equal
Parameters
errorMessage: is a string describing the failure
-
assertNotEqual
public static void assertNotEqual(int expected, int actual) Asserts that the given ints are not equal -
assertNotEqual
Asserts that the given ints are not equal
Parameters
errorMessage: is a string describing the failure
-
assertNotEqual
public static void assertNotEqual(long expected, long actual, double minRelativeError) Asserts that the given longs are not equal -
assertNotEqual
public static void assertNotEqual(long expected, long actual, double minRelativeError, String errorMessage) Asserts that the given longs are not equal
Parameters
-
minRelativeError: is the minimum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertNotEqual
public static void assertNotEqual(double expected, double actual, double minRelativeError) Asserts that the given doubles are not equal
Parameters
minRelativeError: is the minimum allowed error, a value of 1 represents a 1% error.
-
assertNotEqual
public static void assertNotEqual(double expected, double actual, double minRelativeError, String errorMessage) Asserts that the given doubles are not equal
Parameters
-
minRelativeError: is the minimum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertNotEqual
-
assertNotEqual
-
assertArrayEqual
public static void assertArrayEqual(byte[] expected, byte[] actual) Asserts that the given byte arrays are equal -
assertArrayEqual
Asserts that the given byte arrays are equal
Parameters
errorMessage: is a string describing the failure
-
assertArrayEqual
public static void assertArrayEqual(short[] expected, short[] actual) Asserts that the given short arrays are equal -
assertArrayEqual
Asserts that the given short arrays are equal
Parameters
errorMessage: is a string describing the failure
-
assertArrayEqual
public static void assertArrayEqual(int[] expected, int[] actual) Asserts that the given int arrays are equal -
assertArrayEqual
Asserts that the given int arrays are equal
Parameters
errorMessage: is a string describing the failure
-
assertArrayEqual
public static void assertArrayEqual(long[] expected, long[] actual, double maxRelativeError) Asserts that the given long arrays are equal
Parameters
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error.
-
assertArrayEqual
public static void assertArrayEqual(long[] expected, long[] actual, double maxRelativeError, String errorMessage) Asserts that the given long arrays are equal
Parameters
-
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertArrayEqual
public static void assertArrayEqual(float[] expected, float[] actual, double maxRelativeError) Asserts that the given float arrays are equal
Parameters
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error.
-
assertArrayEqual
public static void assertArrayEqual(float[] expected, float[] actual, double maxRelativeError, String errorMessage) Asserts that the given double arrays are equal
Parameters
-
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertArrayEqual
public static void assertArrayEqual(double[] expected, double[] actual, double maxRelativeError) Asserts that the given double arrays are equal
Parameters
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error.
-
assertArrayEqual
public static void assertArrayEqual(double[] expected, double[] actual, double maxRelativeError, String errorMessage) Asserts that the given double arrays are equal
Parameters
-
maxRelativeError: is the maximum allowed error, a value of 1 represents a 1% error. -
errorMessage: is a string describing the failure
-
-
assertArrayEqual
-
assertArrayEqual
-
assertException
Asserts that a certain exception is raised
Parameters
-
exception -
expression
-
-
assertException
public static void assertException(RuntimeException exception, Runnable expression, String errorMessage) Asserts that a certain exception is raised
Parameters
-
exception -
expression -
errorMessage
-
-
assertNoException
Asserts that no exception is raised
Parameters
expression
-
assertNoException
-
assertTitle
Verifies the current title is the same otherwise throws an exception
Parameters
title: the tile to verify
-
assertLabel
-
assertLabel
Asserts that we have a label with the given text baring the given name
Parameters
-
path: the path of the label -
text: the text of the label
-
-
assertLabel
Asserts that we have a label with the given text baring the given name
Parameters
text: the text of the label
-
assertTextArea
-
assertTextAreaContaining
-
assertTextAreaStartingWith
-
assertTextAreaEndingWith
-
assertTextArea
Asserts that we have a label with the given text baring the given name
Parameters
-
path: the path to the text area -
text: the text of the label
-
-
assertTextArea
Asserts that we have a label with the given text baring the given name
Parameters
text: the text of the label
-
findTextAreaText
-