public class UISpecAssert extends Object
Constructor and Description |
---|
UISpecAssert() |
Modifier and Type | Method and Description |
---|---|
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 |
assertThat(Assertion assertion)
Checks that the given assertion succeeds (with a retry strategy).
|
static void |
assertThat(String message,
Assertion assertion)
Checks that the given assertion succeeds (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 void |
fail() |
static void |
fail(String message) |
static Assertion |
failure(String message) |
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.
|
public static void assertThat(Assertion assertion)
Assertion.check()
method is called until the timeout
specified by UISpec4J.setAssertionTimeLimit(long)
is reached.
This method is equivalent to assertTrue(Assertion)
.public static void assertThat(String message, Assertion assertion)
Assertion.check()
method is called until the timeout
specified by UISpec4J.setAssertionTimeLimit(long)
is reached.
If it fails an AssertionError is thrown with the given message.
This method is equivalent to assertTrue(String,Assertion)
.public static void assertTrue(Assertion assertion)
Assertion.check()
method is called until the timeout
specified by UISpec4J.setAssertionTimeLimit(long)
is reached.
This method is equivalent to assertThat(Assertion)
.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 AssertionError is thrown with the given message.
This method is equivalent to assertThat(Assertion)
.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 AssertionError 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 (in milliseconds) is reached.public static void waitUntil(String message, Assertion assertion, long waitTimeLimit)
Assertion.check()
method is called until the timeout
specified as parameter (in milliseconds) is reached.
If it fails an AssertionError 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 AssertionError is thrown with the given message.public static Assertion and(Assertion... assertions)
Assertion
parameters.public static Assertion or(Assertion... assertions)
Assertion
parameters.public static void fail()
public static void fail(String message)
Copyright © 2004–2016. All rights reserved.