Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.81 KB

README.md

File metadata and controls

30 lines (18 loc) · 1.81 KB

Maintainability Test Coverage CircleCI Maven Central

JUnit Cast

A library that leverages the JUnit parameterized tests to test all scenarios provided.

Overview

This project was created 10 years ago to help test a rule-heavy business logic.

It works well when testing functions that receive an input or a set of inputs, and then an output is expected as a return value or a change in state.

It follows the AAA pattern in unit testing, which I find confusing, so in this case, I called it a PEA-pattern (Prepare, Execute, and Assert). With this library, assertion is implicit.

How to write a test

How to write tests - Text Version

How to use this project

  1. Make sure your system supports at least Java 11.
  2. Build the project by running: mvn clean package

IDE Requirements

This project depends on a Mockito version that was compiled on JDK 11. For this reason, it is recommended to use a JDK in your IDE that is equal or higher to version 11 so that the IDE can support all the classes used in this project.