use of com.bc.pmpheep.back.po.WriterRole in project pmph by BCSquad.
the class WriterRoleServiceTest method testUpdate.
@Test
@Rollback(Const.ISROLLBACK)
public void testUpdate() {
WriterRole writerRole = this.addWriterRole();
int num = -1;
WriterRole writerRole2 = new WriterRole("角色2", false, null, null, null, null);
writerRole2.setId(writerRole.getId());
num = writerRoleService.update(writerRole2);
Assert.assertTrue("是否更新成功", num > 0 ? true : false);
}
use of com.bc.pmpheep.back.po.WriterRole in project pmph by BCSquad.
the class WriterRoleServiceTest method testGet.
@Test
@Rollback(Const.ISROLLBACK)
public void testGet() {
WriterRole writerRole = this.addWriterRole();
Assert.assertNotNull("是否查询成功", writerRoleService.get(writerRole.getId()));
}
use of com.bc.pmpheep.back.po.WriterRole in project pmph by BCSquad.
the class WriterRoleServiceTest method testGetListRole.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetListRole() {
WriterRole writerRole = this.addWriterRole();
List<WriterRole> list = writerRoleService.getListRole(null);
Assert.assertNotNull("是否查询成功", list);
}
use of com.bc.pmpheep.back.po.WriterRole in project pmph by BCSquad.
the class WriterRoleServiceTest method testGetListRoleResource.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetListRoleResource() {
WriterRole writerRole = this.addWriterRole();
List<WriterPermission> list = writerRoleService.getListRoleResource(writerRole.getId());
Assert.assertNotNull("是否查询成功", list);
List<WriterRolePermission> list1 = writerRoleService.getListWriterRolePermission(writerRole.getId());
Assert.assertNotNull("是否查询成功", list1);
List<Long> ids = writerRoleService.getListPmphWriterPermissionIdByRoleId(writerRole.getId());
Assert.assertNotNull("是否查询成功", ids);
}
use of com.bc.pmpheep.back.po.WriterRole in project pmph by BCSquad.
the class WriterRoleServiceTest method testDelete.
@Test
@Rollback(Const.ISROLLBACK)
public void testDelete() {
WriterRole writerRole = this.addWriterRole();
int num = -1;
num = writerRoleService.delete(writerRole.getId());
Assert.assertTrue("是否删除", num > 0 ? true : false);
}
Aggregations