Search in sources :

Example 6 with WriterUserCertification

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

the class WriterUserCertificationServiceTest method testDeleteWriterUserCertificationById.

@Test
@Rollback(Const.ISROLLBACK)
public void testDeleteWriterUserCertificationById() {
    WriterUserCertification writerUserCertification = this.addWriterUserCertification();
    Assert.assertTrue("删除失败", writerUserCertificationService.deleteWriterUserCertificationById(writerUserCertification.getId()) >= 0);
}
Also used : WriterUserCertification(com.bc.pmpheep.back.po.WriterUserCertification) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Example 7 with WriterUserCertification

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

the class WriterUserCertificationServiceTest method testUpdateWriterUserCertification.

@Test
@Rollback(Const.ISROLLBACK)
public void testUpdateWriterUserCertification() {
    WriterUserCertification writerUserCertification = this.addWriterUserCertification();
    writerUserCertification.setIdcard("12345678");
    Assert.assertTrue("更新失败", writerUserCertificationService.updateWriterUserCertification(writerUserCertification) > 0);
}
Also used : WriterUserCertification(com.bc.pmpheep.back.po.WriterUserCertification) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

WriterUserCertification (com.bc.pmpheep.back.po.WriterUserCertification)7 BaseTest (com.bc.pmpheep.test.BaseTest)5 Test (org.junit.Test)5 Rollback (org.springframework.test.annotation.Rollback)5 Org (com.bc.pmpheep.back.po.Org)1 OrgUser (com.bc.pmpheep.back.po.OrgUser)1 PmphUser (com.bc.pmpheep.back.po.PmphUser)1 WriterUser (com.bc.pmpheep.back.po.WriterUser)1 CheckedServiceException (com.bc.pmpheep.service.exception.CheckedServiceException)1 IOException (java.io.IOException)1 Timestamp (java.sql.Timestamp)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1