Exemplo n.º 1
0
  // Case 1:
  //		the new username doesn't exist and is valid
  //		the new email doesn't exist
  @Test
  public void success() throws Exception {

    SDIdImpl id = new SDIdImpl();

    id.createUser(USERNAME, EMAIL);

    UserAccount user = getUserAccountByUsername(id, USERNAME);

    assertNotNull("User was not created correctly.", user);
    assertEquals("Created user's Username is not correct.", user.getUserId(), USERNAME);
    assertEquals("Created user's Email is not correct.", user.getEmail(), EMAIL);
  }