Renaming test methods and formatting
This commit is contained in:
+2
-2
@@ -7,10 +7,10 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author sasam0320
|
||||
* @description
|
||||
* This is a helper class that contains methods for generic mapping of the users list.
|
||||
* Initially, an instance of ModelMapper was created. In the static block we set the matching configuration to STRICT.
|
||||
*
|
||||
* @author sasam0320
|
||||
*/
|
||||
public class MapperUtil {
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.baeldung.modelmapper;
|
||||
|
||||
/**
|
||||
* User model entity class
|
||||
* @author sasam0320
|
||||
* @description User model entity class
|
||||
*/
|
||||
public class User {
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.baeldung.modelmapper;
|
||||
|
||||
/**
|
||||
* UserDTO model class
|
||||
* @author sasam0320
|
||||
* @description UserDTO model class
|
||||
*/
|
||||
public class UserDTO {
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ package com.baeldung.modelmapper;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* UserList class that contain collection of users
|
||||
* @author sasam0320
|
||||
* @description UserList class that contain collection of users
|
||||
*/
|
||||
public class UserList {
|
||||
|
||||
|
||||
+1
-1
@@ -3,8 +3,8 @@ package com.baeldung.modelmapper;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* UserListDTO class that contain list of username properties
|
||||
* @author sasam0320
|
||||
* @description UserListDTO class that contain list of username properties
|
||||
*/
|
||||
public class UserListDTO {
|
||||
|
||||
|
||||
+1
-2
@@ -7,10 +7,9 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author sasam0320
|
||||
* @description
|
||||
* UserPropertyMap class instantiates the converter to map the data from the user list to the user name list.
|
||||
* In the configuration method, we call a converter to do the mapping.
|
||||
* @author sasam0320
|
||||
*/
|
||||
public class UserPropertyMap extends PropertyMap<UserList, UserListDTO> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user