use of com.goodskill.entity.UserRole in project goodsKill by techa03.
the class UserRoleServiceImpl method list.
@Override
public List<UserRole> list(Integer id) {
UserRole query = new UserRole();
query.setUserId(id);
return super.list(new QueryWrapper<>(query));
}
use of com.goodskill.entity.UserRole in project goodsKill by techa03.
the class UserAccountServiceImplTest method findPermissions.
@Test
public void findPermissions() {
when(baseMapper.selectList(any())).thenReturn(Lists.newArrayList(new User()));
when(userRoleMapper.selectList(any())).thenReturn(Lists.newArrayList(new UserRole()));
when(roleMapper.selectById(any())).thenReturn(new Role());
when(rolePermissionMapper.selectList(any())).thenReturn(Lists.newArrayList(new RolePermission()));
assertNotNull(userAccountService.findPermissions("1"));
}
Aggregations