]> source.dussan.org Git - poi.git/commitdiff
bug 58572: change hyperlink reference to be consistent with TestXSSFHyperlink#testCop...
authorJaven O'Neal <onealj@apache.org>
Mon, 2 Nov 2015 13:02:44 +0000 (13:02 +0000)
committerJaven O'Neal <onealj@apache.org>
Mon, 2 Nov 2015 13:02:44 +0000 (13:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711952 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java

index c7f01840f91258a7ccc389b4b9b8863a9042696a..c0492c699806b8d716dd5ea428fb669773a6ba72 100644 (file)
@@ -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());