You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/12/10 17:27:21 UTC

[commons-compress] branch master updated: Exception clean up in tests

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


The following commit(s) were added to refs/heads/master by this push:
     new 6e27627b Exception clean up in tests
6e27627b is described below

commit 6e27627b501e5e998d2d6fee37bf16969e203402
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Dec 10 12:27:17 2022 -0500

    Exception clean up in tests
---
 .../compress/utils/MultiReadOnlySeekableByteChannelTest.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java b/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java
index ec18a530..8db7d5cf 100644
--- a/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java
+++ b/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java
@@ -52,7 +52,7 @@ public class MultiReadOnlySeekableByteChannelTest {
     }
 
     @Test
-    public void forFilesThrowsOnNullArg() throws IOException {
+    public void forFilesThrowsOnNullArg() {
         assertThrows(NullPointerException.class, () -> MultiReadOnlySeekableByteChannel.forFiles(null));
     }
 
@@ -118,19 +118,19 @@ public class MultiReadOnlySeekableByteChannelTest {
     }
 
     @Test
-    public void cantTruncate() throws IOException {
+    public void cantTruncate() {
         final SeekableByteChannel s = MultiReadOnlySeekableByteChannel.forSeekableByteChannels(makeEmpty(), makeEmpty());
         assertThrows(NonWritableChannelException.class, () -> s.truncate(1));
     }
 
     @Test
-    public void cantWrite() throws IOException {
+    public void cantWrite() {
         final SeekableByteChannel s = MultiReadOnlySeekableByteChannel.forSeekableByteChannels(makeEmpty(), makeEmpty());
         assertThrows(NonWritableChannelException.class, () -> s.write(ByteBuffer.allocate(10)));
     }
 
     @Test
-    public void cantPositionToANegativePosition() throws IOException {
+    public void cantPositionToANegativePosition() {
         final SeekableByteChannel s = MultiReadOnlySeekableByteChannel.forSeekableByteChannels(makeEmpty(), makeEmpty());
         assertThrows(IllegalArgumentException.class, () -> s.position(-1));
     }