hamcrest-extensions add some matchers to hamcrest that help in more special scenarios.
This package contains matchers helping you to adapt certain matchers such that they can be used at the place you need them.
WideningMatcherextends another matcher to be applicable to every object.
This package contains matchers for arrays and primitive arrays.
ArrayMatchermatches object typed arrays in a convenient way. Mixed arrays of matchers and elements are allowed.PrimitiveArrayMatchermatches primitive typed arrays in a convenient way. Mixed arrays of matchers and elements are allowed.
This package contains matchers for collections and maps.
ContainsInOrderMatchermatches collections with respect to the given order of elements, allowing to add elements fluently in builder style.ContainsInOrderMatchermatches collections without respect to the given order of elements, allowing to add elements fluently in builder styleMapMatchermatches maps, allowing to add entries fluently in builder style
This package contains matchers asserting conventional properties on classes and objects.
BuilderMatchermatches and covers builder classesEnumMatchermatches and covers enumsEqualityMatchermatches any class to comply with the common equals conventionsOrdinaryExceptionMatchermatches conventional exceptionsUtilityClassMatchermatches and covers utility classes
This package contains matchers for exceptions.
ExceptionMatchermatches exceptions by type, message and cause
This package contains matchers for all objects.
ReflectiveEqualsMatchermatches objects by comparing the structure of an object (rather than the types)
This package contains matchers for strings.
WildcardStringMatchermatches strings containing wildcard patterns (? = single wildcard, * = multiple wildcards)
<dependency>
<groupId>net.amygdalum</groupId>
<artifactId>hamcrest-extensions</artifactId>
<version>0.1.15</version>
</dependency>