assertj-extensions add some assertions to assertj that help in more special scenarios. These extensions are
- Custom assertions extending already supported ones in assertj
- Custom assertions adding support for types not yet supported by assertj
- Consumers containing complex assertion cascades usable with satisfies
This package contains helpers for language or design pattern conventions
DefaultEnum(Consumer<Class<?>>) asserts that an object is an enum (and covers many methods)DefaultEquality(Consumer) asserts that an object complies with the common equality convention (and covers some of the equals/hashcode code)UtilityClass(Consumer<Class<?>>) asserts that a class is a utility class (and covers all methods related to this convention)IterableAssertis available by calling Assertions.assertThat(Iterable) (Custom assertion extending original assertion)StringAssertis available by calling Assertions.assertThat(String) (Custom assertion extending original assertion)
This package contains helpers for iterables
This package contains helpers for strings.
<dependency>
<groupId>net.amygdalum</groupId>
<artifactId>assertj-extensions</artifactId>
<version>0.0.3</version>
</dependency>