diff options
author | Javen O'Neal <onealj@apache.org> | 2015-11-02 09:01:23 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2015-11-02 09:01:23 +0000 |
commit | f0bf416f7d5d29a904be6254541248cab503a529 (patch) | |
tree | 78e66b279f85257ee76499b125d50323726a43e8 /src/testcases/org/apache | |
parent | b6b74d8f111f216986945acec50586107eebe535 (diff) | |
download | poi-f0bf416f7d5d29a904be6254541248cab503a529.tar.gz poi-f0bf416f7d5d29a904be6254541248cab503a529.zip |
upgrade spreadsheet Hyperlink unit tests from junit3 to junit4
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711910 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java index 885328ff33..bc1fafe8a7 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFHyperlink.java @@ -88,6 +88,7 @@ public final class TestHSSFHyperlink extends BaseTestHyperlink { assertEquals(HSSFHyperlink.LINK_DOCUMENT, link.getType()); } + @Test public void testModify() { HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("HyperlinksOnManySheets.xls"); @@ -118,6 +119,7 @@ public final class TestHSSFHyperlink extends BaseTestHyperlink { * link.setAddress("'Target Sheet-1'!A1"); //common between XSSF and HSSF * @throws IOException */ + @Test public void testCreateDocumentLink() throws IOException { HSSFWorkbook wb = new HSSFWorkbook(); @@ -164,6 +166,7 @@ public final class TestHSSFHyperlink extends BaseTestHyperlink { wbBack.close(); } + @Test public void testCloneSheet() { HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("HyperlinksOnManySheets.xls"); @@ -183,6 +186,7 @@ public final class TestHSSFHyperlink extends BaseTestHyperlink { assertEquals("http://poi.apache.org/hssf/", link.getAddress()); } + @Test public void testCreate() throws IOException { HSSFWorkbook wb = new HSSFWorkbook(); @@ -214,6 +218,7 @@ public final class TestHSSFHyperlink extends BaseTestHyperlink { * Test that HSSFSheet#shiftRows moves hyperlinks, * see bugs #46445 and #29957 */ + @Test public void testShiftRows(){ HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("46445.xls"); |