mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	完善 TenantServiceImpl 单元测试
This commit is contained in:
		| @@ -196,7 +196,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest { | ||||
|         role100.setTenantId(dbTenant.getId()); | ||||
|         RoleDO role101 = randomPojo(RoleDO.class, o -> o.setId(101L)); | ||||
|         role101.setTenantId(dbTenant.getId()); | ||||
|         when(roleService.getRoleList(isNull())).thenReturn(asList(role100, role101)); | ||||
|         when(roleService.getRoleListByStatus(isNull())).thenReturn(asList(role100, role101)); | ||||
|         // mock 每个角色的权限 | ||||
|         when(permissionService.getRoleMenuIds(eq(101L))).thenReturn(asSet(201L, 202L)); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV