use of org.mapstruct.ap.test.decorator.AddressDto in project mapstruct by mapstruct.
the class SpringDecoratorTest method shouldDelegateNonDecoratedMethodsToDefaultImplementation.
@ProcessorTest
public void shouldDelegateNonDecoratedMethodsToDefaultImplementation() {
// given
Address address = new Address("42 Ocean View Drive");
// when
AddressDto addressDto = personMapper.addressToAddressDto(address);
// then
assertThat(addressDto).isNotNull();
assertThat(addressDto.getAddressLine()).isEqualTo("42 Ocean View Drive");
}
use of org.mapstruct.ap.test.decorator.AddressDto in project mapstruct by mapstruct.
the class SpringDecoratorTest method shouldDelegateNonDecoratedMethodsToDefaultImplementation.
@ProcessorTest
public void shouldDelegateNonDecoratedMethodsToDefaultImplementation() {
// given
Address address = new Address("42 Ocean View Drive");
// when
AddressDto addressDto = personMapper.addressToAddressDto(address);
// then
assertThat(addressDto).isNotNull();
assertThat(addressDto.getAddressLine()).isEqualTo("42 Ocean View Drive");
}
use of org.mapstruct.ap.test.decorator.AddressDto in project mapstruct by mapstruct.
the class Jsr330DecoratorTest method shouldDelegateNonDecoratedMethodsToDefaultImplementation.
@ProcessorTest
public void shouldDelegateNonDecoratedMethodsToDefaultImplementation() {
Address address = new Address("42 Ocean View Drive");
AddressDto addressDto = personMapper.addressToAddressDto(address);
assertThat(addressDto).isNotNull();
assertThat(addressDto.getAddressLine()).isEqualTo("42 Ocean View Drive");
}
Aggregations