@Test(expected = IOException.class) public void compute() throws Exception { final NullInputStream in = new NullInputStream(0L); new DisabledChecksumCompute().compute(in, new TransferStatus()); assertEquals(-1, in.read()); in.read(); }
@Override public Checksum compute(final InputStream in, final TransferStatus status) { IOUtils.closeQuietly(in); return Checksum.NONE; }
DisabledChecksumCompute implements ChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) { IOUtils.closeQuietly(in); return Checksum.NONE; } }
DisabledChecksumCompute implements ChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) { IOUtils.closeQuietly(in); return Checksum.NONE; }  }
DisabledChecksumCompute implements ChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) { IOUtils.closeQuietly(in); return Checksum.NONE; }  @Override Checksum compute(final InputStream in, final TransferStatus status); @Override Checksum compute(final String data, final TransferStatus status); }
DisabledChecksumCompute implements ChecksumCompute { @Override public Checksum compute(final InputStream in, final TransferStatus status) { IOUtils.closeQuietly(in); return Checksum.NONE; }  @Override Checksum compute(final InputStream in, final TransferStatus status); @Override Checksum compute(final String data, final TransferStatus status);  }