测试类
This commit is contained in:
parent
92f4f0be46
commit
5fa3cf64aa
|
@ -0,0 +1,30 @@
|
||||||
|
package com.hzya.frame;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.plugin.oa.praybill.service.impl.RequisitionOrderPluginServiceImpl;
|
||||||
|
import com.hzya.frame.util.AESUtil;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2025/6/11 10:20
|
||||||
|
**/
|
||||||
|
@RunWith(SpringRunner.class)
|
||||||
|
@SpringBootTest(classes = {WebappApplication.class})
|
||||||
|
public class Test1 {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private RequisitionOrderPluginServiceImpl requisitionOrderPluginService;
|
||||||
|
@Test
|
||||||
|
public void test01() {
|
||||||
|
JSONObject headers =new JSONObject();
|
||||||
|
headers.put("creator","1001P1100000000NUULI");
|
||||||
|
RequisitionOrderPluginServiceImpl service = new RequisitionOrderPluginServiceImpl();
|
||||||
|
requisitionOrderPluginService.uploadFile("-333447786976688302",headers,"8000640001","1001A3100000001B4COB");
|
||||||
|
}
|
||||||
|
}
|
|
@ -36,7 +36,7 @@ public class temButtom {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test01() {
|
public void test01() {
|
||||||
String a = AESUtil.encrypt("hzya@1314");
|
String a = AESUtil.encrypt("hzya1314");
|
||||||
System.out.println(a);
|
System.out.println(a);
|
||||||
String b = AESUtil.decrypt("62e4295b615a30dbf3b8ee96f41c820b");
|
String b = AESUtil.decrypt("62e4295b615a30dbf3b8ee96f41c820b");
|
||||||
System.out.println(b);
|
System.out.println(b);
|
||||||
|
|
Loading…
Reference in New Issue