Fix for test-data of #59746

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2016-06-23 23:13:59 +00:00
parent 05f704d112
commit 5fce29e432
2 changed files with 4 additions and 6 deletions

View File

@ -49,10 +49,8 @@ public class FromHowTo {
XMLReader parser = fetchSheetParser(sst);
// To look up the Sheet Name / Sheet Order / rID,
// you need to process the core Workbook stream.
// Normally it's of the form rId# or rSheet#
InputStream sheet2 = r.getSheet("rId2");
// process the first sheet
InputStream sheet2 = r.getSheetsData().next();
InputSource sheetSource = new InputSource(sheet2);
parser.parse(sheetSource);
sheet2.close();

View File

@ -118,8 +118,8 @@ public class XSSFFileHandler extends SpreadsheetHandler {
private static final Set<String> EXPECTED_ADDITIONAL_FAILURES = new HashSet<String>();
static {
// expected sheet-id not found
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/52348.xlsx");
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/59021.xlsx");
// EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/52348.xlsx");
// EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/59021.xlsx");
// zip-bomb
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/54764.xlsx");
EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/54764-2.xlsx");