From 3b89043202deb1e8d528056b8aec1614f7d2206f Mon Sep 17 00:00:00 2001 From: Loredana Crusoveanu Date: Wed, 18 Jul 2018 20:51:01 +0300 Subject: [PATCH 1/2] Update JMapperIntegrationTest.java --- .../baeldung/jmapper/JMapperIntegrationTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/src/test/java/com/baeldung/jmapper/JMapperIntegrationTest.java b/libraries/src/test/java/com/baeldung/jmapper/JMapperIntegrationTest.java index d2ad65d840..96ed090482 100644 --- a/libraries/src/test/java/com/baeldung/jmapper/JMapperIntegrationTest.java +++ b/libraries/src/test/java/com/baeldung/jmapper/JMapperIntegrationTest.java @@ -17,7 +17,7 @@ public class JMapperIntegrationTest { @Test - public void giventUser_whenUseAnnotation_thenConverted(){ + public void givenUser_whenUseAnnotation_thenConverted(){ JMapper userMapper = new JMapper<>(UserDto.class, User.class); User user = new User(1L,"john@test.com", LocalDate.of(1980,8,20)); @@ -29,7 +29,7 @@ public class JMapperIntegrationTest { } @Test - public void giventUser_whenUseGlobalMapAnnotation_thenConverted(){ + public void givenUser_whenUseGlobalMapAnnotation_thenConverted(){ JMapper userMapper= new JMapper<>(UserDto1.class, User.class); User user = new User(1L,"john@test.com", LocalDate.of(1980,8,20)); @@ -41,7 +41,7 @@ public class JMapperIntegrationTest { } @Test - public void giventUser_whenUseAnnotationExplicitConversion_thenConverted(){ + public void givenUser_whenUseAnnotationExplicitConversion_thenConverted(){ JMapper userMapper = new JMapper<>(UserDto.class, User.class); User user = new User(1L,"john@test.com", LocalDate.of(1980,8,20)); @@ -56,7 +56,7 @@ public class JMapperIntegrationTest { //======================= XML @Test - public void giventUser_whenUseXml_thenConverted(){ + public void givenUser_whenUseXml_thenConverted(){ JMapper userMapper = new JMapper<>(UserDto.class, User.class,"user_jmapper.xml"); User user = new User(1L,"john@test.com", LocalDate.of(1980,8,20)); @@ -68,7 +68,7 @@ public class JMapperIntegrationTest { } @Test - public void giventUser_whenUseXmlGlobal_thenConverted(){ + public void givenUser_whenUseXmlGlobal_thenConverted(){ JMapper userMapper = new JMapper<>(UserDto1.class, User.class,"user_jmapper1.xml"); User user = new User(1L,"john@test.com", LocalDate.of(1980,8,20)); @@ -82,7 +82,7 @@ public class JMapperIntegrationTest { // ===== API @Test - public void giventUser_whenUseApi_thenConverted(){ + public void givenUser_whenUseApi_thenConverted(){ JMapperAPI jmapperApi = new JMapperAPI() .add(mappedClass(UserDto.class) .add(attribute("id").value("id")) .add(attribute("username").value("email")) @@ -98,7 +98,7 @@ public class JMapperIntegrationTest { } @Test - public void giventUser_whenUseApiGlobal_thenConverted(){ + public void givenUser_whenUseApiGlobal_thenConverted(){ JMapperAPI jmapperApi = new JMapperAPI() .add(mappedClass(UserDto.class) .add(global()) ) ; From 83a1443380dd89e22364a65221d43e226868eff0 Mon Sep 17 00:00:00 2001 From: Loredana Crusoveanu Date: Wed, 18 Jul 2018 20:51:23 +0300 Subject: [PATCH 2/2] Update JMapperRelationalIntegrationTest.java --- .../baeldung/jmapper/JMapperRelationalIntegrationTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/src/test/java/com/baeldung/jmapper/JMapperRelationalIntegrationTest.java b/libraries/src/test/java/com/baeldung/jmapper/JMapperRelationalIntegrationTest.java index 054332a704..6af2865159 100644 --- a/libraries/src/test/java/com/baeldung/jmapper/JMapperRelationalIntegrationTest.java +++ b/libraries/src/test/java/com/baeldung/jmapper/JMapperRelationalIntegrationTest.java @@ -16,7 +16,7 @@ public class JMapperRelationalIntegrationTest { @Test - public void giventUser_whenUseAnnotation_thenConverted(){ + public void givenUser_whenUseAnnotation_thenConverted(){ RelationalJMapper relationalMapper = new RelationalJMapper<>(User.class); User user = new User(1L,"john@test.com"); @@ -34,7 +34,7 @@ public class JMapperRelationalIntegrationTest { //======================= XML @Test - public void giventUser_whenUseXml_thenConverted(){ + public void givenUser_whenUseXml_thenConverted(){ RelationalJMapper relationalMapper = new RelationalJMapper<>(User.class,"user_jmapper2.xml"); User user = new User(1L,"john@test.com"); @@ -53,7 +53,7 @@ public class JMapperRelationalIntegrationTest { // ===== API @Test - public void giventUser_whenUseApi_thenConverted(){ + public void givenUser_whenUseApi_thenConverted(){ JMapperAPI jmapperApi = new JMapperAPI() .add(mappedClass(User.class) .add(attribute("id").value("id").targetClasses(UserDto1.class,UserDto2.class))