@Test public void testQueryByRoleCodes_假如不存在角色NOTHING_当传入NOTHING时_那么获取不到资源信息() { Set<Resource> resources = resourceService.queryByRoleCodes(new String[]{"NOTHING"}); Assert.assertEquals(0, resources.size()); }
@Override public Set<Resource> queryByRoleCodes(String[] roleCodes) { return resourceMapper.queryByRoleCodes(roleCodes); }
ResourceService implements IResourceService { @Override public Set<Resource> queryByRoleCodes(String[] roleCodes) { return resourceMapper.queryByRoleCodes(roleCodes); } }
ResourceService implements IResourceService { @Override public Set<Resource> queryByRoleCodes(String[] roleCodes) { return resourceMapper.queryByRoleCodes(roleCodes); }  }
ResourceService implements IResourceService { @Override public Set<Resource> queryByRoleCodes(String[] roleCodes) { return resourceMapper.queryByRoleCodes(roleCodes); }  @Override Set<Resource> findAll(); @Override Set<Resource> queryByRoleCodes(String[] roleCodes); }
ResourceService implements IResourceService { @Override public Set<Resource> queryByRoleCodes(String[] roleCodes) { return resourceMapper.queryByRoleCodes(roleCodes); }  @Override Set<Resource> findAll(); @Override Set<Resource> queryByRoleCodes(String[] roleCodes);  }