use of com.bc.pmpheep.back.po.DecResearch in project pmph by BCSquad.
the class DecResearchServiceTest method add.
private DecResearch add() {
DecResearch decResearch = new DecResearch();
decResearch.setDeclarationId(2L);
decResearch.setResearchName("催眠治疗");
decResearch.setApprovalUnit("催眠协会");
decResearch.setAward("二等奖");
decResearch.setNote("催眠治疗的效果研究");
decResearch.setSort(45);
decResearchService.addDecResearch(decResearch);
DecResearch decResearch2 = new DecResearch(2L, "儿童智力成长", "发展心理学研究会", "三等奖", "智力成长的阶段性研究", null);
decResearchService.addDecResearch(decResearch2);
DecResearch decResearch3 = new DecResearch(9L, "脑电波活动", "脑科学协会", "一等奖", null, 1);
decResearchService.addDecResearch(decResearch3);
return decResearch3;
}
use of com.bc.pmpheep.back.po.DecResearch in project pmph by BCSquad.
the class DecResearchServiceTest method testAddDecResearch.
@Test
@Rollback(Const.ISROLLBACK)
public void testAddDecResearch() {
DecResearch decResearch = new DecResearch();
decResearch.setDeclarationId(1L);
decResearch.setResearchName("心理防御机制的负面作用");
decResearch.setApprovalUnit("心理协会");
decResearch.setAward("一等奖");
decResearch = decResearchService.addDecResearch(decResearch);
Assert.assertTrue("添加数据失败", decResearch.getId() > 0);
}
Aggregations