use of com.bc.pmpheep.back.po.WriterRolePermission in project pmph by BCSquad.
the class WriterRolePermissionServiceTest method testUpdateWriterRolePermission.
@Test
@Rollback(Const.ISROLLBACK)
public void testUpdateWriterRolePermission() {
WriterRolePermission writerRolePermission = this.addWriterRolePermission();
Integer aInteger = writerRolePermissionService.updateWriterRolePermission(writerRolePermission);
Assert.assertTrue("更新成功失败", aInteger > 0 ? true : false);
}
use of com.bc.pmpheep.back.po.WriterRolePermission in project pmph by BCSquad.
the class WriterRoleServiceTest method testGetResourceRole.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetResourceRole() {
List<Long> permissionIds = new ArrayList<>();
permissionIds.add(1L);
writerRoleService.addRoleResource(new Long(2L), permissionIds);
WriterRolePermission writerRolePermission = writerRoleService.getResourceRole(2L, 1L);
Assert.assertNotNull("是否查询成功", writerRolePermission);
}
Aggregations