Skip to content

Commit 7df6086

Browse files
author
liukai
committed
feat(test): optimized import
1 parent 804ea9e commit 7df6086

7 files changed

Lines changed: 14 additions & 76 deletions

File tree

framework/src/test/java/org/tron/common/crypto/BouncyCastleTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
import org.tron.common.utils.Sha256Hash;
1414

1515
/**
16-
* The reason the test case uses the private key plaintext is to ensure that, after the ECkey tool or algorithm is upgraded, the upgraded differences can be verified.
16+
* The reason the test case uses the private key plaintext is to ensure that,
17+
* after the ECkey tool or algorithm is upgraded,
18+
* the upgraded differences can be verified.
1719
*/
1820
public class BouncyCastleTest {
1921

framework/src/test/java/org/tron/common/crypto/ECKeyTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
import org.tron.core.Wallet;
2121

2222
/**
23-
* The reason the test case uses the private key plaintext is to ensure that, after the ECkey tool or algorithm is upgraded, the upgraded differences can be verified.
23+
* The reason the test case uses the private key plaintext is to ensure that,
24+
* after the ECkey tool or algorithm is upgraded,
25+
* the upgraded differences can be verified.
2426
*/
2527
@Slf4j
2628
public class ECKeyTest {

framework/src/test/java/org/tron/common/crypto/SM2KeyTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
import org.tron.core.Wallet;
2121

2222
/**
23-
* The reason the test case uses the private key plaintext is to ensure that, after the ECkey tool or algorithm is upgraded, the upgraded differences can be verified.
23+
* The reason the test case uses the private key plaintext is to ensure that,
24+
* after the ECkey tool or algorithm is upgraded,
25+
* the upgraded differences can be verified.
2426
*/
2527
@Slf4j
2628
public class SM2KeyTest {

framework/src/test/java/org/tron/common/utils/PublicMethod.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
import com.google.gson.JsonElement;
55
import com.google.gson.JsonParser;
66
import com.google.protobuf.ByteString;
7-
87
import java.io.IOException;
98
import java.math.BigInteger;
9+
import java.net.InetAddress;
10+
import java.net.Socket;
11+
import java.util.Random;
1012
import java.util.Objects;
1113

1214
import lombok.extern.slf4j.Slf4j;
1315
import org.bouncycastle.util.encoders.Hex;
14-
import java.net.InetAddress;
15-
import java.net.Socket;
16-
import java.util.Random;
1716

1817
import org.tron.api.GrpcAPI;
1918
import org.tron.api.WalletGrpc;

framework/src/test/java/org/tron/core/actuator/ShieldedTransferActuatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import org.junit.Test;
1010
import org.tron.common.BaseTest;
1111
import org.tron.common.utils.ByteArray;
12-
import org.tron.common.utils.client.utils.TransactionUtils;
1312
import org.tron.common.utils.PublicMethod;
13+
import org.tron.common.utils.client.utils.TransactionUtils;
1414
import org.tron.common.zksnark.IncrementalMerkleTreeContainer;
1515
import org.tron.common.zksnark.IncrementalMerkleVoucherContainer;
1616
import org.tron.core.Constant;

framework/src/test/java/org/tron/core/db/ManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
import org.tron.core.store.ExchangeStore;
7979
import org.tron.core.store.ExchangeV2Store;
8080
import org.tron.core.store.IncrementalMerkleTreeStore;
81-
import org.tron.protos.Protocol;
8281
import org.tron.core.store.StoreFactory;
82+
import org.tron.protos.Protocol;
8383
import org.tron.protos.Protocol.Account;
8484
import org.tron.protos.Protocol.Block;
8585
import org.tron.protos.Protocol.Transaction;

work.sh

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)