mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-07-22 23:33:01 +08:00
删除过期的测试
This commit is contained in:
parent
a3118bd8b6
commit
1723555606
@ -1,33 +0,0 @@
|
|||||||
package top.suyiiyii.sims.mapper;
|
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
|
||||||
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.User;
|
|
||||||
|
|
||||||
@SpringBootTest
|
|
||||||
@ActiveProfiles("test")
|
|
||||||
public class UserMapperTest {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private MpUserMapper userMapper;
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testAddUser() {
|
|
||||||
User user = new User();
|
|
||||||
user.setStudentId(1);
|
|
||||||
user.setUsername("test");
|
|
||||||
user.setPassword("test");
|
|
||||||
user.setEmail("test");
|
|
||||||
user.setGrade("test");
|
|
||||||
user.setUserGroup("test");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int result = userMapper.insert(user);
|
|
||||||
Assertions.assertEquals(1, result);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user