I have a DTO which I\'m populating from the request object, and the request object has many fields. I want to write a test to check if the populateDTO() method
populateDTO()
this construction help you to have 1 big assert (with small asserts inside)
import static org.junit.jupiter.api.Assertions.assertAll; assertAll( () -> assertThat(actual1, is(expected)), () -> assertThat(actual2, is(expected)) );