@Test public void _toString() { ByteArray ba; ba = new ByteArray(data); assertEquals("byte[10]", ba.toString()); ba = new ByteArray(data, 1, Integer.MIN_VALUE); assertEquals("byte[9]", ba.toString()); ba = new ByteArray(data, 0, 10); assertEquals("byte[10]", ba.toString()); ba = new ByteArray(data, 1, 9); assertEquals("byte[9]", ba.toString()); ba = new ByteArray(data, 1, 0); assertEquals("byte[0]", ba.toString()); }
@Override public String toString() { return "byte[" + length + "]"; }
ByteArray { @Override public String toString() { return "byte[" + length + "]"; } }
ByteArray { @Override public String toString() { return "byte[" + length + "]"; } ByteArray(byte[] bytes);  ByteArray(byte[] bytes, int offset, int length); }
ByteArray { @Override public String toString() { return "byte[" + length + "]"; } ByteArray(byte[] bytes);  ByteArray(byte[] bytes, int offset, int length); byte[] getRawBytes(); int getOffset(); int getLength(); byte[] toByteArray(); InputStream toInputStream(); void writeTo(OutputStream out); @Override String toString(); }
ByteArray { @Override public String toString() { return "byte[" + length + "]"; } ByteArray(byte[] bytes);  ByteArray(byte[] bytes, int offset, int length); byte[] getRawBytes(); int getOffset(); int getLength(); byte[] toByteArray(); InputStream toInputStream(); void writeTo(OutputStream out); @Override String toString();  }