aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2009-12-26 02:17:34 +0000
committerJosh Micich <josh@apache.org>2009-12-26 02:17:34 +0000
commitfeafcb8f48e24a6b1967e4cbf9e50d8f1b3224fd (patch)
tree9895a650914dded40eefb3f018702376de7301db /src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java
parent136e09be840acfdf69f77b42725d2c2a6ce1b2f6 (diff)
downloadpoi-feafcb8f48e24a6b1967e4cbf9e50d8f1b3224fd.tar.gz
poi-feafcb8f48e24a6b1967e4cbf9e50d8f1b3224fd.zip
Replaced getInstance methods with field for instances of ITestDataProvider. Some simplification in hierarchy of related tests.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@893929 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java')
-rw-r--r--src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java
index 7c0d01b3a3..6e226e331b 100644
--- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java
+++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFHyperlink.java
@@ -26,9 +26,8 @@ import org.apache.poi.xssf.XSSFITestDataProvider;
import org.apache.poi.xssf.XSSFTestDataSamples;
public final class TestXSSFHyperlink extends BaseTestHyperlink {
- @Override
- protected XSSFITestDataProvider getTestDataProvider() {
- return XSSFITestDataProvider.getInstance();
+ public TestXSSFHyperlink() {
+ super(XSSFITestDataProvider.instance);
}
@Override
@@ -123,7 +122,7 @@ public final class TestXSSFHyperlink extends BaseTestHyperlink {
/**
* Only for WithMoreVariousData.xlsx !
*/
- private void doTestHyperlinkContents(XSSFSheet sheet) {
+ private static void doTestHyperlinkContents(XSSFSheet sheet) {
assertNotNull(sheet.getRow(3).getCell(2).getHyperlink());
assertNotNull(sheet.getRow(14).getCell(2).getHyperlink());
assertNotNull(sheet.getRow(15).getCell(2).getHyperlink());