mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-02 04:14:06 +08:00
【代码优化】SYSTEM:优化用户导入的实现
This commit is contained in:
@@ -430,6 +430,8 @@ public class AdminUserServiceImplTest extends BaseDbUnitTest {
|
||||
public void testImportUserList_01() {
|
||||
// 准备参数
|
||||
UserImportExcelVO importUser = randomPojo(UserImportExcelVO.class, o -> {
|
||||
o.setEmail(randomEmail());
|
||||
o.setMobile(randomMobile());
|
||||
});
|
||||
// mock 方法,模拟失败
|
||||
doThrow(new ServiceException(DEPT_NOT_FOUND)).when(deptService).validateDeptList(any());
|
||||
|
Reference in New Issue
Block a user