tika-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject svn commit: r575059 - /incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java
Date Wed, 12 Sep 2007 20:07:37 GMT
Author: siren
Date: Wed Sep 12 13:07:37 2007
New Revision: 575059

URL: http://svn.apache.org/viewvc?rev=575059&view=rev
Log:
TIKA-10 Remove MimeInfoException catch clauses and import from TestParsers. Contributed by
Keith R. Bennett.

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

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=575059&r1=575058&r2=575059&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 Wed Sep 12 13:07:37
2007
@@ -29,7 +29,6 @@
 import org.apache.tika.parser.Parser;
 import org.apache.tika.parser.ParserFactory;
 import org.apache.tika.utils.Utils;
-import net.hedges.mimeinfo.MimeInfoException;
 
 /**
  * Junit test class   
@@ -46,8 +45,7 @@
     public void setUp() {
         String sep = File.separator;
         StringTokenizer st = new StringTokenizer(System.getProperty(
-
-        "java.class.path"), File.pathSeparator);
+                "java.class.path"), File.pathSeparator);
 
         classDir = new File(st.nextToken());
 
@@ -75,8 +73,6 @@
                 + "testFiles" + File.separator + "testPDF.PDF");
         try {
             parser = ParserFactory.getParser(testFile, tc);
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
@@ -91,8 +87,6 @@
                 + "testFiles" + File.separator + "testTXT.txt");
         try {
             parser = ParserFactory.getParser(testFile, tc);
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
@@ -107,9 +101,6 @@
                 + "testFiles" + File.separator + "testRTF.rtf");
         try {
             parser = ParserFactory.getParser(testFile, tc);
-
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
@@ -124,8 +115,6 @@
                 + "testFiles" + File.separator + "testXML.xml");
         try {
             parser = ParserFactory.getParser(testFile, tc);
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
@@ -141,8 +130,6 @@
         try {
             parser = ParserFactory.getParser(testFile, tc);
             System.out.println(parser.getStrContent());
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
@@ -158,8 +145,6 @@
         try {
             parser = ParserFactory.getParser(testFile, tc);
             System.out.println(parser.getStrContent());
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
@@ -176,8 +161,6 @@
             parser = ParserFactory.getParser(testFile, tc);
             // System.out.println(parser.getStrContent());
             printContentsInfo(parser);
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
@@ -194,14 +177,12 @@
             parser = ParserFactory.getParser(testFile, tc);
             // System.out.println(parser.getStrContent());
             printContentsInfo(parser);
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {
             e.printStackTrace();
         }
-
+        
     }
 
     public void testHTMLExtraction() {
@@ -213,8 +194,6 @@
             assertEquals("Title : Test Indexation Html", (parser.getContent("title")).getValue());
             // System.out.println(parser.getStrContent());
             printContentsInfo(parser);
-        } catch (MimeInfoException e) {
-            e.printStackTrace();
         } catch (IOException e) {
             e.printStackTrace();
         } catch (LiusException e) {



Mime
View raw message