Search in sources :

Example 1 with TheModel

use of org.mapstruct.ap.test.bugs._2352.dto.TheModel 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");
}
Also used : TheDto(org.mapstruct.ap.test.bugs._2352.dto.TheDto) TheModel(org.mapstruct.ap.test.bugs._2352.dto.TheModel) TheModels(org.mapstruct.ap.test.bugs._2352.dto.TheModels) ProcessorTest(org.mapstruct.ap.testutil.ProcessorTest)

Aggregations

TheDto (org.mapstruct.ap.test.bugs._2352.dto.TheDto)1 TheModel (org.mapstruct.ap.test.bugs._2352.dto.TheModel)1 TheModels (org.mapstruct.ap.test.bugs._2352.dto.TheModels)1 ProcessorTest (org.mapstruct.ap.testutil.ProcessorTest)1