use of org.mapstruct.ap.test.bugs._1124.Issue1124Mapper.MappingContext in project mapstruct by mapstruct.
the class Issue1124Test method nestedPropertyWithContextCompiles.
@ProcessorTest
public void nestedPropertyWithContextCompiles() {
Entity entity = new Entity();
Entity subEntity = new Entity();
subEntity.setId(42L);
entity.setEntity(subEntity);
DTO dto = Mappers.getMapper(Issue1124Mapper.class).map(entity, new MappingContext());
assertThat(dto.getId()).isEqualTo(42L);
}
Aggregations