use of org.mapstruct.ap.test.inheritedmappingmethod.source.Car in project mapstruct by mapstruct.
the class InheritedMappingMethodTest method shouldMapUsingUnboundedInheretedMappingMethod.
@ProcessorTest
public void shouldMapUsingUnboundedInheretedMappingMethod() {
// given
CarDto bikeDto = new CarDto();
bikeDto.setHorsepower(130);
// when
UnboundMappable<CarDto, Car> instance = CarMapper.INSTANCE;
Car bike = instance.from(bikeDto);
// then
assertThat(bike).isNotNull();
assertThat(bike.getHorsepower()).isEqualTo(130);
}
Aggregations