use of com.goodskill.entity.User 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