BAEL-3576: Improve "Spring REST Entity to Dto" article (#8320)

* BAEL-3576: Update modelmapper to 2.3.5

* BAEL-3576: Code cleanup
This commit is contained in:
kwoyke
2019-12-08 01:25:43 +01:00
committed by Grzegorz Piwowarek
parent d0a9b57694
commit 251f9f756e
3 changed files with 24 additions and 23 deletions
@@ -15,7 +15,7 @@ public class PostDtoUnitTest {
@Test
public void whenConvertPostEntityToPostDto_thenCorrect() {
Post post = new Post();
post.setId(Long.valueOf(1));
post.setId(1L);
post.setTitle(randomAlphabetic(6));
post.setUrl("www.test.com");
@@ -28,7 +28,7 @@ public class PostDtoUnitTest {
@Test
public void whenConvertPostDtoToPostEntity_thenCorrect() {
PostDto postDto = new PostDto();
postDto.setId(Long.valueOf(1));
postDto.setId(1L);
postDto.setTitle(randomAlphabetic(6));
postDto.setUrl("www.test.com");