9f87bede
岑健浩
SNManage init
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package com.example.demo;
import com.example.demo.service.SNService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.StringUtils;
import java.io.File;
import java.util.Date;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class SNManageApplicationTest {
@Autowired
SNService snService;
@Value("${SN.file.path}")
String SNFilePath;
@Value("${SN.file.temp.path}")
String SNTempFilePath;
@Test
public void test() throws Exception {
String encryptedSN = "c24x";
snService.deleteSN(encryptedSN);
}
}
|