@Test(expectedExceptions = NullPointerException.class) public void shouldReturnsErrorWhenAppendableIsNull() throws IOException { format.print(null, null); }
@Override public void print(Appendable appendable, MonetaryAmount amount) throws IOException { requireNonNull(appendable).append(queryFrom(amount)); }
MonetaryAmountDecimalFormat implements MonetaryAmountFormat { @Override public void print(Appendable appendable, MonetaryAmount amount) throws IOException { requireNonNull(appendable).append(queryFrom(amount)); } }
MonetaryAmountDecimalFormat implements MonetaryAmountFormat { @Override public void print(Appendable appendable, MonetaryAmount amount) throws IOException { requireNonNull(appendable).append(queryFrom(amount)); } MonetaryAmountDecimalFormat(DecimalFormat decimalFormat, MonetaryAmountProducer producer, CurrencyUnit currencyUnit); }
MonetaryAmountDecimalFormat implements MonetaryAmountFormat { @Override public void print(Appendable appendable, MonetaryAmount amount) throws IOException { requireNonNull(appendable).append(queryFrom(amount)); } MonetaryAmountDecimalFormat(DecimalFormat decimalFormat, MonetaryAmountProducer producer, CurrencyUnit currencyUnit); static MonetaryAmountFormat of(); String toLocalizedPattern(); String toPattern(); @Override AmountFormatContext getContext(); @Override void print(Appendable appendable, MonetaryAmount amount); @Override MonetaryAmount parse(CharSequence text); @Override String queryFrom(MonetaryAmount amount); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
MonetaryAmountDecimalFormat implements MonetaryAmountFormat { @Override public void print(Appendable appendable, MonetaryAmount amount) throws IOException { requireNonNull(appendable).append(queryFrom(amount)); } MonetaryAmountDecimalFormat(DecimalFormat decimalFormat, MonetaryAmountProducer producer, CurrencyUnit currencyUnit); static MonetaryAmountFormat of(); String toLocalizedPattern(); String toPattern(); @Override AmountFormatContext getContext(); @Override void print(Appendable appendable, MonetaryAmount amount); @Override MonetaryAmount parse(CharSequence text); @Override String queryFrom(MonetaryAmount amount); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }