aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hpsf
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-08-12 19:02:41 +0000
committerNick Burch <nick@apache.org>2008-08-12 19:02:41 +0000
commit8ad0a4f34ceae63cda3e0e4bef34455e3992291f (patch)
treedf1fb3b805532c405b5e347bc76c91ef8a7cff31 /src/testcases/org/apache/poi/hpsf
parent80ea376dc0bc818ecc5dbd033e783eff0a6a49a4 (diff)
downloadpoi-8ad0a4f34ceae63cda3e0e4bef34455e3992291f.tar.gz
poi-8ad0a4f34ceae63cda3e0e4bef34455e3992291f.zip
Fix a typo in the file name, and add a generic method to POITextExtractor to get the appropriate metadata text extractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@685267 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hpsf')
-rw-r--r--src/testcases/org/apache/poi/hpsf/extractor/TestHPSFPropertiesExtractor.java (renamed from src/testcases/org/apache/poi/hpsf/extractor/TestHPFSPropertiesExtractor.java)14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testcases/org/apache/poi/hpsf/extractor/TestHPFSPropertiesExtractor.java b/src/testcases/org/apache/poi/hpsf/extractor/TestHPSFPropertiesExtractor.java
index 7d967874a4..3a189353d0 100644
--- a/src/testcases/org/apache/poi/hpsf/extractor/TestHPFSPropertiesExtractor.java
+++ b/src/testcases/org/apache/poi/hpsf/extractor/TestHPSFPropertiesExtractor.java
@@ -25,7 +25,7 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import junit.framework.TestCase;
-public class TestHPFSPropertiesExtractor extends TestCase {
+public class TestHPSFPropertiesExtractor extends TestCase {
private String dir;
protected void setUp() throws Exception {
@@ -37,7 +37,7 @@ public class TestHPFSPropertiesExtractor extends TestCase {
POIFSFileSystem fs = new POIFSFileSystem(
new FileInputStream(new File(dir, "TestMickey.doc"))
);
- HPFSPropertiesExtractor ext = new HPFSPropertiesExtractor(fs);
+ HPSFPropertiesExtractor ext = new HPSFPropertiesExtractor(fs);
ext.getText();
// Check each bit in turn
@@ -60,7 +60,7 @@ public class TestHPFSPropertiesExtractor extends TestCase {
POIFSFileSystem fs = new POIFSFileSystem(
new FileInputStream(new File(dir, "TestUnicode.xls"))
);
- HPFSPropertiesExtractor ext = new HPFSPropertiesExtractor(fs);
+ HPSFPropertiesExtractor ext = new HPSFPropertiesExtractor(fs);
ext.getText();
// Check each bit in turn
@@ -83,7 +83,7 @@ public class TestHPFSPropertiesExtractor extends TestCase {
POIFSFileSystem fs = new POIFSFileSystem(
new FileInputStream(new File(dir, "TestMickey.doc"))
);
- HPFSPropertiesExtractor ext = new HPFSPropertiesExtractor(fs);
+ HPSFPropertiesExtractor ext = new HPSFPropertiesExtractor(fs);
// Custom properties are part of the document info stream
String dinfText = ext.getDocumentSummaryInformationText();
@@ -102,9 +102,9 @@ public class TestHPFSPropertiesExtractor extends TestCase {
HSSFWorkbook wb = new HSSFWorkbook(fs);
ExcelExtractor excelExt = new ExcelExtractor(wb);
- String fsText = (new HPFSPropertiesExtractor(fs)).getText();
- String hwText = (new HPFSPropertiesExtractor(wb)).getText();
- String eeText = (new HPFSPropertiesExtractor(excelExt)).getText();
+ String fsText = (new HPSFPropertiesExtractor(fs)).getText();
+ String hwText = (new HPSFPropertiesExtractor(wb)).getText();
+ String eeText = (new HPSFPropertiesExtractor(excelExt)).getText();
assertEquals(fsText, hwText);
assertEquals(fsText, eeText);