소스 검색

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
tags/REL_3_11_BETA2
Nick Burch 9 년 전
부모
커밋
69015a079e
2개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. 15
    3
      src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
  2. BIN
      test-data/spreadsheet/54764-2.xlsx

+ 15
- 3
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java 파일 보기

@@ -1860,9 +1860,21 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
// Now check the spreadsheet itself
// TODO Fix then enable
// XSSFWorkbook wb = new XSSFWorkbook(pkg);
// XSSFSheet s = wb.getSheetAt(0);
// TODO Check
/*
try {
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
}
}
/**

BIN
test-data/spreadsheet/54764-2.xlsx 파일 보기


Loading…
취소
저장