Skip to content

Commit

Permalink
disable ClawbackIT and AmmIT in testnet runs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkramer44 committed Nov 30, 2023
1 parent c6a9f91 commit 7a8f1ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.google.common.primitives.UnsignedInteger;
import com.google.common.primitives.UnsignedLong;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIf;
import org.xrpl.xrpl4j.client.JsonRpcClientErrorException;
import org.xrpl.xrpl4j.crypto.keys.KeyPair;
import org.xrpl.xrpl4j.crypto.keys.PrivateKey;
Expand Down Expand Up @@ -54,8 +55,14 @@
import java.math.RoundingMode;
import java.util.stream.Collectors;

@DisabledIf(value = "shouldNotRun", disabledReason = "AmmIT only runs on local rippled node or devnet.")
public class AmmIT extends AbstractIT {

static boolean shouldNotRun() {
return System.getProperty("useTestnet") != null ||
System.getProperty("useClioTestnet") != null;
}

String xrpl4jCoin = Strings.padEnd(BaseEncoding.base16().encode("xrpl4jCoin".getBytes()), 40, '0');

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.common.primitives.UnsignedInteger;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIf;
import org.xrpl.xrpl4j.client.JsonRpcClientErrorException;
import org.xrpl.xrpl4j.crypto.keys.KeyPair;
import org.xrpl.xrpl4j.crypto.signing.SingleSignedTransaction;
Expand All @@ -22,8 +23,14 @@
import org.xrpl.xrpl4j.model.transactions.TransactionResultCodes;
import org.xrpl.xrpl4j.model.transactions.XrpCurrencyAmount;

@DisabledIf(value = "shouldNotRun", disabledReason = "ClawbackIT only runs on local rippled node or devnet.")
public class ClawbackIT extends AbstractIT {

static boolean shouldNotRun() {
return System.getProperty("useTestnet") != null ||
System.getProperty("useClioTestnet") != null;
}

@Test
void issueBalanceAndClawback() throws JsonRpcClientErrorException, JsonProcessingException {
KeyPair issuerKeyPair = createRandomAccountEd25519();
Expand Down

0 comments on commit 7a8f1ae

Please sign in to comment.