Пример #1
0
 @Before
 public void setUp() throws Exception {
   testUser = new User();
   testUser.setPassword(testpassword);
   testUser.setUsername(testusername);
   testUser.setUsertype(testusertype);
 }
Пример #2
0
 @Test
 public void testGetPassword() {
   testUser.setPassword("testpassword");
   assertEquals("Get Password is running", "testpassword", testUser.getPassword());
 }