Package io.quarkus.test.utils
Class AwaitilityUtils
- java.lang.Object
-
- io.quarkus.test.utils.AwaitilityUtils
-
public final class AwaitilityUtils extends Object
Awaitility utils to make a long or repeatable operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAwaitilityUtils.AwaitilitySettingsstatic classAwaitilityUtils.CustomConditionEvaluationListener
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tuntil(Supplier<T> supplier, org.hamcrest.Matcher<T> matcher)static <T> voiduntilAsserted(Supplier<T> supplier, Consumer<T> asserts)Wait until the supplier returns an instance that satisfies the asserts.static voiduntilAsserted(org.awaitility.core.ThrowingRunnable assertion)Wait until the assertions are satified.static voiduntilIsFalse(Callable<Boolean> supplier)Wait until supplier returns false.static voiduntilIsFalse(Callable<Boolean> supplier, AwaitilityUtils.AwaitilitySettings settings)Wait until supplier returns false.static <T> T[]untilIsNotEmpty(Supplier<T[]> supplier)Wait until supplier returns a not empty array.static <T> TuntilIsNotNull(Supplier<T> supplier)Wait until supplier returns a not null instance.static voiduntilIsTrue(Callable<Boolean> supplier)Wait until supplier returns true.static voiduntilIsTrue(Callable<Boolean> supplier, AwaitilityUtils.AwaitilitySettings settings)Wait until supplier returns true.
-
-
-
Method Detail
-
untilIsFalse
public static void untilIsFalse(Callable<Boolean> supplier)
Wait until supplier returns false.- Parameters:
supplier- method to return the instance.
-
untilIsFalse
public static void untilIsFalse(Callable<Boolean> supplier, AwaitilityUtils.AwaitilitySettings settings)
Wait until supplier returns false.- Parameters:
supplier- method to return the instance.
-
untilIsTrue
public static void untilIsTrue(Callable<Boolean> supplier)
Wait until supplier returns true.- Parameters:
supplier- method to return the instance.
-
untilIsTrue
public static void untilIsTrue(Callable<Boolean> supplier, AwaitilityUtils.AwaitilitySettings settings)
Wait until supplier returns true.- Parameters:
supplier- method to return the instance.
-
untilIsNotNull
public static <T> T untilIsNotNull(Supplier<T> supplier)
Wait until supplier returns a not null instance.- Parameters:
supplier- method to return the instance.- Returns:
- the non null instance.
-
untilIsNotEmpty
public static <T> T[] untilIsNotEmpty(Supplier<T[]> supplier)
Wait until supplier returns a not empty array.- Parameters:
supplier- method to return the instance.- Returns:
- the non empty array.
-
untilAsserted
public static <T> void untilAsserted(Supplier<T> supplier, Consumer<T> asserts)
Wait until the supplier returns an instance that satisfies the asserts.- Parameters:
supplier- method to return the instance.asserts- custom assertions that the instance must satisfy.
-
untilAsserted
public static void untilAsserted(org.awaitility.core.ThrowingRunnable assertion)
Wait until the assertions are satified.- Parameters:
assertion- custom assertions that the instance must satisfy.
-
until
public static <T> T until(Supplier<T> supplier, org.hamcrest.Matcher<T> matcher)
-
-