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