@Test public void testConvertFinalizeRegistrationInput() { FinalizeRegistrationInput input = new FinalizeRegistrationInput(); input.setToken(USER_TOKEN); input.setPassword(USER_PASSWORD); input.setFirstname(USER_FIRSTNAME); input.setLastname(USER_LASTNAME); RegisterUserEntity registerUserEntity = userMapper.convert(input); assertNotNull(registerUserEntity); assertEquals(USER_TOKEN, registerUserEntity.getToken()); assertEquals(USER_PASSWORD, registerUserEntity.getPassword()); assertEquals(USER_FIRSTNAME, registerUserEntity.getFirstname()); assertEquals(USER_LASTNAME, registerUserEntity.getLastname()); }
public User convert(UserEntity user) { final User userItem = new User(); userItem.setEmail(user.getEmail()); userItem.setFirstName(user.getFirstname()); userItem.setLastName(user.getLastname()); userItem.setDisplayName(user.getDisplayName()); userItem.setId(user.getId()); userItem.setCustomFields(user.getCustomFields()); return userItem; }
UserMapper { public User convert(UserEntity user) { final User userItem = new User(); userItem.setEmail(user.getEmail()); userItem.setFirstName(user.getFirstname()); userItem.setLastName(user.getLastname()); userItem.setDisplayName(user.getDisplayName()); userItem.setId(user.getId()); userItem.setCustomFields(user.getCustomFields()); return userItem; } }
UserMapper { public User convert(UserEntity user) { final User userItem = new User(); userItem.setEmail(user.getEmail()); userItem.setFirstName(user.getFirstname()); userItem.setLastName(user.getLastname()); userItem.setDisplayName(user.getDisplayName()); userItem.setId(user.getId()); userItem.setCustomFields(user.getCustomFields()); return userItem; }  }
UserMapper { public User convert(UserEntity user) { final User userItem = new User(); userItem.setEmail(user.getEmail()); userItem.setFirstName(user.getFirstname()); userItem.setLastName(user.getLastname()); userItem.setDisplayName(user.getDisplayName()); userItem.setId(user.getId()); userItem.setCustomFields(user.getCustomFields()); return userItem; }  User convert(UserEntity user); User convert(SearchableUser user); NewExternalUserEntity convert(RegisterUserInput input); RegisterUserEntity convert(FinalizeRegistrationInput input); UserLinks computeUserLinks(String basePath, Date updateDate); }
UserMapper { public User convert(UserEntity user) { final User userItem = new User(); userItem.setEmail(user.getEmail()); userItem.setFirstName(user.getFirstname()); userItem.setLastName(user.getLastname()); userItem.setDisplayName(user.getDisplayName()); userItem.setId(user.getId()); userItem.setCustomFields(user.getCustomFields()); return userItem; }  User convert(UserEntity user); User convert(SearchableUser user); NewExternalUserEntity convert(RegisterUserInput input); RegisterUserEntity convert(FinalizeRegistrationInput input); UserLinks computeUserLinks(String basePath, Date updateDate);  }