As we have seen, the built-in assertions provided out of the box for Jupiter are sufficient for many testing scenarios. Nevertheless, there are times when more additional functionality, such as matchers, can be desired or required. In such situations, the JUnit team recommends the use of the following third-party assertion libraries:
- Hamcrest (http://hamcrest.org/): an assertion framework to write matcher objects allowing rules to be defined declaratively.
- AssertJ (http://joel-costigliola.github.io/assertj/): fluent assertions for Java.
- Truth (https://google.github.io/truth/): an assertions Java library designed to make test assertions and failure messages more readable.
In this section, we are going to make ...