Skip to content

powerunit/powerunit-extensions-matchers

Repository files navigation

powerunit-extensions-matchers

  • Travis ci : Build Status
  • Vulnerabilities : Known Vulnerabilities DepShield Badge
  • Coverage : Coverage Status - codecov
  • Quality : Codacy Badge - CodeFactor - BCH compliance - codebeat badge
  • Maven : Maven Central
  • Git : mergify-status

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

Usage

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).

Upgrade to version 1.0.0

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.