@@ -82,11 +82,6 @@ public void beforeClass() {
8282 .usePlaintext (true )
8383 .build ();
8484 blockingStubFull1 = WalletGrpc .newBlockingStub (channelFull1 );
85-
86- channelSolidity = ManagedChannelBuilder .forTarget (soliditynode )
87- .usePlaintext (true )
88- .build ();
89- blockingStubSolidity = WalletSolidityGrpc .newBlockingStub (channelSolidity );
9085 txid = PublicMethed
9186 .sendcoinGetTransactionId (contractExcAddress , 1000000000L , testNetAccountAddress ,
9287 testNetAccountKey ,
@@ -104,8 +99,8 @@ public void beforeClass() {
10499 }
105100
106101
107- @ Test (enabled = true , description = "correct signatures and address test multivalidatesign" )
108- public void test01multivalidatesign () {
102+ @ Test (enabled = true , description = "Correct data test pure multivalidatesign" )
103+ public void test01CorrectData () {
109104 PublicMethed .waitProduceNextBlock (blockingStubFull );
110105 List <Object > signatures = new ArrayList <>();
111106 List <Object > addresses = new ArrayList <>();
@@ -132,9 +127,8 @@ public void test01multivalidatesign() {
132127 }
133128
134129
135- @ Test (enabled = true , description = "incorrect address test multivalidatesign" )
136- public void test02multivalidatesign () {
137- PublicMethed .waitProduceNextBlock (blockingStubFull );
130+ @ Test (enabled = true , description = "Incorrect address test pure multivalidatesign" )
131+ public void test02IncorrectAddress () {
138132 List <Object > signatures = new ArrayList <>();
139133 List <Object > addresses = new ArrayList <>();
140134 byte [] hash = Hash .sha3 (txid .getBytes ());
@@ -159,9 +153,8 @@ public void test02multivalidatesign() {
159153
160154 }
161155
162- @ Test (enabled = true , description = "incorrect signatures test multivalidatesign" )
163- public void test03multivalidatesign () {
164- PublicMethed .waitProduceNextBlock (blockingStubFull );
156+ @ Test (enabled = true , description = "Incorrect signatures test pure multivalidatesign" )
157+ public void test03IncorrectSignatures () {
165158 List <Object > signatures = new ArrayList <>();
166159 List <Object > addresses = new ArrayList <>();
167160 byte [] hash = Hash .sha3 (txid .getBytes ());
@@ -184,8 +177,8 @@ public void test03multivalidatesign() {
184177
185178 }
186179
187- @ Test (enabled = true , description = "incorrect hash test multivalidatesign" )
188- public void test04multivalidatesign () {
180+ @ Test (enabled = true , description = "Incorrect hash test pure multivalidatesign" )
181+ public void test04IncorrectHash () {
189182 String txid = PublicMethed
190183 .sendcoinGetTransactionId (contractExcAddress , 1000000000L , testNetAccountAddress ,
191184 testNetAccountKey ,
@@ -227,8 +220,8 @@ public void test04multivalidatesign() {
227220 Assert .assertEquals ("SUCCESS" , transactionExtention .getResult ().getCode ().toString ());
228221 }
229222
230- @ Test (enabled = true , description = "Extra long addresses and signatures array test multivalidatesign" )
231- public void test05multivalidatesign () {
223+ @ Test (enabled = true , description = "Extra long addresses and signatures array test pure multivalidatesign" )
224+ public void test05ExtraLongArray () {
232225 PublicMethed .waitProduceNextBlock (blockingStubFull );
233226 List <Object > signatures = new ArrayList <>();
234227 List <Object > addresses = new ArrayList <>();
@@ -262,21 +255,15 @@ public void test05multivalidatesign() {
262255 */
263256 @ AfterClass
264257 public void shutdown () throws InterruptedException {
265- long beforeBalance = PublicMethed .queryAccount (contractExcKey , blockingStubFull ).getBalance ();
266- PublicMethed .sendcoin (testNetAccountAddress , beforeBalance , contractExcAddress , contractExcKey ,
258+ long balance = PublicMethed .queryAccount (contractExcKey , blockingStubFull ).getBalance ();
259+ PublicMethed .sendcoin (testNetAccountAddress , balance , contractExcAddress , contractExcKey ,
267260 blockingStubFull );
268- PublicMethed .waitProduceNextBlock (blockingStubFull );
269- Long afterBalancer = PublicMethed .queryAccount (contractExcKey , blockingStubFull1 ).getBalance ();
270- logger .info ("Balance:" + afterBalancer );
271261 if (channelFull != null ) {
272262 channelFull .shutdown ().awaitTermination (5 , TimeUnit .SECONDS );
273263 }
274264 if (channelFull1 != null ) {
275265 channelFull1 .shutdown ().awaitTermination (5 , TimeUnit .SECONDS );
276266 }
277- if (channelSolidity != null ) {
278- channelSolidity .shutdown ().awaitTermination (5 , TimeUnit .SECONDS );
279- }
280267 }
281268
282269 private String parametersString (List <Object > parameters ) {
0 commit comments