This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 9c9c28e5eb8e7f296d26642e84d6efd3dfe7833f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu May 5 15:47:58 2022 -0400 Whitespeace. --- .../utils/ChecksumVerifyingInputStreamTest.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java b/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java index 980b7a0c..e817624c 100644 --- a/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java +++ b/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java @@ -34,53 +34,36 @@ import static org.junit.Assert.assertEquals; **/ public class ChecksumVerifyingInputStreamTest { - - @Test public void testReadTakingByteArrayThrowsIOException() throws IOException { - final Adler32 adler32 = new Adler32(); final byte[] byteArray = new byte[3]; final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); final ChecksumVerifyingInputStream checksumVerifyingInputStream = new ChecksumVerifyingInputStream(adler32, byteArrayInputStream, (-1859L), (byte) (-68)); - checksumVerifyingInputStream.read(byteArray); - } - @Test public void testReadTakingNoArgumentsThrowsIOException() throws IOException { - final CRC32 cRC32_ = new CRC32(); final byte[] byteArray = new byte[9]; final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); final ChecksumVerifyingInputStream checksumVerifyingInputStream = new ChecksumVerifyingInputStream(cRC32_, byteArrayInputStream, (byte)1, (byte)1); - checksumVerifyingInputStream.read(); - } - @Test public void testSkip() throws IOException { - final CRC32 cRC32_ = new CRC32(); final byte[] byteArray = new byte[4]; final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); final ChecksumVerifyingInputStream checksumVerifyingInputStream = new ChecksumVerifyingInputStream(cRC32_, byteArrayInputStream, (byte)33, 2303L); final int intOne = checksumVerifyingInputStream.read(byteArray); - final long skipReturnValue = checksumVerifyingInputStream.skip((byte)1); - assertEquals(558161692L, cRC32_.getValue()); assertEquals(0, byteArrayInputStream.available()); - assertArrayEquals(new byte[] {(byte)0, (byte)0, (byte)0, (byte)0}, byteArray); assertEquals(0L, skipReturnValue); - } - - } \ No newline at end of file