use of com.bc.pmpheep.back.po.WriterRole in project pmph by BCSquad.
the class WriterUserServiceTest method testDelete.
@Test
@Rollback(Const.ISROLLBACK)
public void testDelete() {
WriterRole WriterRole = this.addWriterRole();
WriterUser writerUser = writerUserService.add(new WriterUser("test1", "123"));
WriterUserRole writerUserRole = writerUserRoleService.addWriterUserRole(new WriterUserRole(writerUser.getId(), WriterRole.getId()));
List<Long> userIdList = new ArrayList<Long>();
userIdList.add(writerUserRole.getId());
Assert.assertTrue("是否删除成功", writerUserService.deleteUserAndRole(userIdList) > 0 ? true : false);
}
Aggregations