Search in sources :

Example 6 with AuthRole

use of com.besscroft.aurora.mall.common.entity.AuthRole in project aurora-mall by besscroft.

the class RoleServiceTest method updateRole.

@Test
void updateRole() {
    AuthRole role = AuthRole.builder().id(100L).name("单元测试角色").description("单元测试专用").createTime(LocalDateTime.now()).status(0).sort(10L).del(1).build();
    boolean b = roleService.updateRole(role);
    assertTrue(b, "角色更新失败!");
}
Also used : AuthRole(com.besscroft.aurora.mall.common.entity.AuthRole) Test(org.junit.jupiter.api.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

AuthRole (com.besscroft.aurora.mall.common.entity.AuthRole)6 Test (org.junit.jupiter.api.Test)3 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)3 Transactional (org.springframework.transaction.annotation.Transactional)3 ServiceImpl (com.baomidou.mybatisplus.extension.service.impl.ServiceImpl)2 AuthRoleMapper (com.besscroft.aurora.mall.admin.mapper.AuthRoleMapper)2 AuthConstants (com.besscroft.aurora.mall.common.constant.AuthConstants)2 AuthUser (com.besscroft.aurora.mall.common.entity.AuthUser)2 PageHelper (com.github.pagehelper.PageHelper)2 LocalDateTime (java.time.LocalDateTime)2 Collectors (java.util.stream.Collectors)2 RequiredArgsConstructor (lombok.RequiredArgsConstructor)2 Slf4j (lombok.extern.slf4j.Slf4j)2 RedisTemplate (org.springframework.data.redis.core.RedisTemplate)2 Service (org.springframework.stereotype.Service)2 CollUtil (cn.hutool.core.collection.CollUtil)1 StrUtil (cn.hutool.core.util.StrUtil)1 JSONUtil (cn.hutool.json.JSONUtil)1 EasyExcel (com.alibaba.excel.EasyExcel)1 QueryWrapper (com.baomidou.mybatisplus.core.conditions.query.QueryWrapper)1