aboutsummaryrefslogtreecommitdiffstats
path: root/poi-integration/src/test
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-04-26 15:12:32 +0000
committerDominik Stadler <centic@apache.org>2021-04-26 15:12:32 +0000
commitf71833e1d9696710c09dc4b5ca13da1a9a2b2e80 (patch)
tree38252c493f9a7f0c733a204aefe06483904fe29e /poi-integration/src/test
parent6b1e23665d413068d0cdb47b97d8f93a467ec0d0 (diff)
downloadpoi-f71833e1d9696710c09dc4b5ca13da1a9a2b2e80.tar.gz
poi-f71833e1d9696710c09dc4b5ca13da1a9a2b2e80.zip
Do not return null for POITextExtractor.getMetadataTextExtractor() for old Excel files
To adhere to the JavaDoc of the POITextExtractor interface which does not document a possible null return. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889205 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-integration/src/test')
-rw-r--r--poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java b/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java
index 9ee54b4790..1e0348cac5 100644
--- a/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java
+++ b/poi-integration/src/test/java/org/apache/poi/stress/HSSFFileHandler.java
@@ -107,7 +107,7 @@ class HSSFFileHandler extends SpreadsheetHandler {
// a test-case to test this locally without executing the full TestAllFiles
@Test
void test() throws Exception {
- File file = new File("test-data/spreadsheet/49219.xls");
+ File file = new File("../test-data/spreadsheet/59074.xls");
try (InputStream stream = new FileInputStream(file)) {
handleFile(stream, file.getPath());
@@ -122,6 +122,6 @@ class HSSFFileHandler extends SpreadsheetHandler {
@Test
@SuppressWarnings("java:S2699")
void testExtractor() throws Exception {
- handleExtracting(new File("test-data/spreadsheet/BOOK_in_capitals.xls"));
+ handleExtracting(new File("../test-data/spreadsheet/59074.xls"));
}
} \ No newline at end of file