diff --git a/core-java-modules/core-java-collections-conversions-2/pom.xml b/core-java-modules/core-java-collections-conversions-2/pom.xml
index 7b7533fc39..da6b6a564a 100644
--- a/core-java-modules/core-java-collections-conversions-2/pom.xml
+++ b/core-java-modules/core-java-collections-conversions-2/pom.xml
@@ -44,6 +44,6 @@
0.10.3
11
- 3.1.1
+ 3.2.0
\ No newline at end of file
diff --git a/core-java-modules/core-java-collections-conversions-2/src/test/java/com/baeldung/modelmapper/UsersListMappingUnitTest.java b/core-java-modules/core-java-collections-conversions-2/src/test/java/com/baeldung/modelmapper/UsersListMappingUnitTest.java
index a8a72b12f7..c71f655044 100644
--- a/core-java-modules/core-java-collections-conversions-2/src/test/java/com/baeldung/modelmapper/UsersListMappingUnitTest.java
+++ b/core-java-modules/core-java-collections-conversions-2/src/test/java/com/baeldung/modelmapper/UsersListMappingUnitTest.java
@@ -1,8 +1,9 @@
package com.baeldung.modelmapper;
import org.hamcrest.Matchers;
-import org.junit.Before;
-import org.junit.Test;
+
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.modelmapper.ModelMapper;
import org.modelmapper.TypeMap;
import org.modelmapper.TypeToken;
@@ -10,11 +11,10 @@ import org.modelmapper.TypeToken;
import java.util.ArrayList;
import java.util.List;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.hasProperty;
-import static org.junit.Assert.assertThat;
-
/**
* This class has test methods of mapping Integer to Character list,
@@ -22,12 +22,12 @@ import static org.junit.Assert.assertThat;
*
* @author Sasa Milenkovic
*/
-public class UsersListMappingUnitTest {
+class UsersListMappingUnitTest {
private ModelMapper modelMapper;
private List users;
- @Before
+ @BeforeEach
public void init() {
modelMapper = new ModelMapper();
@@ -35,18 +35,16 @@ public class UsersListMappingUnitTest {
TypeMap typeMap = modelMapper.createTypeMap(UserList.class, UserListDTO.class);
typeMap.addMappings(mapper -> mapper.using(new UsersListConverter())
- .map(UserList::getUsers, UserListDTO::setUsernames));
+ .map(UserList::getUsers, UserListDTO::setUsernames));
- users = new ArrayList();
+ users = new ArrayList<>();
users.add(new User("b100", "user1", "user1@baeldung.com", "111-222", "USER"));
users.add(new User("b101", "user2", "user2@baeldung.com", "111-333", "USER"));
users.add(new User("b102", "user3", "user3@baeldung.com", "111-444", "ADMIN"));
-
}
@Test
- public void whenInteger_thenMapToCharacter() {
-
+ void whenInteger_thenMapToCharacter() {
List integers = new ArrayList();
integers.add(1);
@@ -57,36 +55,27 @@ public class UsersListMappingUnitTest {
}.getType());
assertThat(characters, hasItems('1', '2', '3'));
-
}
@Test
- public void givenUsersList_whenUseGenericType_thenMapToUserDTO() {
-
+ void givenUsersList_whenUseGenericType_thenMapToUserDTO() {
// Mapping lists using custom (generic) type mapping
-
List userDtoList = MapperUtil.mapList(users, UserDTO.class);
- assertThat(userDtoList, Matchers.hasItem(
- Matchers.both(hasProperty("userId", equalTo("b100")))
- .and(hasProperty("email", equalTo("user1@baeldung.com")))
- .and(hasProperty("username", equalTo("user1")))));
-
-
+ assertThat(userDtoList, Matchers. hasItem(Matchers.both(hasProperty("userId", equalTo("b100")))
+ .and(hasProperty("email", equalTo("user1@baeldung.com")))
+ .and(hasProperty("username", equalTo("user1")))));
}
@Test
- public void givenUsersList_whenUseConverter_thenMapToUsernames() {
-
+ void givenUsersList_whenUseConverter_thenMapToUsernames() {
// Mapping lists using property mapping and converter
-
UserList userList = new UserList();
userList.setUsers(users);
UserListDTO dtos = new UserListDTO();
modelMapper.map(userList, dtos);
assertThat(dtos.getUsernames(), hasItems("user1", "user2", "user3"));
-
}
}
\ No newline at end of file
diff --git a/libraries-6/pom.xml b/libraries-6/pom.xml
index 139edab34f..9fa44d3a32 100644
--- a/libraries-6/pom.xml
+++ b/libraries-6/pom.xml
@@ -108,7 +108,7 @@
org.agrona
agrona
- 1.17.1
+ ${agrona.version}
@@ -126,7 +126,7 @@
org.codehaus.mojo
exec-maven-plugin
- 1.6.0
+ ${exec-maven-plugin.version}
generate-sources
@@ -154,14 +154,14 @@
uk.co.real-logic
sbe-tool
- 1.27.0
+ ${sbe-tool.version}
org.codehaus.mojo
build-helper-maven-plugin
- 3.0.0
+ ${build-helper-maven-plugin.version}
add-source
@@ -204,7 +204,11 @@
3.0
1.8.1
8.12.9
- 2.4.4
+ 3.2.0
+ 1.17.1
+ 1.6.0
+ 1.27.0
+ 3.0.0
\ No newline at end of file
diff --git a/parent-java/pom.xml b/parent-java/pom.xml
index b08925e040..03cafac55b 100644
--- a/parent-java/pom.xml
+++ b/parent-java/pom.xml
@@ -40,7 +40,7 @@
- 2.3.7
+ 3.2.0
\ No newline at end of file
diff --git a/performance-tests/pom.xml b/performance-tests/pom.xml
index 542a505b16..9f57a1a90c 100644
--- a/performance-tests/pom.xml
+++ b/performance-tests/pom.xml
@@ -152,7 +152,7 @@
1.5.4
6.5.2
1.5.2.Final
- 3.1.0
+ 3.2.0
1.6.1.CR2
1.8
diff --git a/spring-boot-modules/spring-boot-libraries/pom.xml b/spring-boot-modules/spring-boot-libraries/pom.xml
index b7b8ad17ad..ed9a414a60 100644
--- a/spring-boot-modules/spring-boot-libraries/pom.xml
+++ b/spring-boot-modules/spring-boot-libraries/pom.xml
@@ -219,7 +219,7 @@
5.0.2
5.2.4
2.2.4
- 2.3.2
+ 3.2.0
0.23.0
2.1.0
1.5-beta1
diff --git a/spring-boot-rest/pom.xml b/spring-boot-rest/pom.xml
index db646899ad..71916900a4 100644
--- a/spring-boot-rest/pom.xml
+++ b/spring-boot-rest/pom.xml
@@ -162,7 +162,7 @@
com.baeldung.SpringBootRestApplication
1.4.11.1
- 3.1.0
+ 3.2.0
3.3.0
2.3.7