Class WalletTestUtil
java.lang.Object
org.consensusj.bitcoin.jsonrpc.test.WalletTestUtil
Utilities for integration testing server-side wallets
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Generate a valid, random wallet name.static String
randomWalletName
(String prefix, int numRandomChars) Generate a valid, random wallet name.
-
Constructor Details
-
WalletTestUtil
public WalletTestUtil()
-
-
Method Details
-
randomWalletName
Generate a valid, random wallet name. This is useful in integration testing.- Returns:
- A wallet name of the form: testwallet-ten-randomChars
-
randomWalletName
Generate a valid, random wallet name. This is useful in integration testing.- Parameters:
prefix
- Prefix, e.g."testwallet"
numRandomChars
- The number of random characters to add to the prefix- Returns:
- A wallet name of the form: prefix-randomChars
-