@@ -24,7 +24,8 @@ public class HttpTestAccount002 {
2424 private HttpResponse response ;
2525 private String httpnode = Configuration .getByPath ("testng.conf" ).getStringList ("httpnode.ip.list" )
2626 .get (1 );
27- private String httpSoliditynode = Configuration .getByPath ("testng.conf" ).getStringList ("httpnode.ip.list" ).get (2 );
27+ private String httpSoliditynode = Configuration .getByPath ("testng.conf" )
28+ .getStringList ("httpnode.ip.list" ).get (2 );
2829
2930 ECKey ecKey1 = new ECKey (Utils .getRandom ());
3031 byte [] freezeBalanceAddress = ecKey1 .getAddress ();
@@ -43,7 +44,7 @@ public class HttpTestAccount002 {
4344 * constructor.
4445 */
4546 @ Test (enabled = true , description = "FreezeBalance for bandwidth by http" )
46- public void test1FreezebalanceForBandwidth () {
47+ public void test01FreezebalanceForBandwidth () {
4748 PublicMethed .printAddress (freezeBalanceKey );
4849 //Send trx to test account
4950 response = HttpMethed .sendCoin (httpnode ,fromAddress ,freezeBalanceAddress ,amount ,testKey002 );
@@ -65,7 +66,7 @@ public void test1FreezebalanceForBandwidth() {
6566 * constructor.
6667 */
6768 @ Test (enabled = true , description = "UnFreezeBalance for bandwidth by http" )
68- public void test2UnFreezebalanceForBandwidth () {
69+ public void test02UnFreezebalanceForBandwidth () {
6970 berforeBalance = HttpMethed .getBalance (httpnode ,freezeBalanceAddress );
7071
7172 //UnFreeze balance for bandwidth
@@ -80,7 +81,7 @@ public void test2UnFreezebalanceForBandwidth() {
8081 * constructor.
8182 */
8283 @ Test (enabled = true , description = "FreezeBalance for energy by http" )
83- public void test3FreezebalanceForEnergy () {
84+ public void test03FreezebalanceForEnergy () {
8485 berforeBalance = HttpMethed .getBalance (httpnode ,freezeBalanceAddress );
8586
8687 //Freeze balance for energy
@@ -96,7 +97,7 @@ public void test3FreezebalanceForEnergy() {
9697 * constructor.
9798 */
9899 @ Test (enabled = true , description = "UnFreezeBalance for energy by http" )
99- public void test4UnFreezebalanceForEnergy () {
100+ public void test04UnFreezebalanceForEnergy () {
100101
101102 berforeBalance = HttpMethed .getBalance (httpnode ,freezeBalanceAddress );
102103 HttpMethed .waitToProduceOneBlock (httpnode );
@@ -112,7 +113,7 @@ public void test4UnFreezebalanceForEnergy() {
112113 * constructor.
113114 */
114115 @ Test (enabled = true , description = "FreezeBalance with bandwidth for others by http" )
115- public void test5FreezebalanceOfBandwidthForOthers () {
116+ public void test05FreezebalanceOfBandwidthForOthers () {
116117 response = HttpMethed .sendCoin (httpnode ,fromAddress ,receiverResourceAddress ,amount ,testKey002 );
117118 Assert .assertTrue (HttpMethed .verificationResult (response ));
118119 HttpMethed .waitToProduceOneBlock (httpnode );
@@ -131,7 +132,7 @@ public void test5FreezebalanceOfBandwidthForOthers() {
131132 * constructor.
132133 */
133134 @ Test (enabled = true , description = "Get Delegated Resource by http" )
134- public void test6GetDelegatedResource () {
135+ public void test06GetDelegatedResource () {
135136 response = HttpMethed .getDelegatedResource (
136137 httpnode ,freezeBalanceAddress ,receiverResourceAddress );
137138 responseContent = HttpMethed .parseResponseContent (response );
@@ -149,8 +150,9 @@ public void test6GetDelegatedResource() {
149150 /**
150151 * constructor.
151152 */
152- @ Test (enabled = true , description = "Get Delegated Resource from solidity by http" )
153- public void test6GetDelegatedResourceFromSolidity () {
153+ @ Test (enabled = false , description = "Get Delegated Resource from solidity by http" )
154+ public void test07GetDelegatedResourceFromSolidity () {
155+ HttpMethed .waitToProduceOneBlockFromSolidity (httpnode ,httpSoliditynode );
154156 response = HttpMethed .getDelegatedResourceFromSolidity (
155157 httpSoliditynode ,freezeBalanceAddress ,receiverResourceAddress );
156158 responseContent = HttpMethed .parseResponseContent (response );
@@ -169,7 +171,7 @@ public void test6GetDelegatedResourceFromSolidity() {
169171 * constructor.
170172 */
171173 @ Test (enabled = true , description = "Get Delegated Resource Account Index by http" )
172- public void test7GetDelegatedResourceAccountIndex () {
174+ public void test08GetDelegatedResourceAccountIndex () {
173175 response = HttpMethed .getDelegatedResourceAccountIndex (httpnode ,freezeBalanceAddress );
174176 responseContent = HttpMethed .parseResponseContent (response );
175177 HttpMethed .printJsonContent (responseContent );
@@ -181,9 +183,10 @@ public void test7GetDelegatedResourceAccountIndex() {
181183 /**
182184 * constructor.
183185 */
184- @ Test (enabled = true , description = "Get Delegated Resource Account Index from solidity by http" )
185- public void test7GetDelegatedResourceAccountIndexFromSolidity () {
186- response = HttpMethed .getDelegatedResourceAccountIndexFromSolidity (httpSoliditynode ,freezeBalanceAddress );
186+ @ Test (enabled = false , description = "Get Delegated Resource Account Index from solidity by http" )
187+ public void test09GetDelegatedResourceAccountIndexFromSolidity () {
188+ response = HttpMethed .getDelegatedResourceAccountIndexFromSolidity (httpSoliditynode ,
189+ freezeBalanceAddress );
187190 responseContent = HttpMethed .parseResponseContent (response );
188191 HttpMethed .printJsonContent (responseContent );
189192 Assert .assertFalse (responseContent .get ("toAccounts" ).toString ().isEmpty ());
@@ -195,7 +198,7 @@ public void test7GetDelegatedResourceAccountIndexFromSolidity() {
195198 * constructor.
196199 */
197200 @ Test (enabled = true , description = "UnFreezeBalance with bandwidth for others by http" )
198- public void test8UnFreezebalanceOfBandwidthForOthers () {
201+ public void test10UnFreezebalanceOfBandwidthForOthers () {
199202 HttpMethed .waitToProduceOneBlock (httpnode );
200203 berforeBalance = HttpMethed .getBalance (httpnode ,freezeBalanceAddress );
201204
@@ -212,7 +215,7 @@ public void test8UnFreezebalanceOfBandwidthForOthers() {
212215 * constructor.
213216 */
214217 @ Test (enabled = true , description = "FreezeBalance with energy for others by http" )
215- public void test9FreezebalanceOfEnergyForOthers () {
218+ public void test11FreezebalanceOfEnergyForOthers () {
216219 response = HttpMethed .sendCoin (httpnode ,fromAddress ,receiverResourceAddress ,amount ,testKey002 );
217220 Assert .assertTrue (HttpMethed .verificationResult (response ));
218221 HttpMethed .waitToProduceOneBlock (httpnode );
@@ -231,7 +234,7 @@ public void test9FreezebalanceOfEnergyForOthers() {
231234 * constructor.
232235 */
233236 @ Test (enabled = true , description = "UnFreezeBalance with energy for others by http" )
234- public void test9UnFreezebalanceOfEnergyForOthers () {
237+ public void test12UnFreezebalanceOfEnergyForOthers () {
235238 berforeBalance = HttpMethed .getBalance (httpnode ,freezeBalanceAddress );
236239
237240 //UnFreeze balance with energy for others
0 commit comments