This is an extension to powerunit (a unit test framework for java 8) that doesn't require this framework, but provides generation of hamcrest matchers.
This version of the library doesn't support version below java 17
Basic usage is to add this libraray as a dependency and use the annotation :
@ProvideMatchers
public class PojoShort {
...
}
Matchers classes must be created by the annotation processor (in this example, named PojoShortMatchers
).
The version 1.0.0 breaks the package of the annotations. It will be necessary to replace the package
ch.powerunit.extensions.matchers
by ch.powerunit.extensions.matchers.api
.