@Test public void testDump() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); iSOAmount.dump(new PrintStream(baos), ":-o"); String lineSep = System.getProperty ("line.separator"); String expected = ":-o<field id=\"28\" currency=\"840\" type=\"amount\" value=\"10.00\"/>" + lineSep; assertThat(baos.toString(), is(expected)); }
public void dump (PrintStream p, String indent) { p.println (indent +"<"+XMLPackager.ISOFIELD_TAG + " " +XMLPackager.ID_ATTR +"=\"" +fieldNumber +"\" " +"currency=\"" +ISOUtil.zeropad (currencyCode, 3)+"\" " +XMLPackager.TYPE_ATTR +"=\"amount\" " +XMLPackager.VALUE_ATTR+"=\"" + amount.toString() +"\"/>" ); }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public void dump (PrintStream p, String indent) { p.println (indent +"<"+XMLPackager.ISOFIELD_TAG + " " +XMLPackager.ID_ATTR +"=\"" +fieldNumber +"\" " +"currency=\"" +ISOUtil.zeropad (currencyCode, 3)+"\" " +XMLPackager.TYPE_ATTR +"=\"amount\" " +XMLPackager.VALUE_ATTR+"=\"" + amount.toString() +"\"/>" ); } }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public void dump (PrintStream p, String indent) { p.println (indent +"<"+XMLPackager.ISOFIELD_TAG + " " +XMLPackager.ID_ATTR +"=\"" +fieldNumber +"\" " +"currency=\"" +ISOUtil.zeropad (currencyCode, 3)+"\" " +XMLPackager.TYPE_ATTR +"=\"amount\" " +XMLPackager.VALUE_ATTR+"=\"" + amount.toString() +"\"/>" ); } ISOAmount();  ISOAmount(int fieldNumber);  ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount); }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public void dump (PrintStream p, String indent) { p.println (indent +"<"+XMLPackager.ISOFIELD_TAG + " " +XMLPackager.ID_ATTR +"=\"" +fieldNumber +"\" " +"currency=\"" +ISOUtil.zeropad (currencyCode, 3)+"\" " +XMLPackager.TYPE_ATTR +"=\"amount\" " +XMLPackager.VALUE_ATTR+"=\"" + amount.toString() +"\"/>" ); } ISOAmount();  ISOAmount(int fieldNumber);  ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount); Object getKey(); Object getValue(); void setValue(Object obj); void setFieldNumber(int fieldNumber); @Override int getFieldNumber(); BigDecimal getAmount(); int getScale(); String getScaleAsString(); int getCurrencyCode(); String getCurrencyCodeAsString(); String getAmountAsLegacyString(); String getAmountAsString(); byte[] pack(); int unpack(byte[] b); void unpack(InputStream in); void dump(PrintStream p, String indent); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public void dump (PrintStream p, String indent) { p.println (indent +"<"+XMLPackager.ISOFIELD_TAG + " " +XMLPackager.ID_ATTR +"=\"" +fieldNumber +"\" " +"currency=\"" +ISOUtil.zeropad (currencyCode, 3)+"\" " +XMLPackager.TYPE_ATTR +"=\"amount\" " +XMLPackager.VALUE_ATTR+"=\"" + amount.toString() +"\"/>" ); } ISOAmount();  ISOAmount(int fieldNumber);  ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount); Object getKey(); Object getValue(); void setValue(Object obj); void setFieldNumber(int fieldNumber); @Override int getFieldNumber(); BigDecimal getAmount(); int getScale(); String getScaleAsString(); int getCurrencyCode(); String getCurrencyCodeAsString(); String getAmountAsLegacyString(); String getAmountAsString(); byte[] pack(); int unpack(byte[] b); void unpack(InputStream in); void dump(PrintStream p, String indent); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }