Uses of Class
org.awaitility.core.ConditionFactory
Packages that use ConditionFactory
-
Uses of ConditionFactory in org.awaitility
Methods in org.awaitility that return ConditionFactoryModifier and TypeMethodDescriptionstatic ConditionFactoryAwaitility.await()Start building an await statement.static ConditionFactoryStart building a named await statement.static ConditionFactoryAwaitility.catchUncaughtExceptions()Catching uncaught exceptions in other threads.static ConditionFactoryAwaitility.dontCatchUncaughtExceptions()Don't catch uncaught exceptions in other threads.static ConditionFactoryAwaitility.given()Start constructing an await statement given some settings.static ConditionFactoryAwaitility.waitAtMost(long value, TimeUnit unit) An alternative to usingAwaitility.await()if you want to specify a timeout directly.static ConditionFactoryAwaitility.waitAtMost(Duration timeout) An alternative to usingAwaitility.await()if you want to specify a timeout directly.static ConditionFactoryAwaitility.with()Start constructing an await statement with some settings. -
Uses of ConditionFactory in org.awaitility.core
Methods in org.awaitility.core that return ConditionFactoryModifier and TypeMethodDescriptionSet the aliasConditionFactory.and()A method to increase the readability of the Awaitility DSL.Condition has to be evaluated not earlier thantimeoutbefore throwing a timeout exception.Condition has to be evaluated not earlier thantimeoutbefore throwing a timeout exception.Await at mosttimeoutbefore throwing a timeout exception.Await at mosttimeoutbefore throwing a timeout exception.ConditionFactory.await()Await for an asynchronous operation.Await for an asynchronous operation and give this await instance a particular name.ConditionFactory.between(long atLeastDuration, TimeUnit atLeastTimeUnit, long atMostDuration, TimeUnit atMostTimeUnit) Specifies the duration window which has to be satisfied during operation execution.Specifies the duration window which has to be satisfied during operation execution.ConditionFactory.catchUncaughtExceptions()Instruct Awaitility to catch uncaught exceptions from other threads.ConditionFactory.conditionEvaluationListener(ConditionEvaluationListener conditionEvaluationListener) Handle condition evaluation results each time evaluation of a condition occurs.ConditionFactory.dontCatchUncaughtExceptions()Don't catch uncaught exceptions in other threads.Await at the predicate holds during at leasttimeoutAwait at the predicate holds during at leasttimeoutIf the supplied Callable ever returns false, it indicates our condition will never be true, and if so fail the system immediately.ConditionFactory.failFast(String failFastFailureReason, ThrowingRunnable failFastAssertion) If the suppliedfailFastAssertionever returns throws an exception, it indicates our condition will never be true, and if so fail the system immediately.If the supplied Callable ever returns false, it indicates our condition will never be true, and if so fail the system immediately.ConditionFactory.failFast(ThrowingRunnable failFastAssertion) If the suppliedfailFastAssertionever returns throws an exception, it indicates our condition will never be true, and if so fail the system immediately.ConditionFactory.forever()Await forever until the condition is satisfied.ConditionFactory.given()A method to increase the readability of the Awaitility DSL.ConditionFactory.ignoreException(Class<? extends Throwable> exceptionType) Instruct Awaitility to ignore a specific exception and no subclasses of this exception.ConditionFactory.ignoreExceptions()Instruct Awaitility to ignore all exceptions that occur during evaluation.ConditionFactory.ignoreExceptionsInstanceOf(Class<? extends Throwable> exceptionType) Instruct Awaitility to ignore exceptions instance of the supplied exceptionType type.ConditionFactory.ignoreExceptionsMatching(Predicate<? super Throwable> predicate) Instruct Awaitility to ignore exceptions that occur during evaluation and matches the suppliedpredicate.ConditionFactory.ignoreExceptionsMatching(org.hamcrest.Matcher<? super Throwable> matcher) Instruct Awaitility to ignore exceptions that occur during evaluation and matches the supplied Hamcrest matcher.ConditionFactory.ignoreNoExceptions()Instruct Awaitility to not ignore any exceptions that occur during evaluation.ConditionFactory.logging()Logging condition evaluation results each time evaluation of a condition occurs to System.out.Logging condition evaluation results each time evaluation of a condition occurs to chosen consumer.Specify the delay that will be used before Awaitility starts polling for the result the first time.Specify the delay that will be used before Awaitility starts polling for the result the first time.ConditionFactory.pollExecutorService(ExecutorService executorService) Specify the executor service whose threads will be used to evaluate the poll condition in Awaitility.ConditionFactory.pollInSameThread()Instructs Awaitility to execute the polling of the condition from the same as the test.ConditionFactory.pollInterval(long pollInterval, TimeUnit unit) Specify the polling interval Awaitility will use for this await statement.ConditionFactory.pollInterval(Duration pollInterval) Specify the polling interval Awaitility will use for this await statement.ConditionFactory.pollInterval(PollInterval pollInterval) ConditionFactory.pollThread(Function<Runnable, Thread> threadSupplier) Specify a thread supplier whose thread will be used to evaluate the poll condition in Awaitility.ConditionFactory.then()A method to increase the readability of the Awaitility DSL.Await at mosttimeoutbefore throwing a timeout exception.Await at mosttimeoutbefore throwing a timeout exception.ConditionFactory.with()A method to increase the readability of the Awaitility DSL.