use of org.mapstruct.ap.test.imports.from.FooWrapper in project mapstruct by mapstruct.
the class ConflictingTypesNamesTest method importsForTargetTypes.
@ProcessorTest
@IssueKey("156")
public void importsForTargetTypes() {
FooWrapper source = new FooWrapper();
Foo value = new Foo();
value.setName("foo");
source.setValue(value);
org.mapstruct.ap.test.imports.to.FooWrapper result = SecondSourceTargetMapper.INSTANCE.fooWrapperToFooWrapper(source);
assertThat(result).isNotNull();
assertThat(result.getValue()).isNotNull();
assertThat(result.getValue().getName()).isEqualTo("foo");
}
Aggregations