Extracting properties
When testing collections of complex objects, you often need to verify properties of the contained elements.
Recursive comparison
The recursive comparison feature of AssertJ allows you to compare complex objects by recursively comparing their fields.
Soft assertions
By default, assertions fail fast—the first failed assertion stops test execution and reports the failure.
Custom assertions
AssertJ allows you to create custom assertion classes for your domain objects, making tests more readable and expressive.
Assertion generator
Writing custom assertion classes manually can be time-consuming, especially for large domain models.
Practice: Advanced AssertJ
Now it's your turn! Apply the advanced AssertJ techniques you've learned to improve the test code in the orders package.
Practice: Custom Assertions
Now it's your turn to create custom assertions for the Order domain objects!