diff options
author | Gary Gregory <gardgregory@gmail.com> | 2022-07-28 09:34:58 -0400 |
---|---|---|
committer | Gary Gregory <gardgregory@gmail.com> | 2022-07-28 09:34:58 -0400 |
commit | 39ca083df40e2dad795607e428da8d0ca13bf269 (patch) | |
tree | b09c5baac646e7b893650bd592085cd8ff286329 /src/test | |
parent | 15995ca7865e38251d0ffe04c06c56c519ff541a (diff) | |
download | apache-commons-io-39ca083df40e2dad795607e428da8d0ca13bf269.tar.gz |
Add an assert test
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/apache/commons/io/function/IOSupplierTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/java/org/apache/commons/io/function/IOSupplierTest.java b/src/test/java/org/apache/commons/io/function/IOSupplierTest.java index d3c91f24..e21125a2 100644 --- a/src/test/java/org/apache/commons/io/function/IOSupplierTest.java +++ b/src/test/java/org/apache/commons/io/function/IOSupplierTest.java @@ -18,6 +18,7 @@ package org.apache.commons.io.function; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.io.IOException; @@ -52,6 +53,7 @@ public class IOSupplierTest { assertThrows(UncheckedIOException.class, () -> TestConstants.THROWING_IO_SUPPLIER.asSupplier().get()); assertEquals("new1", getThrowsNone(() -> TestUtils.compareAndSetThrows(ref1, "new1"))); assertEquals("new1", ref1.get()); + assertNotEquals(TestConstants.THROWING_IO_SUPPLIER.asSupplier(), TestConstants.THROWING_IO_SUPPLIER.asSupplier()); } @Test |