@Test(expected = IndexOutOfBoundsException.class) public void testGetBytesByteArrayNegInt() { final byte[] output = new byte[5]; new NonStrictExpectations(hash) { { hash.length(); result = output.length; } }; hash.getBytes(output, -1, output.length); }
@Override public byte[] getBytes() { final byte[] array = new byte[length()]; writeBytes(array, 0, array.length); return array; }
AbstractStatefulHash implements StatefulHash { @Override public byte[] getBytes() { final byte[] array = new byte[length()]; writeBytes(array, 0, array.length); return array; } }
AbstractStatefulHash implements StatefulHash { @Override public byte[] getBytes() { final byte[] array = new byte[length()]; writeBytes(array, 0, array.length); return array; }  }
AbstractStatefulHash implements StatefulHash { @Override public byte[] getBytes() { final byte[] array = new byte[length()]; writeBytes(array, 0, array.length); return array; }  @Override boolean supportsUnsafe(); @Override void update(byte[] input); @Override void update(byte[] input, int index, int length); @Override void update(ByteBuffer input); @Override void update(long address, long length); @Override byte[] getBytes(); @Override int getBytes(byte[] output, int index, int maxLength); @Override byte getByte(); @Override short getShort(); }
AbstractStatefulHash implements StatefulHash { @Override public byte[] getBytes() { final byte[] array = new byte[length()]; writeBytes(array, 0, array.length); return array; }  @Override boolean supportsUnsafe(); @Override void update(byte[] input); @Override void update(byte[] input, int index, int length); @Override void update(ByteBuffer input); @Override void update(long address, long length); @Override byte[] getBytes(); @Override int getBytes(byte[] output, int index, int maxLength); @Override byte getByte(); @Override short getShort();  }