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 2024/07/08 12:46:05 UTC

(commons-io) 02/04: Rename test method like others

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-io.git

commit 31fad244fb843da99fc64cb4845d9d890c9f3314
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jul 8 08:39:42 2024 -0400

    Rename test method like others
---
 .../apache/commons/io/input/BufferedFileChannelInputStreamTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/io/input/BufferedFileChannelInputStreamTest.java b/src/test/java/org/apache/commons/io/input/BufferedFileChannelInputStreamTest.java
index 2d1dfbd3c..4ebd2a4ab 100644
--- a/src/test/java/org/apache/commons/io/input/BufferedFileChannelInputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/input/BufferedFileChannelInputStreamTest.java
@@ -63,16 +63,16 @@ public class BufferedFileChannelInputStreamTest extends AbstractInputStreamTest
     }
 
     @Test
-    public void testAvailableAfterRead() throws Exception {
+    public void testAvailableAfterOpen() throws Exception {
         for (final InputStream inputStream : inputStreams) {
-            assertNotEquals(IOUtils.EOF, inputStream.read());
             assertTrue(inputStream.available() > 0);
         }
     }
 
     @Test
-    public void testAvailableFirst() throws Exception {
+    public void testAvailableAfterRead() throws Exception {
         for (final InputStream inputStream : inputStreams) {
+            assertNotEquals(IOUtils.EOF, inputStream.read());
             assertTrue(inputStream.available() > 0);
         }
     }