diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 067df075d0..bb07ede477 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -290,11 +290,15 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { assertEquals("NameB1", b1.getNameName()); assertEquals("Sheet1", b1.getSheetName()); assertEquals(-1, b1.getSheetIndex()); + assertEquals(false, b1.isDeleted()); + assertEquals(false, b1.isHidden()); assertNotNull(b2); assertEquals("NameB2", b2.getNameName()); assertEquals("Sheet1", b2.getSheetName()); assertEquals(-1, b2.getSheetIndex()); + assertEquals(false, b2.isDeleted()); + assertEquals(false, b2.isHidden()); assertNotNull(sheet2); assertEquals("NameSheet2", sheet2.getNameName()); diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFName.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFName.java index b750e6454b..fde3908f9e 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFName.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFName.java @@ -150,11 +150,15 @@ public final class TestHSSFName extends BaseTestNamedRange { String reference = namedRange1.getRefersToFormula(); assertEquals(sheetName+"!$A$1:$D$10", reference); + assertEquals(false, namedRange1.isDeleted()); + assertEquals(false, namedRange1.isHidden()); HSSFName namedRange2 = wb.getNameAt(1); assertEquals(sheetName+"!$D$17:$G$27", namedRange2.getRefersToFormula()); assertEquals("SecondNamedRange", namedRange2.getNameName()); + assertEquals(false, namedRange2.isDeleted()); + assertEquals(false, namedRange2.isHidden()); wb.close(); }