Skip to content

Commit

Permalink
remove static from the tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Povolotsky <lev@swirldslabs.com>
  • Loading branch information
povolev15 committed Nov 1, 2023
1 parent e058b60 commit ab476e5
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@
import com.hedera.services.bdd.junit.HapiTestSuite;
import com.hedera.services.bdd.spec.HapiSpec;
import com.hedera.services.bdd.suites.HapiSuite;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Arrays;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

@HapiTestSuite
public class MiscCryptoSuite extends HapiSuite {
Expand Down Expand Up @@ -74,7 +72,7 @@ private List<HapiSpec> negativeTests() {
}

@HapiTest
private static HapiSpec sysAccountKeyUpdateBySpecialWontNeedNewKeyTxnSign() {
private HapiSpec sysAccountKeyUpdateBySpecialWontNeedNewKeyTxnSign() {
String sysAccount = "0.0.977";
String randomAccountA = "randomAccountA";
String randomAccountB = "randomAccountB";
Expand Down Expand Up @@ -104,7 +102,7 @@ private static HapiSpec sysAccountKeyUpdateBySpecialWontNeedNewKeyTxnSign() {
.hasKnownStatus(INVALID_SIGNATURE));
}

private static HapiSpec reduceTransferFee() {
private HapiSpec reduceTransferFee() {
final long REDUCED_NODE_FEE = 2L;
final long REDUCED_NETWORK_FEE = 3L;
final long REDUCED_SERVICE_FEE = 3L;
Expand All @@ -129,23 +127,23 @@ private static HapiSpec reduceTransferFee() {
}

@HapiTest
private static HapiSpec getsGenesisBalance() {
private HapiSpec getsGenesisBalance() {
return defaultHapiSpec("GetsGenesisBalance")
.given()
.when()
.then(getAccountBalance(GENESIS).logged());
}

@HapiTest
private static HapiSpec transferChangesBalance() {
private HapiSpec transferChangesBalance() {
return defaultHapiSpec("TransferChangesBalance")
.given(cryptoCreate("newPayee").balance(0L))
.when(cryptoTransfer(tinyBarsFromTo(GENESIS, "newPayee", 1_000_000_000L)))
.then(getAccountBalance("newPayee").hasTinyBars(1_000_000_000L).logged());
}

@HapiTest
private static HapiSpec updateWithOutOfDateKeyFails() {
private HapiSpec updateWithOutOfDateKeyFails() {
return defaultHapiSpec("UpdateWithOutOfDateKeyFails")
.given(
newKeyNamed("originalKey"),
Expand Down

0 comments on commit ab476e5

Please sign in to comment.