コード例 #1
0
 // @Test
 public void testSetAccountData() throws ClassNotFoundException, SQLException {
   AccountData expected = new GoogleTalkAccountData("Joseph", "staid");
   cd2.setAccountData(expected);
   assertSame(expected.getUserID(), cd2.getUser());
   assertSame(expected.getNickname(), cd2.getAccount().getNickname());
   assertSame(expected.getServer(), cd2.getAccount().getServer());
   assertSame(expected.getPassword(), cd2.getAccount().getPassword());
 }
コード例 #2
0
 @Test
 public void testGetAccount() throws ClassNotFoundException, SQLException {
   AccountData expected =
       new GoogleTalkAccountData(
           "Rakan",
           "Rick",
           "Watching a movie",
           "1234",
           UserStateType.BUSY,
           new GoogleTalkManager(new MainController(new Model()), new Model()));
   assertSame(expected.getNickname(), cd1.getAccount().getNickname());
   assertSame(expected.getServer(), cd1.getAccount().getServer());
   assertSame(expected.getPassword(), cd1.getAccount().getPassword());
 }