use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testAddWriterUserService.
@Test
@Rollback(Const.ISROLLBACK)
public void testAddWriterUserService() {
WriterUser writerUser = this.addWriterUser();
Assert.assertNotNull("不否保存成功", writerUser.getId());
// logger.info("添加了{}", writerUser.toString());
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testUpdateWriterUserById.
@Test
@Rollback(Const.ISROLLBACK)
public void testUpdateWriterUserById() {
WriterUser writerUser = this.addWriterUser();
writerUser.setPassword("1111");
writerUser = writerUserService.update(writerUser);
Assert.assertNotNull("是否更新成功", writerUser);
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testUpdatePmphUserTest.
// @Test
// @Rollback(Const.ISROLLBACK)
// public void testLogin(){
// WriterUser writerUser=this.addWriterUser();
// Assert.assertNotNull("获取失败",writerUserService.login("user1","123"));// 查询所有
// }
// @Test
// @Rollback(Const.ISROLLBACK)
// public void testGetByUsernameAndPassword() {
// WriterUser writerUser=this.addWriterUser();
// writerUser = writerUserService.getByUsernameAndPassword(writerUser.getUsername(),
// writerUser.getPassword());// 按UserName
// Assert.assertNotNull("获取失败",writerUser);
// }
/**
* PmphUser 更新方法
*/
@Test
@Rollback(Const.ISROLLBACK)
public void testUpdatePmphUserTest() {
WriterUser writerUser = this.addWriterUser();
List<Long> userIdList = new ArrayList<Long>();
userIdList.add(1L);
userIdList.add(2L);
writerUser.setRealname("姓名");
writerUser.setPassword("1234");
WriterUser pu = writerUserService.update(writerUser);
Assert.assertNotNull("是否更新成功", pu);
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testGetListByRole.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetListByRole() {
WriterUser writerUser = this.addWriterUser();
// 查询所有
Assert.assertNotNull("查询失败", writerUserService.getListByRole(writerUser.getId()));
}
use of com.bc.pmpheep.back.po.WriterUser in project pmph by BCSquad.
the class WriterUserServiceTest method testGetListWriterUserVO.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetListWriterUserVO() {
WriterUser writerUser = this.addWriterUser();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterUserManagerVO managerVO = new WriterUserManagerVO();
pageParameter.setParameter(managerVO);
pageParameter.setPageSize(15);
pageResult = writerUserService.getListWriterUser(pageParameter, null);
Assert.assertNotNull("是否查询成功", pageResult);
// logger.info("查找成功{}", pageResult);
}
Aggregations