Sessions 
 Sessions 
 Sessions 

Sessions

Discover our confirmed talks!

Sessions

Discover our confirmed talks!

Better Assertions with AssertJ

Tim te Beek - Moderne

Not all testing libraries are equal. Sure they all run your tests, but what happens when they fail? “Expected ‘true’, was ‘false’” won’t help you much. Your choice of library determines whether you can immediately jump to a fix, or first have to debug for more details.

In this talk we’ll explore AssertJ, and the fluent assertions API it provides. We’ll contrast this to alternatives like JUnit and Hamcrest, and show how subtle differences improve the experience. We’ll also look at the MockMvcTester added to Spring Boot 3.4, and how you can now finally have unified fluent assertions for all your tests, and the path to get there.

For existing AssertJ users we will optimize its use to get more expressive assertions and meaningful messages from existing tests. Finally, a quick few OpenRewrite recipes help you apply all these best practices at once, and continuously going forward.

 Tickets 
 Tickets 
 Tickets 

Tickets

Late Bird tickets

Tickets

Late Bird tickets

Pic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/OPic Spring I/O