This is an automated email from the ASF dual-hosted git repository.

centic pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git

commit 74bdee9c0dd9c20841f857e4cd443ca4b420fc9d
Author: Dominik Stadler <[email protected]>
AuthorDate: Tue Dec 2 20:13:58 2025 +0100

    Avoid usage of package org.mockito.internal
    
    Otherwise JUnit tests fail in CI now when
    the module-system is used.
---
 .../src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java 
b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java
index f9656a881c..6f802da104 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestPPTX2PNG.java
@@ -45,7 +45,6 @@ import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
-import org.mockito.internal.util.io.IOUtil;
 
 /**
  * Test class for testing PPTX2PNG utility which renders .ppt and .pptx 
slideshows
@@ -86,9 +85,11 @@ class TestPPTX2PNG {
     }
 
     @AfterAll
-    public static void resetStdin() {
+    public static void resetStdin() throws IOException {
         System.setIn(defStdin);
-        IOUtil.closeQuietly(archive);
+        if (archive != null) {
+            archive.close();
+        }
     }
 
     public static Stream<Arguments> data() throws IOException {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to