@Test public void testGetProgramStageSectionById() { int idA = programStageSectionService.saveProgramStageSection(sectionA); int idB = programStageSectionService.saveProgramStageSection(sectionB); assertEquals(sectionA, programStageSectionService.getProgramStageSection(idA)); assertEquals(sectionB, programStageSectionService.getProgramStageSection(idB)); }
@Test public void testSaveProgramStageSection() { int idA = programStageSectionService.saveProgramStageSection(sectionA); int idB = programStageSectionService.saveProgramStageSection(sectionB); assertNotNull(programStageSectionService.getProgramStageSection(idA)); assertNotNull(programStageSectionService.getProgramStageSection(idB)); }
@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()); }