use of org.mapstruct.ap.test.bugs._2170.entity.Address in project mapstruct by mapstruct.
the class Issue2170Test method shouldGenerateCodeThatCompiles.
@ProcessorTest
public void shouldGenerateCodeThatCompiles() {
AddressDto addressDto = AddressMapper.INSTANCE.toDto(new Address("10000", Collections.singletonList(new Person("Tester"))));
assertThat(addressDto).isNotNull();
assertThat(addressDto.getZipCode()).isEqualTo("10000");
assertThat(addressDto.getPeople()).extracting(PersonDto::getName).containsExactly("Tester");
}
Aggregations