mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-12-27 10:35:59 +08:00
update 优化 重构 !pr274 简化结构 解决代码逻辑问题 规范注释
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
package com.ruoyi.test;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.ruoyi.demo.domain.TestDemo;
|
||||
import com.ruoyi.demo.mapper.TestDemoMapper;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 加密单元测试案例
|
||||
*
|
||||
* @author 老马
|
||||
* @date 2023-01-12 08:53
|
||||
*/
|
||||
@SpringBootTest
|
||||
@SaIgnore
|
||||
@DisplayName("加密测试")
|
||||
public class EncryptUnitTest {
|
||||
|
||||
@Resource
|
||||
private TestDemoMapper demoMapper;
|
||||
|
||||
@Test
|
||||
public void testCrypt() {
|
||||
TestDemo demo = new TestDemo();
|
||||
demo.setTestKey("测试的key");
|
||||
demo.setValue("测试的value");
|
||||
this.demoMapper.insert(demo);
|
||||
System.out.println(demo);
|
||||
TestDemo testDemo = this.demoMapper.selectById(demo.getId());
|
||||
System.out.println(testDemo);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user