| java.lang.Object org.uispec4j.assertion.UISpecAssert
UISpecAssert | public class UISpecAssert (Code) | | Checks the validity of Assertion objects.
These methods are not meant to be used directly from within tests - you can use
them through
UISpecTestCase or your own
TestCase implementation.
|
Method Summary | |
public static Assertion | and(Assertion[] assertions) Returns the intersection of the
Assertion parameters. | public static void | assertEquals(boolean expected, Assertion assertion) Checks the given assertion equals the expected parameter (with a retry strategy). | public static void | assertEquals(String message, boolean expected, Assertion assertion) Checks the given assertion equals the expected parameter (with a retry strategy). | public static void | assertFalse(Assertion assertion) Checks that the given assertion fails (with a retry strategy). | public static void | assertFalse(String message, Assertion assertion) Checks the given assertion fails (with a retry strategy). | public static void | assertTrue(Assertion assertion) Checks that the given assertion succeeds (with a retry strategy). | public static void | assertTrue(String message, Assertion assertion) Checks that the given assertion succeeds (with a retry strategy). | public static Assertion | not(Assertion assertion) Returns a negation of the given assertion. | public static Assertion | or(Assertion[] assertions) Returns the union of the
Assertion parameters. | public static void | waitUntil(Assertion assertion, long waitTimeLimit) Waits until the given assertion becomes true. | public static void | waitUntil(String message, Assertion assertion, long waitTimeLimit) Waits until the given assertion becomes true. |
assertEquals | public static void assertEquals(String message, boolean expected, Assertion assertion)(Code) | | Checks the given assertion equals the expected parameter (with a retry strategy).
The
Assertion.check method is called until the timeout
specified by
UISpec4J.setAssertionTimeLimit(long) is reached.
If it fails an AssertionFailedError is thrown with the given message.
|
waitUntil | public static void waitUntil(Assertion assertion, long waitTimeLimit)(Code) | | Waits until the given assertion becomes true.
The
Assertion.check method is called until the timeout
specified as parameter is reached.
|
waitUntil | public static void waitUntil(String message, Assertion assertion, long waitTimeLimit)(Code) | | Waits until the given assertion becomes true.
The
Assertion.check method is called until the timeout
specified as parameter is reached.
If it fails an AssertionFailedError is thrown with the given message.
|
|
|