All source code examples in the repository are for my Online Course - Testing Spring Beginner to Guru
This source code repository contains JUnit 5 test examples with Maven.
- Should use Java 11 or higher. Previous versions of Java are un-tested.
- Use Maven 3.5.2 or higher
For questions and help:
- Please post in course
- Or post in the Slack Community exclusive to the course.
GitHub Issues will not be addressed.
- JUnit 5 incorporates support of lambdas in assertions
- Grouped Assertions - all assertions run in block, all failures reported
- Dependent Assertions - allows for block of grouped assertions
- Expected exceptions are tested with assertThrows lambda expression
- Timeouts are tested with assertTimeout lambda expression
- Popular Options
- AssertJ (newer)
- Hamcrest (older)