@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); }
@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); }