bug 59775: fix cell address index error

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-07-17 04:59:12 +00:00
parent dcf43f75bd
commit 9f45341c9c
1 changed files with 2 additions and 1 deletions

View File

@ -1223,8 +1223,9 @@ public abstract class BaseTestSheet {
assertEquals("list size after add", 1, sheet.getHyperlinkList().size());
assertEquals("list", hyperlink, sheet.getHyperlinkList().get(0));
CellAddress B6 = new CellAddress(5, 1);
assertEquals("row, col", hyperlink, sheet.getHyperlink(5, 1));
assertEquals("addr", hyperlink, sheet.getHyperlink(new CellAddress("B4")));
assertEquals("addr", hyperlink, sheet.getHyperlink(B6));
assertEquals("no hyperlink at A1", null, sheet.getHyperlink(CellAddress.A1));
workbook.close();