Exemplo n.º 1
0
 @Test
 public void testUserStringStringString() {
   testUser = new User("username", "password", "usertype");
   if (testUser.getUsername() == "username"
       && testUser.getPassword() == "password"
       && testUser.getUsertype() == "usertype") {
     assertTrue(true);
   } else assertTrue(false);
 }
Exemplo n.º 2
0
 @Test
 public void testSetPassword() {
   assertEquals("Set Password is running", testpassword, testUser.getPassword());
 }
Exemplo n.º 3
0
 @Test
 public void testGetPassword() {
   testUser.setPassword("testpassword");
   assertEquals("Get Password is running", "testpassword", testUser.getPassword());
 }