예제 #1
0
  @Test
  public void deleteComposantProgrammeTest() {
    programmeDao.findProgramme("PROG01").getElementsFils().remove(0);

    composantProgrammeDao.deleteComposantProgramme(
        composantProgrammeDao.findComposantProgramme("SEM01"));

    assertEquals(0, composantProgrammeDao.findAllComposantsProgramme().size());
  }
예제 #2
0
 @Test
 public void findComposantProgrammeTest() {
   assertEquals("SEMESTRE 01", composantProgrammeDao.findComposantProgramme("SEM01").getNom());
   assertTrue(
       composantProgrammeDao
           .findComposantProgramme("SEM01")
           .getElementsPere()
           .contains(programmeDao.findProgramme("PROG01")));
 }