Ejemplo n.º 1
0
 @Test
 public void testExists() {
   // assertTrue(manager.accountExists("Patrick"));
   // assertTrue(manager.accountExists("Molly"));
   assertTrue(!manager.accountExists("NotHere"));
   assertTrue(!manager.accountExists(""));
 }
Ejemplo n.º 2
0
 @Test
 public void testCreate() {
   assertTrue(manager.createAccount("Testing", "create"));
   assertTrue(manager.checkPassword("Testing", "create"));
   assertTrue(manager.accountExists("Testing"));
   assertTrue(!manager.createAccount("Testing", "differentCreate"));
   // assertTrue(!manager.createAccount("Patrick", "newPassword"));
   // assertTrue(!manager.checkPassword("Patrick", "newPassword"));
   // assertTrue(manager.checkPassword("Patrick", "1234"));
 }
Ejemplo n.º 3
0
 @Test
 public void testPassword() {
   // assertTrue(manager.checkPassword("Patrick", "1234"));
   // assertTrue(manager.checkPassword("Molly", "FloPup"));
   // assertTrue(!manager.checkPassword("Molly", "Flopup"));
   assertTrue(!manager.checkPassword("asdf", ""));
 }