Package ch.tocco.nice2.toolbox.api
Class TestUtils
java.lang.Object
ch.tocco.nice2.toolbox.api.TestUtils
Testing utilities
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertNumericallyEquals
(@Nullable BigDecimal value1, @Nullable BigDecimal value2) static <C extends Throwable>
voidshouldFail
(Class<C> exceptionClass, TestUtils.ThrowingRunnable runnable)
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
assertNumericallyEquals
public static void assertNumericallyEquals(@Nullable @Nullable BigDecimal value1, @Nullable @Nullable BigDecimal value2) -
shouldFail
public static <C extends Throwable> void shouldFail(Class<C> exceptionClass, TestUtils.ThrowingRunnable runnable)
-