Package com.github.robtimus.junit.support
Provides interfaces and classes for helping create unit tests using JUnit.
-
Class Summary Class Description AssertionFailedErrorBuilder A builder forAssertionFailedError
s.AssertionFailedErrorBuilder.PrefixedValues An object that can set the possible expected value or actual value of an assertion with a prefix.AssertionFailedErrorBuilder.ReasonBuilder A builder for the reason why the assertion failed.IOAssertions A collection of utility methods that support asserting conditions related to I/O.OptionalAssertions A collection of utility methods that support asserting conditions in tests forOptional
,OptionalInt
,OptionalLong
andOptionalDouble
.PredicateAssertions A collection of utility methods that support asserting conditions on objects using predicates.ThrowableAsserter<R> An object that asserts that executing anExecutable
or retrieving the value of aThrowingSupplier
throws an error.ThrowableAsserter.Asserted<R> An object that represents aThrowableAsserter
in its asserted state.ThrowableAsserter.NoError<R> An object that can be used to configure the assertions that should be performed when no error is thrown.ThrowableAsserter.ThrownError<T extends Throwable,R> An object that can be used to configure the assertions that should be performed when an error is thrown.ThrowableAssertions A collection of utility methods that support asserting conditions in tests for throwables and code that should or should not throw any exceptions, in addition to what is already provided byAssertions
.