Package org.mapstruct.ap.test.imports.from

Examples of org.mapstruct.ap.test.imports.from.Foo


        ParseException target = SourceTargetMapper.INSTANCE.sourceToTarget( source );

        assertThat( target ).isNotNull();

        Foo foo = new Foo();
        foo.setName( "bar" );

        org.mapstruct.ap.test.imports.to.Foo foo2 = SourceTargetMapper.INSTANCE.fooToFoo( foo );
        assertThat( foo2 ).isNotNull();
        assertThat( foo2.getName() ).isEqualTo( "bar" );
    }
View Full Code Here


    @Test
    @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 );
View Full Code Here

TOP

Related Classes of org.mapstruct.ap.test.imports.from.Foo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.