Package utils
Class TestUtils
java.lang.Object
utils.TestUtils
Test utilities and constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final longstatic booleanstatic booleanstatic intstatic Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final longstatic final Stringstatic final Loggerstatic final BigIntegerstatic final Stringstatic final MoneroNetworkTypestatic final Stringstatic final Stringstatic final longstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic Map<MoneroWalletRpc, Integer> Start a monero-wallet-rpc process bound to the next available port.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final booleanstatic final intstatic final Stringstatic WalletTxTracker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MoneroWalletFullcreateWalletGroundTruth(MoneroNetworkType networkType, String seed, Long startHeight, Long restoreHeight) Creates a new wallet considered to be "ground truth".static MoneroDaemonRpcstatic Stringstatic MoneroWalletFullstatic MoneroWalletRpcstatic MoneroWalletRpcstatic MoneroWalletRpcstartWalletRpcProcess(boolean offline) static voidstopWalletRpcProcess(MoneroWalletRpc walletRpc) Stop a monero-wallet-rpc process and release its associated port.static voidstatic voidtestUnsignedBigInteger(BigInteger num, Boolean nonZero) static booleantxsMergeable(MoneroTxWallet tx1, MoneroTxWallet tx2)
-
Field Details
-
CPP_LOG_ENABLED
public static boolean CPP_LOG_ENABLED -
CPP_LOG_PATH
-
CPP_LOG_LEVEL
public static int CPP_LOG_LEVEL -
CPP_LOG_CONSOLE
public static boolean CPP_LOG_CONSOLE -
MONERO_BINS_DIR
- See Also:
-
DAEMON_RPC_URI
- See Also:
-
DAEMON_RPC_USERNAME
- See Also:
-
DAEMON_RPC_PASSWORD
- See Also:
-
DAEMON_LOCAL_PATH
- See Also:
-
WALLET_RPC_PORT_START
public static final int WALLET_RPC_PORT_START- See Also:
-
WALLET_RPC_ZMQ_ENABLED
public static final boolean WALLET_RPC_ZMQ_ENABLED- See Also:
-
WALLET_RPC_ZMQ_PORT_START
public static final int WALLET_RPC_ZMQ_PORT_START- See Also:
-
WALLET_RPC_ZMQ_BIND_PORT_START
public static final int WALLET_RPC_ZMQ_BIND_PORT_START- See Also:
-
WALLET_RPC_USERNAME
- See Also:
-
WALLET_RPC_PASSWORD
- See Also:
-
WALLET_RPC_ZMQ_DOMAIN
- See Also:
-
WALLET_RPC_DOMAIN
- See Also:
-
WALLET_RPC_URI
- See Also:
-
WALLET_RPC_ZMQ_URI
- See Also:
-
WALLET_RPC_LOCAL_PATH
- See Also:
-
WALLET_RPC_LOCAL_WALLET_DIR
- See Also:
-
WALLET_RPC_ACCESS_CONTROL_ORIGINS
- See Also:
-
WALLET_NAME
- See Also:
-
WALLET_PASSWORD
- See Also:
-
TEST_WALLETS_DIR
- See Also:
-
WALLET_FULL_PATH
- See Also:
-
MAX_FEE
-
NETWORK_TYPE
-
LANGUAGE
- See Also:
-
SEED
- See Also:
-
ADDRESS
- See Also:
-
FIRST_RECEIVE_HEIGHT
public static final long FIRST_RECEIVE_HEIGHT- See Also:
-
SYNC_PERIOD_IN_MS
public static final long SYNC_PERIOD_IN_MS- See Also:
-
OFFLINE_SERVER_URI
- See Also:
-
AUTO_CONNECT_TIMEOUT_MS
public static final long AUTO_CONNECT_TIMEOUT_MS- See Also:
-
LOGGER
-
WALLET_TX_TRACKER
-
WALLET_PORT_OFFSETS
Start a monero-wallet-rpc process bound to the next available port.
-
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
getDaemonRpc
-
getWalletRpc
-
startWalletRpcProcess
-
startWalletRpcProcess
-
stopWalletRpcProcess
Stop a monero-wallet-rpc process and release its associated port.- Parameters:
walletRpc- - wallet created with internal monero-wallet-rpc process- Throws:
InterruptedException
-
getWalletFull
-
createWalletGroundTruth
public static MoneroWalletFull createWalletGroundTruth(MoneroNetworkType networkType, String seed, Long startHeight, Long restoreHeight) Creates a new wallet considered to be "ground truth".- Parameters:
networkType- is the ground truth wallet's network typeseed- is the ground truth wallet's seedstartHeight- is the height to start syncing fromrestoreHeight- is the ground truth wallet's restore height- Returns:
- the created wallet
-
testUnsignedBigInteger
-
testUnsignedBigInteger
-
getExternalWalletAddress
-
txsMergeable
-