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