
The JUnit 5 Handbook for Readable Fast Reliable Tests
A working reference to JUnit 5 and the JUnit 6 line: lifecycle, assertions, parameterized tests, extensions and the habits that keep suites fast.
Everything you need to level up your coding skills.

A working reference to JUnit 5 and the JUnit 6 line: lifecycle, assertions, parameterized tests, extensions and the habits that keep suites fast.

Decide what to unit test, what to run against real infrastructure and what to mock, with a layered plan that keeps a Spring Boot suite fast.

A complete guide to Playwright for Java: locators, auto waiting, JUnit fixtures, Spring Boot setup, page objects, auth, tracing, CI and flakiness.

Find why a Spring Boot test cannot load its ApplicationContext, from a missing configuration class to a missing bean, property or database.

Use Quarkus dev mode for live reload, the keyboard commands and continuous testing that reruns tests when you save, and know what dev mode cannot reload.

Let Quarkus start a PostgreSQL, Kafka or Redis container in dev mode and tests when no connection is configured, and learn how to pin images and turn it off.

Write assertions that say what they check and fail with a message you can act on, using JUnit 5 assertions and AssertJ's fluent style together.

A rule for choosing what to mock in Java tests: replace what you do not own or cannot run cheaply, and keep real the code whose behavior you are testing.

Fix the Testcontainers error about a missing Docker environment by starting the daemon, pointing at the right socket and updating an old client.

Tell dummies, stubs, spies, mocks and fakes apart with a Java example of each, and learn which one to reach for in a given test.

What the test pyramid says, why it fits business logic and fits badly for services that mostly connect a database to a queue, and what to draw instead.

Use Spring Boot test slices properly: WebMvcTest, DataJpaTest, JsonTest and RestClientTest load only part of the context, with mocks, imports and speed gains.
We send one email when a new post is published. No spam.