Search in sources :

Example 1 with FinalizeRegistrationInput

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());
}
Also used : FinalizeRegistrationInput(io.gravitee.rest.api.portal.rest.model.FinalizeRegistrationInput) RegisterUserEntity(io.gravitee.rest.api.model.RegisterUserEntity) Test(org.junit.Test)

Aggregations

RegisterUserEntity (io.gravitee.rest.api.model.RegisterUserEntity)1 FinalizeRegistrationInput (io.gravitee.rest.api.portal.rest.model.FinalizeRegistrationInput)1 Test (org.junit.Test)1