use of io.gravitee.rest.api.portal.rest.model.FinalizeRegistrationInput in project gravitee-management-rest-api by gravitee-io.
the class UserMapperTest method testConvertFinalizeRegistrationInput.
@Test
public void testConvertFinalizeRegistrationInput() {
// init
FinalizeRegistrationInput input = new FinalizeRegistrationInput();
input.setToken(USER_TOKEN);
input.setPassword(USER_PASSWORD);
input.setFirstname(USER_FIRSTNAME);
input.setLastname(USER_LASTNAME);
// Test
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());
}
Aggregations