Search in sources :

Example 11 with MaterialNoticeAttachment

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);
}
Also used : MaterialNoticeAttachment(com.bc.pmpheep.back.po.MaterialNoticeAttachment) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

MaterialNoticeAttachment (com.bc.pmpheep.back.po.MaterialNoticeAttachment)11 MaterialNoteAttachment (com.bc.pmpheep.back.po.MaterialNoteAttachment)5 CheckedServiceException (com.bc.pmpheep.service.exception.CheckedServiceException)5 BaseTest (com.bc.pmpheep.test.BaseTest)5 Test (org.junit.Test)5 Rollback (org.springframework.test.annotation.Rollback)5 Material (com.bc.pmpheep.back.po.Material)4 MaterialExtra (com.bc.pmpheep.back.po.MaterialExtra)4 CmsContent (com.bc.pmpheep.back.po.CmsContent)3 MaterialContact (com.bc.pmpheep.back.po.MaterialContact)3 MaterialExtension (com.bc.pmpheep.back.po.MaterialExtension)2 PmphUser (com.bc.pmpheep.back.po.PmphUser)2 MaterialProjectEditorVO (com.bc.pmpheep.back.vo.MaterialProjectEditorVO)2 Content (com.bc.pmpheep.general.po.Content)2 Gson (com.google.gson.Gson)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 CmsExtra (com.bc.pmpheep.back.po.CmsExtra)1 MaterialProjectEditor (com.bc.pmpheep.back.po.MaterialProjectEditor)1 MaterialType (com.bc.pmpheep.back.po.MaterialType)1