use of com.bc.pmpheep.back.po.MaterialNoticeAttachment in project pmph by BCSquad.
the class MaterialNoticeAttachmentServiceTest method testAddMaterialNoticeAttachment.
@Test
@Rollback(Const.ISROLLBACK)
public void testAddMaterialNoticeAttachment() {
MaterialNoticeAttachment materialNoticeAttachment = new MaterialNoticeAttachment();
materialNoticeAttachment.setMaterialExtraId(2L);
materialNoticeAttachment.setAttachment("--");
materialNoticeAttachment.setAttachmentName("---");
materialNoticeAttachment.setDownload(1L);
// 新增
materialNoticeAttachment = materialNoticeAttachmentService.addMaterialNoticeAttachment(materialNoticeAttachment);
Assert.assertTrue("新增失败", materialNoticeAttachment.getId() != null);
}
Aggregations