| Package | Description |
|---|---|
| net.openhft.chronicle.testframework |
The
net.openhft.chronicle.testframework package provides a collection of utility classes and enums
for various common programming tasks, such as handling closeable resources, generating combinations and permutations,
building delegator instances, managing executor services, handling flaky tests, interacting with garbage collection,
providing network-related functionalities, generating series of numbers, and thread-related functionalities. |
| Modifier and Type | Method and Description |
|---|---|
static Waiters.WaiterBuilder<Boolean> |
Waiters.builder(Supplier<Boolean> condition)
Creates a builder for waiting on a boolean condition.
|
static <T> Waiters.WaiterBuilder<T> |
Waiters.builder(Supplier<T> valueSupplier,
Predicate<T> conditionTester)
Creates a builder for waiting on a generic condition, allowing customization of the condition testing.
|
Waiters.WaiterBuilder<T> |
Waiters.WaiterBuilder.checkIntervalMs(long checkIntervalMs)
Specify the interval between checks of the condition.
|
Waiters.WaiterBuilder<T> |
Waiters.WaiterBuilder.maxTimeToWaitMs(long maxTimeToWaitMs)
Specify the maximum amount of time to wait for the condition to be met.
|
Waiters.WaiterBuilder<T> |
Waiters.WaiterBuilder.message(String message)
Specifies a static message for the exception in case the condition isn't met.
|
Waiters.WaiterBuilder<T> |
Waiters.WaiterBuilder.messageGenerator(Function<T,String> messageGenerator)
Supply a function for generating the exception message in case the condition isn't met.
|
Copyright © 2024. All rights reserved.