I want to implement continuous integration in my project but I have some doubts, suppose we have this:
public boolean sumar(Persona person) {
int result = 0;
List<Personas> personas = null;
try {
jdbcService.save(Personas.class, person);
personas = jdbcService.list(Personas.class);
result = utilsService.sum(personas);
} catch (SQLException e) {
e.printStackTrace();
}
return result;
}
- How would you do to try the 3 methods with Mock
- What is the difference between test unit and integration?