コード例 #1
0
 @Test
 public void testLogonPasswordNoUpper() {
   String userId = "Fred";
   String password = "******";
   Security s = new Security();
   SecurityStatus ss = s.logon(userId, password);
   boolean expected = false;
   boolean actual = ss.isSuccess();
   assertEquals(ss.getErrMessage(), expected, actual);
 }
コード例 #2
0
 @Test
 public void testLogonGoodCombination() {
   String userId = "Fred";
   String password = "******";
   Security s = new Security();
   SecurityStatus ss = s.logon(userId, password);
   boolean expected = true;
   boolean actual = ss.isSuccess();
   assertEquals(ss.getErrMessage(), expected, actual);
 }