Class WalletTestUtil

java.lang.Object
org.consensusj.bitcoin.jsonrpc.test.WalletTestUtil

public class WalletTestUtil extends Object
Utilities for integration testing server-side wallets
  • Constructor Details

  • Method Details

    • randomWalletName

      public static String randomWalletName()
      Generate a valid, random wallet name. This is useful in integration testing.
      Returns:
      A wallet name of the form: testwallet-ten-randomChars
    • randomWalletName

      public static String randomWalletName(String prefix, int numRandomChars)
      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