コード例 #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")));
 }