Examples of IterableSource


Examples of org.mapstruct.ap.test.builtin.source.IterableSource

    @Test
    @WithClasses({ IterableSource.class, IterableTarget.class, IterableSourceTargetMapper.class })
    public void shouldApplyBuiltInOnIterable() throws ParseException, DatatypeConfigurationException {

        IterableSource source = new IterableSource();
        source.setDates( Arrays.asList( new XMLGregorianCalendar[] { createXmlCal( 1999, 3, 2, 60 ) } ) );

        IterableTarget target = IterableSourceTargetMapper.INSTANCE.sourceToTarget( source );
        assertThat( target ).isNotNull();
        assertThat( target.getDates() ).containsExactly( "02.03.1999" );
    }
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.