add disabled unit test for bug 55273: contributed by Martin Studer

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748606 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-15 16:36:31 +00:00
parent b99c753158
commit 5028639443
2 changed files with 18 additions and 0 deletions

View File

@ -3049,4 +3049,22 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
nwb.close();
}
@Ignore("currently fails on POI 3.15 beta 2")
@Test
public void test55273() {
Workbook wb = XSSFTestDataSamples.openSampleWorkbook("ExcelTables.xlsx");
Sheet sheet = wb.getSheet("ExcelTable");
Name name = wb.getName("TableAsRangeName");
assertEquals("TableName[#All]", name.getRefersToFormula());
// POI 3.15-beta 2 (2016-06-15): getSheetName throws IllegalArgumentException: Invalid CellReference: TableName[#All]
assertEquals("TableName", name.getSheetName());
XSSFSheet xsheet = (XSSFSheet) sheet;
List<XSSFTable> tables = xsheet.getTables();
assertEquals(2, tables.size()); //FIXME: how many tables are there in this spreadsheet?
assertEquals("Table1", tables.get(0).getName()); //FIXME: what is the table name?
assertEquals("Table2", tables.get(1).getName()); //FIXME: what is the table name?
}
}

Binary file not shown.