@Test public void testFormatCoinAsSymbolic_Icon() throws Exception { bitcoinConfiguration.setBitcoinSymbol(BitcoinSymbol.ICON.name()); String[] balance = Formats.formatCoinAsSymbolic(Coin.parseCoin(testAmounts[0]), languageConfiguration, bitcoinConfiguration); assertThat(balance.length).isEqualTo(2); assertThat(balance[0]).isEqualTo("20,999,999.12"); assertThat(balance[1]).isEqualTo("345678"); balance = Formats.formatCoinAsSymbolic(Coin.parseCoin(testAmounts[1]), languageConfiguration, bitcoinConfiguration); assertThat(balance.length).isEqualTo(2); assertThat(balance[0]).isEqualTo("1.00"); assertThat(balance[1]).isEqualTo("000000"); balance = Formats.formatCoinAsSymbolic(Coin.parseCoin(testAmounts[2]), languageConfiguration, bitcoinConfiguration); assertThat(balance.length).isEqualTo(2); assertThat(balance[0]).isEqualTo("0.00"); assertThat(balance[1]).isEqualTo("000001"); }
public static String[] formatCoinAsSymbolic( Coin coin, LanguageConfiguration languageConfiguration, BitcoinConfiguration bitcoinConfiguration ) { return formatCoinAsSymbolic(coin, languageConfiguration, bitcoinConfiguration, true); }
Formats { public static String[] formatCoinAsSymbolic( Coin coin, LanguageConfiguration languageConfiguration, BitcoinConfiguration bitcoinConfiguration ) { return formatCoinAsSymbolic(coin, languageConfiguration, bitcoinConfiguration, true); } }
Formats { public static String[] formatCoinAsSymbolic( Coin coin, LanguageConfiguration languageConfiguration, BitcoinConfiguration bitcoinConfiguration ) { return formatCoinAsSymbolic(coin, languageConfiguration, bitcoinConfiguration, true); }  }
Formats { public static String[] formatCoinAsSymbolic( Coin coin, LanguageConfiguration languageConfiguration, BitcoinConfiguration bitcoinConfiguration ) { return formatCoinAsSymbolic(coin, languageConfiguration, bitcoinConfiguration, true); }  static String[] formatCoinAsSymbolic(
    Coin coin,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration
  ); static String[] formatCoinAsSymbolic(
    Coin coin,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration,
    boolean showNegative
  ); static String formatCoinAsSymbolicText(
    Coin coin,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration
  ); static String formatCoinAmount(Coin coin, LanguageConfiguration languageConfiguration, BitcoinConfiguration bitcoinConfiguration); static String formatLocalAmount(BigDecimal amount, Locale locale, BitcoinConfiguration bitcoinConfiguration, boolean showNegative); static String formatExchangeRate(
    Optional<String> exchangeRate,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration
  ); static String formatAlertMessage(TransactionSeenEvent event); static Optional<String> formatAlertMessage(BitcoinURI bitcoinURI); static Optional<String> formatAlertMessage(PaymentSessionSummary paymentSessionSummary); }
Formats { public static String[] formatCoinAsSymbolic( Coin coin, LanguageConfiguration languageConfiguration, BitcoinConfiguration bitcoinConfiguration ) { return formatCoinAsSymbolic(coin, languageConfiguration, bitcoinConfiguration, true); }  static String[] formatCoinAsSymbolic(
    Coin coin,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration
  ); static String[] formatCoinAsSymbolic(
    Coin coin,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration,
    boolean showNegative
  ); static String formatCoinAsSymbolicText(
    Coin coin,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration
  ); static String formatCoinAmount(Coin coin, LanguageConfiguration languageConfiguration, BitcoinConfiguration bitcoinConfiguration); static String formatLocalAmount(BigDecimal amount, Locale locale, BitcoinConfiguration bitcoinConfiguration, boolean showNegative); static String formatExchangeRate(
    Optional<String> exchangeRate,
    LanguageConfiguration languageConfiguration,
    BitcoinConfiguration bitcoinConfiguration
  ); static String formatAlertMessage(TransactionSeenEvent event); static Optional<String> formatAlertMessage(BitcoinURI bitcoinURI); static Optional<String> formatAlertMessage(PaymentSessionSummary paymentSessionSummary); static final int EXCHANGE_RATE_DECIMAL_PLACES_OFFSET; }