Package utils
Class TestUtils
java.lang.Object
utils.TestUtils
Test utilities and constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final long
static boolean
static boolean
static int
static String
static final String
static final String
static final String
static final String
static final long
static final String
static final Logger
static final BigInteger
static final String
static final MoneroNetworkType
static final String
static final String
static final long
static final String
static final String
static final String
static final String
static Map
<MoneroWalletRpc, Integer> Start a monero-wallet-rpc process bound to the next available port.static final String
static final String
static final String
static final String
static final String
static final int
static final String
static final String
static final int
static final String
static final boolean
static final int
static final String
static WalletTxTracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MoneroWalletFull
createWalletGroundTruth
(MoneroNetworkType networkType, String seed, Long startHeight, Long restoreHeight) Creates a new wallet considered to be "ground truth".static MoneroDaemonRpc
static String
static MoneroWalletFull
static MoneroWalletRpc
static MoneroWalletRpc
static MoneroWalletRpc
startWalletRpcProcess
(boolean offline) static void
stopWalletRpcProcess
(MoneroWalletRpc walletRpc) Stop a monero-wallet-rpc process and release its associated port.static void
static void
testUnsignedBigInteger
(BigInteger num, Boolean nonZero) static boolean
txsMergeable
(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
-