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);
}
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);
}
Aggregations