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
This commit is contained in:
parent
9b8250832e
commit
e1e740bc3c
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user