mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-03 12:56:10 +08:00
修复测试配置
This commit is contained in:
parent
c24be4181c
commit
92bdc11412
@ -5,4 +5,5 @@ spring:
|
||||
username:
|
||||
password:
|
||||
|
||||
|
||||
jwt:
|
||||
secret: SuyiiyiiiiiiyiiiiTTTTTTTTTTTestttttttttttttt
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user