public final class TestUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestUtils.ThrowingBiFunction<T,U,R> |
static interface |
TestUtils.ThrowingConsumer<T> |
static interface |
TestUtils.ThrowingConsumerEx<T> |
static interface |
TestUtils.ThrowingFunction<T,R> |
static interface |
TestUtils.ThrowingSupplier<T> |
| Constructor and Description |
|---|
TestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Callback<T> |
assertComplete() |
static <T> Callback<T> |
assertComplete(TestUtils.ThrowingConsumer<T> consumer) |
static <T,U,R> BiFunction<T,U,R> |
asserting(TestUtils.ThrowingBiFunction<T,U,R> function) |
static <T> Consumer<T> |
asserting(TestUtils.ThrowingConsumer<T> consumer) |
static <T> Callback<T> |
asserting(TestUtils.ThrowingConsumerEx<T> consumer) |
static <T,R> Function<T,R> |
asserting(TestUtils.ThrowingFunction<T,R> function) |
static <T> Supplier<T> |
asserting(TestUtils.ThrowingSupplier<T> supplier) |
static void |
clearActivePromises() |
static DataSource |
dataSource(String databasePropertiesPath) |
static int |
getActivePromises() |
static int |
getFreePort() |
public static int getFreePort()
public static DataSource dataSource(String databasePropertiesPath) throws IOException, SQLException
IOExceptionSQLExceptionpublic static <T> Callback<T> assertComplete(TestUtils.ThrowingConsumer<T> consumer)
public static <T> Callback<T> assertComplete()
public static int getActivePromises()
public static void clearActivePromises()
public static <T> Supplier<T> asserting(TestUtils.ThrowingSupplier<T> supplier)
public static <T> Consumer<T> asserting(TestUtils.ThrowingConsumer<T> consumer)
public static <T> Callback<T> asserting(TestUtils.ThrowingConsumerEx<T> consumer)
public static <T,R> Function<T,R> asserting(TestUtils.ThrowingFunction<T,R> function)
public static <T,U,R> BiFunction<T,U,R> asserting(TestUtils.ThrowingBiFunction<T,U,R> function)
Copyright © 2019. All rights reserved.