Package org.mapstruct.ap.test.collection.adder.source

Examples of org.mapstruct.ap.test.collection.adder.source.SingleElementSource


    @IssueKey("242")
    @Test
    public void testSingleElementSource() throws DogException {
        AdderUsageObserver.setUsed( false );

        SingleElementSource source = new SingleElementSource();
        source.setPet( "mouse" );

        Target target = SourceTargetMapper.INSTANCE.fromSingleElementSource( source );
        assertThat( target ).isNotNull();
        assertThat( target.getPets().size() ).isEqualTo( 1 );
        assertThat( target.getPets().get( 0 ) ).isEqualTo( 2L );
View Full Code Here

TOP

Related Classes of org.mapstruct.ap.test.collection.adder.source.SingleElementSource

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.