mirror of
https://github.com/apache/poi.git
synced 2025-02-08 02:58:18 +00:00
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
203f676d96
commit
953ab91274
@ -278,12 +278,12 @@ public final class TestHSSFHyperlink extends BaseTestHyperlink {
|
|||||||
XSSFCreationHelper helper = wb.getCreationHelper();
|
XSSFCreationHelper helper = wb.getCreationHelper();
|
||||||
XSSFHyperlink xlink = helper.createHyperlink(Hyperlink.LINK_URL);
|
XSSFHyperlink xlink = helper.createHyperlink(Hyperlink.LINK_URL);
|
||||||
xlink.setAddress("http://poi.apache.org/");
|
xlink.setAddress("http://poi.apache.org/");
|
||||||
xlink.setCellReference("C3");
|
xlink.setCellReference("D3");
|
||||||
xlink.setTooltip("tooltip");
|
xlink.setTooltip("tooltip");
|
||||||
HSSFHyperlink hlink = new HSSFHyperlink(xlink);
|
HSSFHyperlink hlink = new HSSFHyperlink(xlink);
|
||||||
|
|
||||||
assertEquals("http://poi.apache.org/", hlink.getAddress());
|
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
|
// 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());
|
// assertEquals("tooltip", hlink.getLabel());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user