コード例 #1
0
  @Test
  public void testUpdateProgramStageSection() {
    int idA = programStageSectionService.saveProgramStageSection(sectionA);

    assertNotNull(programStageSectionService.getProgramStageSection(idA));

    sectionA.setName("B");
    programStageSectionService.updateProgramStageSection(sectionA);

    assertEquals("B", programStageSectionService.getProgramStageSection(idA).getName());
  }
コード例 #2
0
  @Test
  public void testGetProgramStageSectionById() {
    int idA = programStageSectionService.saveProgramStageSection(sectionA);
    int idB = programStageSectionService.saveProgramStageSection(sectionB);

    assertEquals(sectionA, programStageSectionService.getProgramStageSection(idA));
    assertEquals(sectionB, programStageSectionService.getProgramStageSection(idB));
  }
コード例 #3
0
  @Test
  public void testSaveProgramStageSection() {
    int idA = programStageSectionService.saveProgramStageSection(sectionA);
    int idB = programStageSectionService.saveProgramStageSection(sectionB);

    assertNotNull(programStageSectionService.getProgramStageSection(idA));
    assertNotNull(programStageSectionService.getProgramStageSection(idB));
  }