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 fb75600872e7d696521f6741c0e76c8b0d0f9a8b Author: Dominik Stadler <[email protected]> AuthorDate: Tue Jan 6 19:59:08 2026 +0100 Don't throw RuntimeException in integration-tests This prepares us to include the FileHandlers in fuzz-testing via oss-fuzz while keeping to not expect any direct RuntimeException being caught. --- .../src/test/java/org/apache/poi/stress/XSSFBFileHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java index fb130b9d72..862e89be33 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/XSSFBFileHandler.java @@ -78,7 +78,7 @@ public class XSSFBFileHandler extends AbstractFileHandler { XSSFBEventBasedExcelExtractor ex = new XSSFBEventBasedExcelExtractor(pkg); String txt = ex.getText(); if (txt.length() < 1) { - throw new RuntimeException("Should have gotten some text."); + throw new IllegalArgumentException("Should have gotten some text."); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
