Search in sources :

Example 6 with WriterProfile

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

the class WriterProfileServiceTest method testDeleteWriterProfileById.

@Test
@Rollback(Const.ISROLLBACK)
public void testDeleteWriterProfileById() {
    WriterProfile writerProfile = new WriterProfile(4L, "物理学专家,机械工程学教授", "科研大赛冠军");
    writerProfileService.addWriterProfile(writerProfile);
    writerProfile.setId(writerProfile.getId());
    Assert.assertTrue("删除数据失败", writerProfileService.deleteWriterProfileById(writerProfile.getId()) >= 0);
}
Also used : WriterProfile(com.bc.pmpheep.back.po.WriterProfile) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

WriterProfile (com.bc.pmpheep.back.po.WriterProfile)6 BaseTest (com.bc.pmpheep.test.BaseTest)4 Test (org.junit.Test)4 Rollback (org.springframework.test.annotation.Rollback)4 WriterUser (com.bc.pmpheep.back.po.WriterUser)1 DesRun (com.bc.pmpheep.back.util.DesRun)1 CheckedServiceException (com.bc.pmpheep.service.exception.CheckedServiceException)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1