This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3a56bbd73b Update TestDetectAsOOXML.java
3a56bbd73b is described below
commit 3a56bbd73bd05f3b0256f446eb1afdf0ce573420
Author: PJ Fanning <[email protected]>
AuthorDate: Thu Dec 25 11:17:12 2025 +0100
Update TestDetectAsOOXML.java
---
poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java
b/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java
index 1255f1da3f..bc83fb7386 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/ooxml/TestDetectAsOOXML.java
@@ -19,7 +19,7 @@ package org.apache.poi.ooxml;
import static org.apache.poi.hssf.HSSFTestDataSamples.openSampleFileStream;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.ByteArrayInputStream;
@@ -28,7 +28,6 @@ import java.io.InputStream;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.openxml4j.opc.OPCPackage;
-import org.apache.poi.poifs.filesystem.DocumentFactoryHelper;
import org.apache.poi.poifs.filesystem.FileMagic;
import org.apache.poi.util.IOUtils;
import org.junit.jupiter.api.Test;
@@ -66,7 +65,7 @@ class TestDetectAsOOXML {
InputStream is = FileMagic.prepareToCheckMagic(testInput);
// detect header
- assertFalse(FileMagic.valueOf(is) == FileMagic.OOXML);
+ assertNotEquals(FileMagic.OOXML, FileMagic.valueOf(is));
// check if InputStream is still intact
byte[] act = IOUtils.toByteArray(is);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]