Package | Description |
---|---|
org.awaitility | |
org.awaitility.core |
Modifier and Type | Method and Description |
---|---|
static ConditionFactory |
Awaitility.await()
Start building an await statement.
|
static ConditionFactory |
Awaitility.await(String alias)
Start building a named await statement.
|
static ConditionFactory |
Awaitility.catchUncaughtExceptions()
Catching uncaught exceptions in other threads.
|
static ConditionFactory |
Awaitility.dontCatchUncaughtExceptions()
Don't catch uncaught exceptions in other threads.
|
static ConditionFactory |
Awaitility.given()
Start constructing an await statement given some settings.
|
static ConditionFactory |
Awaitility.waitAtMost(Duration timeout)
An alternative to using
Awaitility.await() if you want to specify a timeout
directly. |
static ConditionFactory |
Awaitility.waitAtMost(long value,
TimeUnit unit)
An alternative to using
Awaitility.await() if you want to specify a timeout
directly. |
static ConditionFactory |
Awaitility.with()
Start constructing an await statement with some settings.
|
Modifier and Type | Method and Description |
---|---|
ConditionFactory |
ConditionFactory.alias(String alias)
Set the alias
|
ConditionFactory |
ConditionFactory.and()
A method to increase the readability of the Awaitility DSL.
|
ConditionFactory |
ConditionFactory.atLeast(Duration timeout)
Condition has to be evaluated not earlier than
timeout before throwing a timeout exception. |
ConditionFactory |
ConditionFactory.atLeast(long timeout,
TimeUnit unit)
Condition has to be evaluated not earlier than
timeout before throwing a timeout exception. |
ConditionFactory |
ConditionFactory.atMost(Duration timeout)
Await at most
timeout before throwing a timeout exception. |
ConditionFactory |
ConditionFactory.atMost(long timeout,
TimeUnit unit)
Await at most
timeout before throwing a timeout exception. |
ConditionFactory |
ConditionFactory.await()
Await for an asynchronous operation.
|
ConditionFactory |
ConditionFactory.await(String alias)
Await for an asynchronous operation and give this await instance a
particular name.
|
ConditionFactory |
ConditionFactory.between(Duration atLeast,
Duration atMost)
Specifies the duration window which has to be satisfied during operation execution.
|
ConditionFactory |
ConditionFactory.between(long atLeastDuration,
TimeUnit atLeastTimeUnit,
long atMostDuration,
TimeUnit atMostTimeUnit)
Specifies the duration window which has to be satisfied during operation execution.
|
ConditionFactory |
ConditionFactory.catchUncaughtExceptions()
Instruct Awaitility to catch uncaught exceptions from other threads.
|
ConditionFactory |
ConditionFactory.conditionEvaluationListener(ConditionEvaluationListener conditionEvaluationListener)
Handle condition evaluation results each time evaluation of a condition occurs.
|
ConditionFactory |
ConditionFactory.dontCatchUncaughtExceptions()
Don't catch uncaught exceptions in other threads.
|
ConditionFactory |
ConditionFactory.during(Duration timeout)
Await at the predicate holds during at least
timeout |
ConditionFactory |
ConditionFactory.during(long timeout,
TimeUnit unit)
Await at the predicate holds during at least
timeout |
ConditionFactory |
ConditionFactory.forever()
Await forever until the condition is satisfied.
|
ConditionFactory |
ConditionFactory.given()
A method to increase the readability of the Awaitility DSL.
|
ConditionFactory |
ConditionFactory.ignoreException(Class<? extends Throwable> exceptionType)
Instruct Awaitility to ignore a specific exception and no subclasses of this exception.
|
ConditionFactory |
ConditionFactory.ignoreExceptions()
Instruct Awaitility to ignore all exceptions that occur during evaluation.
|
ConditionFactory |
ConditionFactory.ignoreExceptionsInstanceOf(Class<? extends Throwable> exceptionType)
Instruct Awaitility to ignore exceptions instance of the supplied exceptionType type.
|
ConditionFactory |
ConditionFactory.ignoreExceptionsMatching(org.hamcrest.Matcher<? super Throwable> matcher)
Instruct Awaitility to ignore exceptions that occur during evaluation and matches the supplied Hamcrest matcher.
|
ConditionFactory |
ConditionFactory.ignoreExceptionsMatching(Predicate<? super Throwable> predicate)
Instruct Awaitility to ignore exceptions that occur during evaluation and matches the supplied
predicate . |
ConditionFactory |
ConditionFactory.ignoreNoExceptions()
Instruct Awaitility to not ignore any exceptions that occur during evaluation.
|
ConditionFactory |
ConditionFactory.pollDelay(Duration pollDelay)
Specify the delay that will be used before Awaitility starts polling for
the result the first time.
|
ConditionFactory |
ConditionFactory.pollDelay(long delay,
TimeUnit unit)
Specify the delay that will be used before Awaitility starts polling for
the result the first time.
|
ConditionFactory |
ConditionFactory.pollExecutorService(ExecutorService executorService)
Specify the executor service whose threads will be used to evaluate the poll condition in Awaitility.
|
ConditionFactory |
ConditionFactory.pollInSameThread()
Instructs Awaitility to execute the polling of the condition from the same as the test.
|
ConditionFactory |
ConditionFactory.pollInterval(Duration pollInterval)
Specify the polling interval Awaitility will use for this await
statement.
|
ConditionFactory |
ConditionFactory.pollInterval(long pollInterval,
TimeUnit unit)
Specify the polling interval Awaitility will use for this await
statement.
|
ConditionFactory |
ConditionFactory.pollInterval(PollInterval pollInterval) |
ConditionFactory |
ConditionFactory.pollThread(Function<Runnable,Thread> threadSupplier)
Specify a thread supplier whose thread will be used to evaluate the poll condition in Awaitility.
|
ConditionFactory |
ConditionFactory.then()
A method to increase the readability of the Awaitility DSL.
|
ConditionFactory |
ConditionFactory.timeout(Duration timeout)
Await at most
timeout before throwing a timeout exception. |
ConditionFactory |
ConditionFactory.timeout(long timeout,
TimeUnit unit)
Await at most
timeout before throwing a timeout exception. |
ConditionFactory |
ConditionFactory.with()
A method to increase the readability of the Awaitility DSL.
|
Copyright © 2010–2020. All rights reserved.