完善jmter

This commit is contained in:
yihzhou
2023-11-10 10:03:55 +08:00
parent 9af716e87d
commit 62598e0c89
6 changed files with 294 additions and 239 deletions
+9
View File
@@ -1,6 +1,7 @@
package sample;
import com.sunyard.SydApi;
import com.sunyard.proto.Util;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -40,4 +41,12 @@ public class HashTest {
public void sha256(){
api.itHash( 1, new byte[ 5 * 1024 * 1024 ]);
}
@Test
public void hex(){
String s = "MEQCICECex9ZSh6PktFDu3rkszxJ++miqXBs5uCJS2VL8lhUAiBgZSLbJAMgrpTpmRL2L/5XsWBHSoFbKI6ToSzDnbPCaQ==";
System.out.println(Util.bytes2HexString(Util.decodeBase64(s)));
System.out.println(new String(Util.decodeBase64(s)));
}
}