コード例 #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);
 }
コード例 #2
0
 @Test
 public void testSetPassword() {
   assertEquals("Set Password is running", testpassword, testUser.getPassword());
 }
コード例 #3
0
 @Test
 public void testGetPassword() {
   testUser.setPassword("testpassword");
   assertEquals("Get Password is running", "testpassword", testUser.getPassword());
 }