Author: jukka
Date: Sat Oct 13 02:13:45 2007
New Revision: 584386
URL: http://svn.apache.org/viewvc?rev=584386&view=rev
Log:
TIKA-62 - Use TikaConfig.getDefaultConfig() instead of a hardcoded config path
in TestParsers
Modified:
incubator/tika/trunk/CHANGES.txt
incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java
Modified: incubator/tika/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/tika/trunk/CHANGES.txt?rev=584386&r1=584385&r2=584386&view=diff
==============================================================================
--- incubator/tika/trunk/CHANGES.txt (original)
+++ incubator/tika/trunk/CHANGES.txt Sat Oct 13 02:13:45 2007
@@ -94,3 +94,6 @@
42. TIKA-53 - XHTML SAX events from parsers (jukka)
43. TIKA-57 - Rename org.apache.tika.ms to org.apache.tika.parser.ms (jukka)
+
+44. TIKA-62 - Use TikaConfig.getDefaultConfig() instead of a hardcoded
+ config path in TestParsers (jukka)
Modified: incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java
URL:
http://svn.apache.org/viewvc/incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java?rev=584386&r1=584385&r2=584386&view=diff
==============================================================================
--- incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java
(original)
+++ incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java Sat Oct
13 02:13:45 2007
@@ -61,14 +61,9 @@
* sep + "log4j.properties";
*/
- // FIXME for now, fix filenames according to Maven testing layout
- // The file below should be the default configuration for the test of
- // getDefaultConfig() to be legitimate.
- final String tikaConfigFilename =
"target/classes/org/apache/tika/tika-config.xml";
-
testFilesBaseDir = new File("src/test/resources/test-documents");
- tc = new TikaConfig(tikaConfigFilename);
+ tc = TikaConfig.getDefaultConfig();
}
public void testPDFExtraction() throws Exception {