@Test public void testReadAllTissExams() throws Exception { pendingRegistrationDao.create(tissExam); List<TissExam> tissExamList = pendingRegistrationDao.readAllTissExams(); assertFalse(tissExamList.isEmpty()); assertTrue(tissExamList.size() == 1); assertTrue(tissExamList.get(0).getName().equals("wat")); }
@Test public void testDelete() throws Exception { pendingRegistrationDao.create(tissExam); assertTrue(pendingRegistrationDao.delete(0)); assertFalse(pendingRegistrationDao.delete(0)); }
@Test public void testCreateInvalid() throws Exception { assertFalse(pendingRegistrationDao.create(null)); }
@Test public void testCreateValid() throws Exception { pendingRegistrationDao.create(tissExam); }