降低版本到 1.6
This commit is contained in:
parent
1ee72d1591
commit
7b0124c877
7
pom.xml
7
pom.xml
@ -13,8 +13,9 @@
|
||||
<properties>
|
||||
<vertx>3.4.2</vertx>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<kotlin.version>1.2.31</kotlin.version>
|
||||
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
||||
<maven.compiler.source>1.6</maven.compiler.source>
|
||||
<maven.compiler.target>1.6</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@ -118,8 +119,8 @@
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<source>8</source>
|
||||
<target>8</target>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<compilerId>groovy-eclipse-compiler</compilerId>
|
||||
<verbose>true</verbose>
|
||||
<fork>true</fork>
|
||||
|
||||
@ -3482,8 +3482,8 @@ public class SydApi4j implements SydApi {
|
||||
Proto74 proto = new Proto74();
|
||||
|
||||
// 填充数据
|
||||
HashMap<String, Object> packet = new HashMap<>();
|
||||
HashMap<String, Object> data = new HashMap<>();
|
||||
HashMap<String, Object> packet = new HashMap<String, Object>();
|
||||
HashMap<String, Object> data = new HashMap<String, Object>();
|
||||
packet.put("data", data);
|
||||
|
||||
PacketSN sn = PacketSN.gen();
|
||||
|
||||
52
src/test/java/com/sunyard/sydapi/loadrunner/ShangTest.java
Normal file
52
src/test/java/com/sunyard/sydapi/loadrunner/ShangTest.java
Normal file
@ -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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user