use of org.mapstruct.ap.test.bugs._2352.dto.TheModels in project mapstruct by mapstruct.
the class Issue2352Test method shouldGenerateValidCode.
@ProcessorTest
public void shouldGenerateValidCode() {
TheModels theModels = new TheModels();
theModels.add(new TheModel("1"));
theModels.add(new TheModel("2"));
List<TheDto> theDtos = TheModelsMapper.INSTANCE.convert(theModels);
assertThat(theDtos).extracting(TheDto::getId).containsExactly("1", "2");
}
Aggregations