Encrypt password

This commit is contained in:
René Pfeuffer
2018-05-28 16:02:28 +02:00
parent 0583fd2210
commit 8ea0070019
4 changed files with 51 additions and 9 deletions

View File

@@ -9,13 +9,13 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.mock;
public class UserMapperTest {
public class User2UserDtoMapperTest {
@Test
public void shouldMapLinks() {
User user = new User();
user.setName("abc");
UserDto userDto = UserMapper.INSTANCE.userToUserDto(user, mock(UriInfo.class));
UserDto userDto = User2UserDtoMapper.INSTANCE.userToUserDto(user, mock(UriInfo.class));
assertEquals("abc" , userDto.getName());
assertNotNull("expected map with links", userDto.getLinks());
}