コード例 #1
0
  public void testGetUser() {

    UserData expected = new GoogleTalkUserData("Rakan", "Rick", "1234", UserStateType.AWAY, false);
    assertSame(expected.getUserID(), cd1.getUser().getUserID());
    assertSame(expected.getNickname(), cd1.getUser().getNickname());
    assertSame(expected.getStatus(), cd1.getUser().getStatus());
  }
コード例 #2
0
 @Test
 public void testSetUser() {
   UserData expected =
       new GoogleTalkUserData("Meryam", "Faris", "idle", UserStateType.OFFLINE, true);
   cd2.setUser(expected);
   assertSame(expected.getUserID(), cd2.getUser().getUserID());
   assertSame(expected.getNickname(), cd2.getUser().getNickname());
   assertSame(expected.getStatus(), cd2.getUser().getStatus());
 }