完善jmter
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user