Search in sources :

Example 1 with FooWrapper

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");
}
Also used : Foo(org.mapstruct.ap.test.imports.from.Foo) FooWrapper(org.mapstruct.ap.test.imports.from.FooWrapper) IssueKey(org.mapstruct.ap.testutil.IssueKey) ProcessorTest(org.mapstruct.ap.testutil.ProcessorTest)

Aggregations

Foo (org.mapstruct.ap.test.imports.from.Foo)1 FooWrapper (org.mapstruct.ap.test.imports.from.FooWrapper)1 IssueKey (org.mapstruct.ap.testutil.IssueKey)1 ProcessorTest (org.mapstruct.ap.testutil.ProcessorTest)1