Revision: 15117
http://gate.svn.sourceforge.net/gate/?rev=15117&view=rev
Author: markagreenwood
Date: 2012-01-18 17:55:55 +0000 (Wed, 18 Jan 2012)
Log Message:
-----------
more tika format tests
Modified Paths:
--------------
gate/trunk/src/gate/corpora/TestTikaFormats.java
Added Paths:
-----------
gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.ods
gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.xls
gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.xlsx
Modified: gate/trunk/src/gate/corpora/TestTikaFormats.java
===================================================================
--- gate/trunk/src/gate/corpora/TestTikaFormats.java 2012-01-18 16:30:37 UTC
(rev 15116)
+++ gate/trunk/src/gate/corpora/TestTikaFormats.java 2012-01-18 17:55:55 UTC
(rev 15117)
@@ -1,16 +1,16 @@
/*
* TestTikaFormats.java
- *
+ *
* Copyright (c) 1995-2012, The University of Sheffield. See the file
* COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
- *
+ *
* This file is part of GATE (see http://gate.ac.uk/), and is free software,
* licenced under the GNU Library General Public License, Version 2, June 1991
* (in the distribution as file licence.html, and also available at
* http://gate.ac.uk/gate/licence.html).
- *
+ *
* Mark A. Greenwood, 16/01/2012
- *
+ *
* $Id$
*/
@@ -44,14 +44,14 @@
Document doc = Factory.newDocument(url);
assertNotNull(doc);
-
+
assertTrue(doc.getContent().toString().indexOf("Testing Tika Format
Parsers") != -1);
}
-
+
public void testDOC() throws Exception {
doTest("doc");
}
-
+
public void testDOCX() throws Exception {
doTest("docx");
}
@@ -59,7 +59,7 @@
public void testODT() throws Exception {
doTest("odt");
}
-
+
public void testRTF() throws Exception {
doTest("rtf");
}
@@ -67,19 +67,31 @@
public void testPDF() throws Exception {
doTest("pdf");
}
-
+
public void testODP() throws Exception {
doTest("odp");
}
-
+
public void testPPT() throws Exception {
doTest("ppt");
}
-
+
public void testPPTX() throws Exception {
doTest("pptx");
}
+ public void testXLS() throws Exception {
+ doTest("xls");
+ }
+
+ public void testXLSX() throws Exception {
+ doTest("xlsx");
+ }
+
+ public void testODS() throws Exception {
+ doTest("ods");
+ }
+
/** Test suite routine for the test runner */
public static Test suite() {
return new TestSuite(TestTikaFormats.class);
Added: gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.ods
===================================================================
(Binary files differ)
Property changes on:
gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.ods
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.xls
===================================================================
(Binary files differ)
Property changes on:
gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.xls
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.xlsx
===================================================================
(Binary files differ)
Property changes on:
gate/trunk/src/gate/resources/gate.ac.uk/tests/tika/tika-test.xlsx
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs