diff --git a/pom.xml b/pom.xml index ab5498d..c7f75e3 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,9 @@ 3.4.2 UTF-8 - 1.2.31 UTF-8 + 1.6 + 1.6 @@ -118,8 +119,8 @@ - 8 - 8 + 1.6 + 1.6 groovy-eclipse-compiler true true diff --git a/src/main/java/racal/sunyard/main/SydApi4j.java b/src/main/java/racal/sunyard/main/SydApi4j.java index 8dcb751..e816526 100644 --- a/src/main/java/racal/sunyard/main/SydApi4j.java +++ b/src/main/java/racal/sunyard/main/SydApi4j.java @@ -3482,8 +3482,8 @@ public class SydApi4j implements SydApi { Proto74 proto = new Proto74(); // 填充数据 - HashMap packet = new HashMap<>(); - HashMap data = new HashMap<>(); + HashMap packet = new HashMap(); + HashMap data = new HashMap(); packet.put("data", data); PacketSN sn = PacketSN.gen(); diff --git a/src/test/java/com/sunyard/sydapi/loadrunner/ShangTest.java b/src/test/java/com/sunyard/sydapi/loadrunner/ShangTest.java new file mode 100644 index 0000000..8b0a5c9 --- /dev/null +++ b/src/test/java/com/sunyard/sydapi/loadrunner/ShangTest.java @@ -0,0 +1,52 @@ +package com.sunyard.sydapi.loadrunner; + +import racal.sunyard.main.SydApi4j; +import racal.sunyard.main.SydApiBuilder; + +public class ShangTest { + + + + private static final byte[] testData = new byte[ 4 * 1024 ]; + + private SydApi4j api = null; + + public void init() throws ClassNotFoundException, IllegalAccessException, InstantiationException { + api = (SydApi4j) new SydApiBuilder() + .setIp("172.16.18.59") + .setPort( 8889 ) + .useDebugMode() + .build(); + } + + + public void hash4(){ + api.SM3Hash( testData ); + } + + public void fun1(){ +// byte[] sign = api.attachedSign(); + } + + + + public void destroy(){ + if (null != this.api ) { + this.api.disconnect(); + } + } + + + public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException { + + + System.out.println( SydApi4j.getVersion() ); + + ShangTest test = new ShangTest(); + test.init(); + test.hash4(); + test.destroy(); + + } + +}