修复测试配置

This commit is contained in:
suyiiyii 2024-08-25 00:01:54 +08:00
parent c24be4181c
commit 92bdc11412
2 changed files with 4 additions and 1 deletions

View File

@ -5,4 +5,5 @@ spring:
username:
password:
jwt:
secret: SuyiiyiiiiiiyiiiiTTTTTTTTTTTestttttttttttttt

View File

@ -3,6 +3,7 @@ package top.suyiiyii.sims.service;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import top.suyiiyii.sims.entity.Role;
import java.util.List;
@ -10,6 +11,7 @@ import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
@SpringBootTest
@ActiveProfiles("test")
class RbacServiceTest {
@Autowired