Examples of TargetWithDate


Examples of org.mapstruct.ap.test.builtin.target.TargetWithDate

    @IssueKey( "248" )
    @WithClasses( { SourceWithDate.class, TargetWithDate.class, SourceTargetWithDateMapper.class } )
    public void dateToXmlGregorianCalenderHasCorrectImports() {
        assertThat( SourceTargetWithDateMapper.INSTANCE.toTargetWithDate( null ) ).isNull();

        TargetWithDate targetWithDate = SourceTargetWithDateMapper.INSTANCE.toTargetWithDate( new SourceWithDate() );
        assertThat( targetWithDate ).isNotNull();
        assertThat( targetWithDate.getDate() ).isNull();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.