mirror of https://github.com/apache/poi.git
Add another test file for #54764, and a test that uses it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1615731 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
526abfe065
commit
69015a079e
|
@ -1860,9 +1860,21 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||||
|
|
||||||
// Now check the spreadsheet itself
|
// Now check the spreadsheet itself
|
||||||
// TODO Fix then enable
|
// TODO Fix then enable
|
||||||
// XSSFWorkbook wb = new XSSFWorkbook(pkg);
|
/*
|
||||||
// XSSFSheet s = wb.getSheetAt(0);
|
try {
|
||||||
// TODO Check
|
new XSSFWorkbook(pkg);
|
||||||
|
fail("Should fail as too much expansion occurs");
|
||||||
|
} catch(POIXMLException e) {
|
||||||
|
// Expected
|
||||||
|
} */
|
||||||
|
|
||||||
|
// Try with one with the entities in the Content Types
|
||||||
|
try {
|
||||||
|
XSSFTestDataSamples.openSamplePackage("54764-2.xlsx");
|
||||||
|
fail("Should fail as too much expansion occurs");
|
||||||
|
} catch(Exception e) {
|
||||||
|
// Expected
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue