mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-05 13:36:12 +08:00
修复测试配置
This commit is contained in:
parent
c24be4181c
commit
92bdc11412
@ -5,4 +5,5 @@ spring:
|
|||||||
username:
|
username:
|
||||||
password:
|
password:
|
||||||
|
|
||||||
|
jwt:
|
||||||
|
secret: SuyiiyiiiiiiyiiiiTTTTTTTTTTTestttttttttttttt
|
||||||
|
@ -3,6 +3,7 @@ package top.suyiiyii.sims.service;
|
|||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
import org.springframework.test.context.ActiveProfiles;
|
||||||
import top.suyiiyii.sims.entity.Role;
|
import top.suyiiyii.sims.entity.Role;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -10,6 +11,7 @@ import java.util.List;
|
|||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
|
@ActiveProfiles("test")
|
||||||
class RbacServiceTest {
|
class RbacServiceTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
Loading…
x
Reference in New Issue
Block a user