use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testGet.
@Test
public void testGet() {
WriterUser writerUser = this.addWriterUser();
WriterUser writerUser1 = new WriterUser();
writerUser1.setRealname("姓名");
writerUser1 = writerUserService.get(writerUser.getId());
Assert.assertNotNull("是否查询成功", writerUser1);
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testGetWriterUserListByOrgIds.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetWriterUserListByOrgIds() {
WriterUser writerUser = writerUserService.add(new WriterUser("test00", "123", false, 1L, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, false, null, null, null, null, false, false, null, null, null, null, false, null, null));
List<Long> orgIds = new ArrayList<Long>();
orgIds.add(writerUser.getOrgId());
List<WriterUser> list = writerUserService.getWriterUserListByOrgIds(orgIds);
Assert.assertTrue("获取数据失败", list.size() > 0);
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testDeleteWriterUserServiceById.
@Test
@Rollback(Const.ISROLLBACK)
public void testDeleteWriterUserServiceById() {
WriterUser writerUser = this.addWriterUser();
Assert.assertNotNull("删除失败", writerUserService.delete(writerUser.getId()));
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testDeletePmphUserTest.
/**
* PmphUser 添加删除
*/
@Test
@Rollback(Const.ISROLLBACK)
public void testDeletePmphUserTest() {
WriterUser writerUser = this.addWriterUser();
Assert.assertTrue("删除失败", writerUserService.delete(writerUser.getId()) > 0);
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserTest method testAddList.
@Test
@Rollback(Const.ISROLLBACK)
public void testAddList() {
WriterUser writerUser = this.addWriterUser();
List<Long> allList = new ArrayList<>();
allList.add(1L);
allList.add(1L);
allList.add(2L);
allList.add(3L);
// 给单用户添加多个角色
WriterUser ps = userService.add(new WriterUser("test1", "123"), allList);
Assert.assertNotNull(ps);
}
Aggregations