@Test public void testInsert() { StudentDTO stud = new StudentDTO(); stud.setId(3); stud.setName("sok"); try { boolean create = service.create(stud); assertTrue(create); } catch (BusinessException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Test public void testDelete() { boolean deleteById = service.deleteById(3); assertTrue(deleteById); }
@Test public void testList() { List<StudentDTO> students = service.getStudents(); System.out.println(students); }