mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
禅道#934修复
This commit is contained in:
+2
-2
@@ -377,7 +377,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest {
|
||||
when(tenantProperties.getEnable()).thenReturn(false);
|
||||
|
||||
// 调用
|
||||
tenantService.handleOrganInfo(handler);
|
||||
tenantService.handleOrganInfo(handler, null);
|
||||
// 断言
|
||||
verify(handler, never()).handle(any());
|
||||
}
|
||||
@@ -394,7 +394,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest {
|
||||
OrganContextHolder.setOrganId(dbTenant.getId());
|
||||
|
||||
// 调用
|
||||
tenantService.handleOrganInfo(handler);
|
||||
tenantService.handleOrganInfo(handler, null);
|
||||
// 断言
|
||||
verify(handler).handle(argThat(argument -> {
|
||||
assertPojoEquals(dbTenant, argument);
|
||||
|
||||
+2
-2
@@ -92,7 +92,7 @@ public class AdminUserServiceImplTest extends BaseDbUnitTest {
|
||||
doNothing().when(tenantService).handleOrganInfo(argThat(handler -> {
|
||||
handler.handle(tenant);
|
||||
return true;
|
||||
}));
|
||||
}), null);
|
||||
// mock deptService 的方法
|
||||
DeptDO dept = randomPojo(DeptDO.class, o -> {
|
||||
o.setId(reqVO.getDeptId());
|
||||
@@ -129,7 +129,7 @@ public class AdminUserServiceImplTest extends BaseDbUnitTest {
|
||||
doNothing().when(tenantService).handleOrganInfo(argThat(handler -> {
|
||||
handler.handle(tenant);
|
||||
return true;
|
||||
}));
|
||||
}), null);
|
||||
|
||||
// 调用,并断言异常
|
||||
assertServiceException(() -> userService.createUser(reqVO), USER_COUNT_MAX, -1);
|
||||
|
||||
Reference in New Issue
Block a user