@Test public void testBad_Amount() throws CoinURIParseException { try { testObject = new CoinURI(BitcoinMain.get(), BitcoinMain.get().getUriScheme() + ":" + MAINNET_GOOD_ADDRESS + "?amount="); fail("Expecting CoinURIParseException"); } catch (CoinURIParseException e) { assertTrue(e.getMessage().contains("amount")); } try { testObject = new CoinURI(BitcoinMain.get(), BitcoinMain.get().getUriScheme() + ":" + MAINNET_GOOD_ADDRESS + "?amount=12X4"); fail("Expecting CoinURIParseException"); } catch (CoinURIParseException e) { assertTrue(e.getMessage().contains("amount")); } }
public String getMessage() { return (String) parameterMap.get(FIELD_MESSAGE); }
CoinURI { public String getMessage() { return (String) parameterMap.get(FIELD_MESSAGE); } }
CoinURI { public String getMessage() { return (String) parameterMap.get(FIELD_MESSAGE); } CoinURI(String uri);  CoinURI(@Nullable CoinType uriType, String input); }
CoinURI { public String getMessage() { return (String) parameterMap.get(FIELD_MESSAGE); } CoinURI(String uri);  CoinURI(@Nullable CoinType uriType, String input); CoinType getType(); @Nullable Address getAddress(); Value getAmount(); String getLabel(); String getMessage(); String getPaymentRequestUrl(); Object getParameterByName(String name); @Override String toString(); static String convertToCoinURI(Address address, @Nullable Value amount,
                                          @Nullable String label, @Nullable String message); String toUriString(); }
CoinURI { public String getMessage() { return (String) parameterMap.get(FIELD_MESSAGE); } CoinURI(String uri);  CoinURI(@Nullable CoinType uriType, String input); CoinType getType(); @Nullable Address getAddress(); Value getAmount(); String getLabel(); String getMessage(); String getPaymentRequestUrl(); Object getParameterByName(String name); @Override String toString(); static String convertToCoinURI(Address address, @Nullable Value amount,
                                          @Nullable String label, @Nullable String message); String toUriString(); static final String FIELD_MESSAGE; static final String FIELD_LABEL; static final String FIELD_AMOUNT; static final String FIELD_ADDRESS; static final String FIELD_PAYMENT_REQUEST_URL; }