密钥值查找测试

This commit is contained in:
Cheney
2024-11-18 15:01:21 +08:00
parent 5ce75ed4ce
commit 385a2a6ecc
4 changed files with 102 additions and 0 deletions
@@ -0,0 +1,28 @@
package com.sunyard.chsm.service;
import com.sunyard.chsm.WebServerApp;
import com.sunyard.chsm.model.dto.KeyInfoDTO;
import com.sunyard.chsm.model.entity.KeyRecord;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@Slf4j
@SpringBootTest(classes = WebServerApp.class)
public class SYMEncryptControllerTest {
private static final long TEST_APP_ID = 1852232967292882946L;
private static final long TEST_KEY_ID = 1852232967292882945L;
@Autowired
private KeyRecordService keyRecordService;
@Test
void testSelectKey() {
KeyRecord key = keyRecordService.selectByKeyId(TEST_KEY_ID);
System.out.println(key);
}
}