@Test public void testHashesDiffer() throws Exception { final String hash1 = measure("ABC".getBytes("UTF-8")).getMessageDigest(); final String hash2 = measure(new byte[10000]).getMessageDigest(); assertThat(hash1, not(equalTo(hash2))); }
public String getMessageDigest() { return HEX.encode(messageDigest.digest()); }
MetricsInputStream extends FilterInputStream { public String getMessageDigest() { return HEX.encode(messageDigest.digest()); } }
MetricsInputStream extends FilterInputStream { public String getMessageDigest() { return HEX.encode(messageDigest.digest()); } MetricsInputStream(final InputStream input); private  MetricsInputStream(final CountingInputStream countingStream, final MessageDigest messageDigest); }
MetricsInputStream extends FilterInputStream { public String getMessageDigest() { return HEX.encode(messageDigest.digest()); } MetricsInputStream(final InputStream input); private  MetricsInputStream(final CountingInputStream countingStream, final MessageDigest messageDigest); String getMessageDigest(); long getSize(); StreamMetrics getMetrics(); }
MetricsInputStream extends FilterInputStream { public String getMessageDigest() { return HEX.encode(messageDigest.digest()); } MetricsInputStream(final InputStream input); private  MetricsInputStream(final CountingInputStream countingStream, final MessageDigest messageDigest); String getMessageDigest(); long getSize(); StreamMetrics getMetrics();  }