Exemple #1
0
 @Test
 public void createTest() {
   Person person = new Person();
   person.setName("Halil ibrahim");
   person.setSurname("Küley");
   personDAO.create(person);
 }
Exemple #2
0
 @Test
 public void updateTest() {
   Person person = new Person();
   person.setId(4L);
   person.setName("sevsenko");
   person.setSurname("kuley");
   personDAO.update(person);
 }
Exemple #3
0
 @Test
 public void findByIdTest() {
   Person person = personDAO.findById(1L);
   System.out.println(person.getId() + "\n" + person.getName() + "\n" + person.getSurname());
 }
Exemple #4
0
 @Test
 public void deleteTest() {
   Person person = new Person();
   person.setId(1L);
   personDAO.delete(person);
 }