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 2023/06/01 14:28:42 UTC
[commons-io] branch master updated: Better test
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 921ad077 Better test
921ad077 is described below
commit 921ad0779e997658e86d62a788974616ce865de1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 1 10:28:38 2023 -0400
Better test
---
src/test/java/org/apache/commons/io/build/AbstractOriginTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/io/build/AbstractOriginTest.java b/src/test/java/org/apache/commons/io/build/AbstractOriginTest.java
index cc60644e..b36332b7 100644
--- a/src/test/java/org/apache/commons/io/build/AbstractOriginTest.java
+++ b/src/test/java/org/apache/commons/io/build/AbstractOriginTest.java
@@ -25,6 +25,8 @@ import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.nio.charset.Charset;
+import java.nio.file.Files;
+import java.nio.file.Paths;
import java.util.Objects;
import org.junit.jupiter.api.Test;
@@ -62,7 +64,7 @@ public abstract class AbstractOriginTest<T, B extends AbstractOrigin<T, B>> {
@Test
public void testGetByteArray() throws IOException {
- assertNotNull(getOriginRo().getByteArray());
+ assertArrayEquals(Files.readAllBytes(Paths.get(FILE_NAME_RO)), getOriginRo().getByteArray());
}
@Test