Fix method naming

This commit is contained in:
Silvère Marie 2021-03-29 17:42:22 +02:00 committed by Filip Hrisafov
parent 1187e357c1
commit 85d3b310f7
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public class FieldsMappingTest {
source.normalList = Lists.newArrayList( 10, 11, 12 );
source.fieldOnlyWithGetter = 20;
Target target = SourceTargetMapper.INSTANCE.toSource( source );
Target target = SourceTargetMapper.INSTANCE.toTarget( source );
assertThat( target ).isNotNull();
assertThat( target.finalInt ).isEqualTo( "10" );

View File

@ -19,7 +19,7 @@ public interface SourceTargetMapper {
SourceTargetMapper INSTANCE = Mappers.getMapper( SourceTargetMapper.class );
@Mapping(target = "fieldWithMethods", source = "fieldOnlyWithGetter")
Target toSource(Source source);
Target toTarget(Source source);
@InheritInverseConfiguration
Source toSource(Target target);