diff options
author | Nick Burch <nick@apache.org> | 2020-04-19 15:40:37 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2020-04-19 15:40:37 +0000 |
commit | e9d0ddce93c5a0afc55aff52d50518edb2a6d8ad (patch) | |
tree | 7a348c748b8e31e5dc93b6f3d60ee3a6c14796a5 /src/testcases/org | |
parent | 248e85dbba6891f6355dd8d6ebd4d90ab29b135b (diff) | |
download | poi-e9d0ddce93c5a0afc55aff52d50518edb2a6d8ad.tar.gz poi-e9d0ddce93c5a0afc55aff52d50518edb2a6d8ad.zip |
Add unit tests for new Name.isHidden method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876725 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFName.java | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |