@Test public void deleteComposantProgrammeTest() { programmeDao.findProgramme("PROG01").getElementsFils().remove(0); composantProgrammeDao.deleteComposantProgramme( composantProgrammeDao.findComposantProgramme("SEM01")); assertEquals(0, composantProgrammeDao.findAllComposantsProgramme().size()); }
@Test public void findComposantProgrammeTest() { assertEquals("SEMESTRE 01", composantProgrammeDao.findComposantProgramme("SEM01").getNom()); assertTrue( composantProgrammeDao .findComposantProgramme("SEM01") .getElementsPere() .contains(programmeDao.findProgramme("PROG01"))); }