| 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 <X extends Throwable> |
FlakyTestRunner.builder(@NotNull FlakyTestRunner.RunnableThrows<X> action)
Creates a builder for constructing a flaky test runner for an action that might throw checked exceptions.
|
static FlakyTestRunner.Builder<RuntimeException> |
FlakyTestRunner.builderUnchecked(@NotNull Runnable action)
Creates a builder for constructing a flaky test runner for an action that might throw unchecked exceptions.
|
FlakyTestRunner.Builder<X> |
FlakyTestRunner.Builder.withErrorLogger(Consumer<? super String> errorLogger)
Sets the error logger to use for error messages.
|
FlakyTestRunner.Builder<X> |
FlakyTestRunner.Builder.withFlakyOnThisArchitecture(boolean flakyOnThisArchitecture)
Configures whether the runner is considered flaky on the current architecture.
|
FlakyTestRunner.Builder<X> |
FlakyTestRunner.Builder.withInfoLogger(Consumer<? super String> infoLogger)
Sets the info logger to use for informational messages.
|
FlakyTestRunner.Builder<X> |
FlakyTestRunner.Builder.withInterIterationGc(boolean interIterationGc)
Sets if a garbage collection should be requested between each iteration.
|
FlakyTestRunner.Builder<X> |
FlakyTestRunner.Builder.withIterationDelay(long delayMs)
Sets the delay between each iteration in milliseconds.
|
FlakyTestRunner.Builder<X> |
FlakyTestRunner.Builder.withMaxIterations(int maxIterations)
Sets the maximum number of iterations before the runner fails.
|
Copyright © 2024. All rights reserved.