Skip to main content

AssertJ: Readable Assertions

Learn AssertJ: Readable Assertions (Testing in Practice, JUnit 5 & Mockito) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

AssertJ gives fluent assertions with far better failure messages than plain JUnit asserts. It ships with spring-boot-starter-test.

More lessons in Testing in Practice