Exemplo n.º 1
0
 @Test
 public void findAllEmployees() {
   Assert.assertEquals(employeeDao.findAllEmployees().size(), 2);
 }
Exemplo n.º 2
0
 @Test
 public void deleteEmployeeBySsn() {
   employeeDao.deleteEmployeeBySsn("11111");
   Assert.assertEquals(employeeDao.findAllEmployees().size(), 1);
 }
Exemplo n.º 3
0
 @Test
 public void deleteEmployeeByInvalidSsn() {
   employeeDao.deleteEmployeeBySsn("23423");
   Assert.assertEquals(employeeDao.findAllEmployees().size(), 2);
 }
Exemplo n.º 4
0
 @Test
 public void saveEmployee() {
   employeeDao.saveEmployee(getSampleEmployee());
   Assert.assertEquals(employeeDao.findAllEmployees().size(), 3);
 }