@Test public void validateBTC_shouldNotValidate() { assertTrue(BitcoinAddressValidator.validate("3NagLCvw8fLwtoUrK7s2mJPy9k6hoyWvTU", false)); assertTrue(BitcoinAddressValidator.validate("mjn127C5wRQCULksMYMFHLp9UTdQuCfbZ9", true)); assertTrue(!BitcoinAddressValidator.validate("1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62j", true)); assertTrue(!BitcoinAddressValidator.validate("1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62X", true)); assertTrue(!BitcoinAddressValidator.validate("1ANNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i", true)); assertTrue(!BitcoinAddressValidator.validate("1A Na15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i", true)); assertTrue(!BitcoinAddressValidator.validate("BZbvjr", true)); assertTrue(!BitcoinAddressValidator.validate("i55j", true)); assertTrue(!BitcoinAddressValidator.validate("1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62!", true)); assertTrue(!BitcoinAddressValidator.validate("1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62iz", false)); assertTrue(!BitcoinAddressValidator.validate("1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62izz", false)); assertTrue(!BitcoinAddressValidator.validate("1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nJ9", false)); assertTrue(!BitcoinAddressValidator.validate("1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62I", false)); assertTrue(!BitcoinAddressValidator.validate("3NagLCvw8fLwtoUrK7s2mJPy9k6hoyWvTU ", false)); assertTrue(!BitcoinAddressValidator.validate(" 3NagLCvw8fLwtoUrK7s2mJPy9k6hoyWvTU ", false)); }
public static boolean validate(String addrress) { return validate(addrress, WalletManager.getInstance().getNetworkType() != NetworkType.NetworkType_Mainnet); }
BitcoinAddressValidator { public static boolean validate(String addrress) { return validate(addrress, WalletManager.getInstance().getNetworkType() != NetworkType.NetworkType_Mainnet); } }
BitcoinAddressValidator { public static boolean validate(String addrress) { return validate(addrress, WalletManager.getInstance().getNetworkType() != NetworkType.NetworkType_Mainnet); }  }
BitcoinAddressValidator { public static boolean validate(String addrress) { return validate(addrress, WalletManager.getInstance().getNetworkType() != NetworkType.NetworkType_Mainnet); }  static boolean validate(String addrress); static boolean validate(String addrress, boolean testnet); }
BitcoinAddressValidator { public static boolean validate(String addrress) { return validate(addrress, WalletManager.getInstance().getNetworkType() != NetworkType.NetworkType_Mainnet); }  static boolean validate(String addrress); static boolean validate(String addrress, boolean testnet);  }