mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Avoid usage of package org.mockito.internal
Otherwise JUnit tests fail in CI now when the module-system is used.
This commit is contained in:
parent
e5336586a9
commit
74bdee9c0d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user