public static void main( String[] args ) { Source s = new Source(); s.setTest( "5" ); Target t = SourceTargetMapper.MAPPER.toTarget( s ); System.out.println( t.getTesting() ); } }
public static void main( String[] args ) { Source s = new Source(); s.setTest( "5" ); Target t = SourceTargetMapper.MAPPER.toTarget( s ); System.out.println( t.getTesting() ); } }
@Test public void testMapping() { Source s = new Source(); s.setTest( "5" ); Target t = SourceTargetMapper.MAPPER.toTarget( s ); assertEquals( 5, (long) t.getTesting() ); } }