use of org.mapstruct.ap.test.nullvaluemapping._target.DriverAndCarDto in project mapstruct by mapstruct.
the class NullValueMappingTest method shouldApplyConfiguredStrategyForMethodWithSeveralSourceParams.
@ProcessorTest
public void shouldApplyConfiguredStrategyForMethodWithSeveralSourceParams() {
// when
DriverAndCarDto result = CarMapper.INSTANCE.driverAndCarToDto(null, null);
// then
assertThat(result).isNotNull();
assertThat(result.getMake()).isNull();
assertThat(result.getName()).isNull();
// when
result = CarMapper.INSTANCE.driverAndCarToDtoReturningNull(null, null);
// then
assertThat(result).isNull();
}
Aggregations