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