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/05/10 19:37:52 UTC
[commons-io] branch master updated: Better local name & format tweaks.
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 8f328a49 Better local name & format tweaks.
8f328a49 is described below
commit 8f328a49c705aba8a1ab4ed88d55661eaa1ff96b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue May 10 15:37:45 2022 -0400
Better local name & format tweaks.
---
src/test/java/org/apache/commons/io/function/IOFunctionTest.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/function/IOFunctionTest.java b/src/test/java/org/apache/commons/io/function/IOFunctionTest.java
index 82f90c8e..52351c62 100644
--- a/src/test/java/org/apache/commons/io/function/IOFunctionTest.java
+++ b/src/test/java/org/apache/commons/io/function/IOFunctionTest.java
@@ -104,13 +104,12 @@ public class IOFunctionTest {
@Test
public void testApplyRaisesException() {
- final IOFunction<InputStream, Integer> raiseException = is -> {
+ final IOFunction<InputStream, Integer> throwException = is -> {
throw new IOException("Boom!");
};
- final InputStream is = new ByteArrayInputStream(new byte[] { (byte)0xa, (byte)0xb, (byte)0xc});
-
+ final InputStream is = new ByteArrayInputStream(new byte[] {(byte) 0xa, (byte) 0xb, (byte) 0xc});
assertThrows(IOException.class, () -> {
- raiseException.apply(is);
+ throwException.apply(is);
});
}