Author: kbennett
Date: Wed Oct 17 19:39:15 2007
New Revision: 585799

URL: http://svn.apache.org/viewvc?rev=585799&view=rev
Log:
TIKA-78: In AutoDetectParserTest, put each document type test in its own method 
so that one failure would not
prevent the other document types from being tested.

Modified:
    
incubator/tika/trunk/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java

Modified: 
incubator/tika/trunk/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java
URL: 
http://svn.apache.org/viewvc/incubator/tika/trunk/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java?rev=585799&r1=585798&r2=585799&view=diff
==============================================================================
--- 
incubator/tika/trunk/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java
 (original)
+++ 
incubator/tika/trunk/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java
 Wed Oct 17 19:39:15 2007
@@ -128,26 +128,44 @@
 //        assertAutoDetect(resource, badResource, type, wrongMimeType, 
content);
     }
 
-    /**
-     * This is where the data to the test comes from.  Each triplet will be
-     * passed to a method that will try different combinations of valid and
-     * invalid values.
-     *
-     * @throws Exception
-     */
-    public void testAutoDetect() throws Exception {
+
+    public void testExcel() throws Exception {
         assertAutoDetect("testEXCEL.xls", EXCEL, "Sample Excel Worksheet");
+    }
+
+    public void testHTML() throws Exception {
         assertAutoDetect("testHTML.html", HTML, "Test Indexation Html");
+    }
+
+    public void testOpenOffice() throws Exception {
         assertAutoDetect("testOpenOffice2.odt", OPENOFFICE,
                 "This is a sample Open Office document");
+    }
+
+    public void testPDF() throws Exception {
         assertAutoDetect("testPDF.pdf", PDF, "Content Analysis Toolkit");
+
+    }
+
+    public void testPowerpoint() throws Exception {
         assertAutoDetect("testPPT.ppt", POWERPOINT, "Sample Powerpoint Slide");
+    }
+
+    public void testRTF() throws Exception {
         assertAutoDetect("testRTF.rtf", RTF, "indexation Word");
+    }
+
+    public void testText() throws Exception {
         assertAutoDetect("testTXT.txt", PLAINTEXT, "indexation de Txt");
+    }
+
+    public void testWord() throws Exception {
         assertAutoDetect("testWORD.doc", WORD, "Sample Word Document");
-        assertAutoDetect("testXML.xml", XML, "Lius");
     }
 
+    public void testXML() throws Exception {
+        assertAutoDetect("testXML.xml", XML, "Lius");
+    }
 
     /**
      * Minimal class to encapsulate all parameters -- the main reason for


Reply via email to