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
The following commit(s) were added to refs/heads/master by this push:
new 6fa4cdc83 repair bad asserts (#577)
6fa4cdc83 is described below
commit 6fa4cdc8351c5d33386777af4cb2d68017af6a6d
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Thu Feb 1 20:30:05 2024 -0500
repair bad asserts (#577)
---
src/test/java/org/apache/commons/io/input/NullInputStreamTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/input/NullInputStreamTest.java
b/src/test/java/org/apache/commons/io/input/NullInputStreamTest.java
index fd264eec5..0e1be9a28 100644
--- a/src/test/java/org/apache/commons/io/input/NullInputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/input/NullInputStreamTest.java
@@ -240,7 +240,7 @@ public class NullInputStreamTest {
// Test reading after the end of file
final IOException e2 = assertThrows(EOFException.class, input::read);
- assertTrue(StringUtils.isNotBlank(e1.getMessage()));
+ assertTrue(StringUtils.isNotBlank(e2.getMessage()));
// Close - should reset
input.close();
@@ -272,8 +272,8 @@ public class NullInputStreamTest {
final IOException e1 = assertThrows(EOFException.class, () ->
input.skip(5), "Skip 3 (EOF)");
assertTrue(StringUtils.isNotBlank(e1.getMessage()));
- final IOException e = assertThrows(IOException.class, () ->
input.skip(5), "Expected IOException for skipping after end of file");
- assertTrue(StringUtils.isNotBlank(e1.getMessage()));
+ final IOException e2 = assertThrows(IOException.class, () ->
input.skip(5), "Expected IOException for skipping after end of file");
+ assertTrue(StringUtils.isNotBlank(e2.getMessage()));
}
}
}