|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.uispec4j.assertion.UISpecAssert
Checks the validity of Assertion objects.
These methods are not meant to be used directly from within tests - you can use them throughUISpecTestCase or your own
TestCase implementation.
| Constructor Summary | |
UISpecAssert()
|
|
| Method Summary | |
static Assertion |
and(Assertion[] assertions)
Returns the intersection of the Assertion parameters. |
static void |
assertEquals(boolean expected,
Assertion assertion)
Checks the given assertion equals the expected parameter (with a retry strategy). |
static void |
assertEquals(String message,
boolean expected,
Assertion assertion)
Checks the given assertion equals the expected parameter (with a retry strategy). |
static void |
assertFalse(Assertion assertion)
Checks that the given assertion fails (with a retry strategy). |
static void |
assertFalse(String message,
Assertion assertion)
Checks the given assertion fails (with a retry strategy). |
static void |
assertTrue(Assertion assertion)
Checks that the given assertion succeeds (with a retry strategy). |
static void |
assertTrue(String message,
Assertion assertion)
Checks that the given assertion succeeds (with a retry strategy). |
static Assertion |
not(Assertion assertion)
Returns a negation of the given assertion. |
static Assertion |
or(Assertion[] assertions)
Returns the union of the Assertion parameters. |
static void |
waitUntil(Assertion assertion,
long waitTimeLimit)
Waits until the given assertion becomes true. |
static void |
waitUntil(String message,
Assertion assertion,
long waitTimeLimit)
Waits until the given assertion becomes true. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UISpecAssert()
| Method Detail |
public static void assertTrue(Assertion assertion)
Assertion.check() method is called until the timeout
specified by UISpec4J.setAssertionTimeLimit(long) is reached.
public static void assertTrue(String message,
Assertion assertion)
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.
public static void assertFalse(Assertion assertion)
Assertion.check() method is called until the timeout
specified by UISpec4J.setAssertionTimeLimit(long) is reached.
public static void assertFalse(String message,
Assertion assertion)
Assertion.check() method is called until the timeout
specified by UISpec4J.setAssertionTimeLimit(long) is reached.
If it succeeds an AssertionFailedError is thrown with the given message.
public static void waitUntil(Assertion assertion,
long waitTimeLimit)
Assertion.check() method is called until the timeout
specified as parameter is reached.
public static void waitUntil(String message,
Assertion assertion,
long waitTimeLimit)
Assertion.check() method is called until the timeout
specified as parameter is reached.
If it fails an AssertionFailedError is thrown with the given message.
public static void assertEquals(boolean expected,
Assertion assertion)
Assertion.check() method is called until the timeout
specified by UISpec4J.setAssertionTimeLimit(long) is reached.
public static void assertEquals(String message,
boolean expected,
Assertion assertion)
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.
public static Assertion not(Assertion assertion)
public static Assertion and(Assertion[] assertions)
Assertion parameters.
public static Assertion or(Assertion[] assertions)
Assertion parameters.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||