@Test public void testDebugString() throws Exception { for (byte ton : TONS) { for (byte npi : NPIS) { for (int len = 1; len <= MAX_ADDRESS_LENGTH; len++) { String a = address(len); address = new Address(ton, npi, a, len + 1); String s = "(addr: " + Integer.toString(ton) + " " + Integer.toString(npi) + " " + a + ") "; assertEquals(s, address.debugString()); } } } }
public String debugString() { String dbgs = "(addr: "; dbgs += super.debugString(); dbgs += Integer.toString(getTon()); dbgs += " "; dbgs += Integer.toString(getNpi()); dbgs += " "; dbgs += getAddress(); dbgs += ") "; return dbgs; }
Address extends ByteData { public String debugString() { String dbgs = "(addr: "; dbgs += super.debugString(); dbgs += Integer.toString(getTon()); dbgs += " "; dbgs += Integer.toString(getNpi()); dbgs += " "; dbgs += getAddress(); dbgs += ") "; return dbgs; } }
Address extends ByteData { public String debugString() { String dbgs = "(addr: "; dbgs += super.debugString(); dbgs += Integer.toString(getTon()); dbgs += " "; dbgs += Integer.toString(getNpi()); dbgs += " "; dbgs += getAddress(); dbgs += ") "; return dbgs; } Address();  Address(int maxAddressLength);  Address(byte ton, byte npi, int maxAddressLength);  Address(String address);  Address(String address, int maxAddressLength);  Address(byte ton, byte npi, String address);  Address(byte ton, byte npi, String address, int maxAddressLength); }
Address extends ByteData { public String debugString() { String dbgs = "(addr: "; dbgs += super.debugString(); dbgs += Integer.toString(getTon()); dbgs += " "; dbgs += Integer.toString(getNpi()); dbgs += " "; dbgs += getAddress(); dbgs += ") "; return dbgs; } Address();  Address(int maxAddressLength);  Address(byte ton, byte npi, int maxAddressLength);  Address(String address);  Address(String address, int maxAddressLength);  Address(byte ton, byte npi, String address);  Address(byte ton, byte npi, String address, int maxAddressLength); void setData(ByteBuffer buffer); ByteBuffer getData(); void setTon(byte ton); void setNpi(byte npi); void setAddress(String address); void setAddress(String address, int maxAddressLength); byte getTon(); byte getNpi(); String getAddress(); String getAddress(String encoding); String debugString(); }
Address extends ByteData { public String debugString() { String dbgs = "(addr: "; dbgs += super.debugString(); dbgs += Integer.toString(getTon()); dbgs += " "; dbgs += Integer.toString(getNpi()); dbgs += " "; dbgs += getAddress(); dbgs += ") "; return dbgs; } Address();  Address(int maxAddressLength);  Address(byte ton, byte npi, int maxAddressLength);  Address(String address);  Address(String address, int maxAddressLength);  Address(byte ton, byte npi, String address);  Address(byte ton, byte npi, String address, int maxAddressLength); void setData(ByteBuffer buffer); ByteBuffer getData(); void setTon(byte ton); void setNpi(byte npi); void setAddress(String address); void setAddress(String address, int maxAddressLength); byte getTon(); byte getNpi(); String getAddress(); String getAddress(String encoding); String debugString();  }