Profile picture of Philémon GLOBLÉHI
Philémon GLOBLÉHI
Développeur Java
Follow me
Generated by linktime
April 11, 2025
Je vous partage une astuce AssertJ que j’utilise souvent pour éviter les répétitions et rendre mes assertions plus claires : satisfies(). 🙌
Stay updated
Subscribe to receive my future LinkedIn posts in your mailbox.

By clicking "Subscribe", you agree to receive emails from linktime.co.
You can unsubscribe at any time.

25 Likes
April 11, 2025
Discussion about this post
Profile picture of Soumaila DIAKITE
Soumaila DIAKITE
👨💻 Software Engineer | Programming enthusiast
5 months ago
Je trouve un peu penible la lecture avec tous ces assertThat. J'aurai proposé un truc de ce genre: // result = retour de ta fonction assertThat(result).isNotNull() .extracting(order -> order.getShippingAddress().getCountry(), order -> order.getShippingAddress().getPostalCode(), order -> order.getShippingAddress().getCity()) .containsExactly("France", "75000", "Paris");