Search in sources :

Example 6 with Sensitive

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

the class SensitiveServiceTest method addTest.

@Test
public void addTest() {
    Sensitive sen = sensitiveService.add(sensitive);
    Assert.assertNotNull("添加失败", sen.getId());
}
Also used : Sensitive(com.bc.pmpheep.back.po.Sensitive) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest)

Example 7 with Sensitive

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

the class SensitiveServiceTest method updateIsDeletedTest.

@Test
public void updateIsDeletedTest() {
    Sensitive sen = sensitiveService.add(sensitive);
    Long[] id = { sen.getId() };
    String result = sensitiveService.deletedIsDeleted(id);
    Assert.assertTrue("删除失败", result.equals("SUCCESS"));
}
Also used : Sensitive(com.bc.pmpheep.back.po.Sensitive) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest)

Aggregations

Sensitive (com.bc.pmpheep.back.po.Sensitive)7 BaseTest (com.bc.pmpheep.test.BaseTest)4 Test (org.junit.Test)4 PageParameter (com.bc.pmpheep.back.plugin.PageParameter)2 LogDetail (com.bc.pmpheep.annotation.LogDetail)1 ResponseBean (com.bc.pmpheep.controller.bean.ResponseBean)1 CheckedServiceException (com.bc.pmpheep.service.exception.CheckedServiceException)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1