From 953ab91274861cb8d68b6a86474418ef67d542d9 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Mon, 2 Nov 2015 13:02:44 +0000 Subject: [PATCH] bug 58572: change hyperlink reference to be consistent with TestXSSFHyperlink#testCopyXSSFHyperlink git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711952 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java index c7f01840f9..c0492c6998 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java @@ -278,12 +278,12 @@ public final class TestHSSFHyperlink extends BaseTestHyperlink { XSSFCreationHelper helper = wb.getCreationHelper(); XSSFHyperlink xlink = helper.createHyperlink(Hyperlink.LINK_URL); xlink.setAddress("http://poi.apache.org/"); - xlink.setCellReference("C3"); + xlink.setCellReference("D3"); xlink.setTooltip("tooltip"); HSSFHyperlink hlink = new HSSFHyperlink(xlink); assertEquals("http://poi.apache.org/", hlink.getAddress()); - assertEquals("C3", new CellReference(hlink.getFirstRow(), hlink.getFirstColumn()).formatAsString()); + assertEquals("D3", new CellReference(hlink.getFirstRow(), hlink.getFirstColumn()).formatAsString()); // Are HSSFHyperlink.label and XSSFHyperlink.tooltip the same? If so, perhaps one of these needs renamed for a consistent Hyperlink interface // assertEquals("tooltip", hlink.getLabel()); -- 2.39.5