Intro
Today, we're going to break your old testing habits and learn some new ones.
This workshop consists of several sections, each focusing on a different aspect of improving your testing practices.
- Bad habits - We'll start by exploring some common but outdated testing patterns, and ways to improve them.
- Old habits - After that, we'll look at legacy testing frameworks and libraries that are still in use today.
- JUnit Jupiter - Next, we'll upgrade to JUnit 6 and learn its new features.
- Adopt AssertJ - Then, we'll dive into AssertJ for more expressive assertions.
- Advanced AssertJ - Finally, we'll master fluent assertions for cleaner and more maintainable tests.
Getting Started
We recommend going through the sections in order, but you're welcome to go at your own pace. There is a lot of material to cover, so feel free to take breaks and revisit sections as needed.
There are sources included with this repository that support your exploration of the topics, but you're just as welcome to use your own projects to try out the improvements.
What you'll need
- Java 8+, to run recipes
- Gradle 4.10+, or
- Maven 3+
- Java 21+, to develop recipes