Search in sources :

Example 11 with DecAcade

use of com.bc.pmpheep.back.po.DecAcade in project pmph by BCSquad.

the class DecAcadeServiceTest method testAddDecAcade.

@Test
@Rollback(Const.ISROLLBACK)
public void testAddDecAcade() {
    DecAcade decAcade = new DecAcade(3L, "神经科学研究会", 1, "会长", "名誉会长", 21);
    decAcade = decAcadeService.addDecAcade(decAcade);
    Assert.assertTrue("添加数据失败", decAcade.getId() > 0);
}
Also used : DecAcade(com.bc.pmpheep.back.po.DecAcade) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Example 12 with DecAcade

use of com.bc.pmpheep.back.po.DecAcade in project pmph by BCSquad.

the class DecAcadeServiceTest method testUpdateDecAcade.

@Test
@Rollback(Const.ISROLLBACK)
public void testUpdateDecAcade() {
    DecAcade decAcade = add();
    decAcade.setDeclarationId(2L);
    decAcade.setRank(1);
    Integer count = decAcadeService.updateDecAcade(decAcade);
    Assert.assertTrue("数据更新失败", count > 0);
}
Also used : DecAcade(com.bc.pmpheep.back.po.DecAcade) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

DecAcade (com.bc.pmpheep.back.po.DecAcade)12 DecCourseConstruction (com.bc.pmpheep.back.po.DecCourseConstruction)5 DecEduExp (com.bc.pmpheep.back.po.DecEduExp)5 DecLastPosition (com.bc.pmpheep.back.po.DecLastPosition)5 DecNationalPlan (com.bc.pmpheep.back.po.DecNationalPlan)5 DecResearch (com.bc.pmpheep.back.po.DecResearch)5 DecTeachExp (com.bc.pmpheep.back.po.DecTeachExp)5 DecTextbook (com.bc.pmpheep.back.po.DecTextbook)5 DecWorkExp (com.bc.pmpheep.back.po.DecWorkExp)5 ArrayList (java.util.ArrayList)5 DecAcadeReward (com.bc.pmpheep.back.po.DecAcadeReward)4 DecAchievement (com.bc.pmpheep.back.po.DecAchievement)4 DecClinicalReward (com.bc.pmpheep.back.po.DecClinicalReward)4 DecIntention (com.bc.pmpheep.back.po.DecIntention)4 DecMonograph (com.bc.pmpheep.back.po.DecMonograph)4 DecMoocDigital (com.bc.pmpheep.back.po.DecMoocDigital)4 DecPublishReward (com.bc.pmpheep.back.po.DecPublishReward)4 DecSci (com.bc.pmpheep.back.po.DecSci)4 DecTextbookPmph (com.bc.pmpheep.back.po.DecTextbookPmph)4 DecExtensionVO (com.bc.pmpheep.back.vo.DecExtensionVO)4