Search in sources :

Example 11 with User

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"));
}
Also used : Role(com.goodskill.entity.Role) UserRole(com.goodskill.entity.UserRole) User(com.goodskill.entity.User) UserRole(com.goodskill.entity.UserRole) RolePermission(com.goodskill.entity.RolePermission) Test(org.junit.jupiter.api.Test)

Aggregations

User (com.goodskill.entity.User)11 ChatMessageDto (com.goodskill.chat.dto.ChatMessageDto)2 SimpleHash (org.apache.shiro.crypto.hash.SimpleHash)2 Test (org.junit.jupiter.api.Test)2 UserBO (com.goodskill.api.bo.UserBO)1 Role (com.goodskill.entity.Role)1 RolePermission (com.goodskill.entity.RolePermission)1 UserAuthAccount (com.goodskill.entity.UserAuthAccount)1 UserRole (com.goodskill.entity.UserRole)1 Channel (io.netty.channel.Channel)1 Attribute (io.netty.handler.codec.http.multipart.Attribute)1 FileUpload (io.netty.handler.codec.http.multipart.FileUpload)1 HttpPostRequestDecoder (io.netty.handler.codec.http.multipart.HttpPostRequestDecoder)1 InterfaceHttpData (io.netty.handler.codec.http.multipart.InterfaceHttpData)1 IOException (java.io.IOException)1 Map (java.util.Map)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1