org.apache.tika
Class TikaTest

java.lang.Object
  extended by TestCase
      extended by org.apache.tika.TikaTest

public class TikaTest
extends TestCase


Constructor Summary
TikaTest()
           
 
Method Summary
 void testHttpServerFileExtensions()
          This test checks that Tika correctly detects all the file extensions defined in the mime.types file (revision 819245) of the Apache HTTP Server project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TikaTest

public TikaTest()
Method Detail

testHttpServerFileExtensions

public void testHttpServerFileExtensions()
This test checks that Tika correctly detects all the file extensions defined in the mime.types file (revision 819245) of the Apache HTTP Server project. The tests were created with:
 cat docs/conf/mime.types | grep -v '#' | perl -lne '/\S\s+\S/ and do {
     my ($type, @ext) = split /\s+/;
     for my $ext (@ext) {
         print "assertEquals(\"$type\", tika.detect(\"x.$ext\"));";
     }
 }'
 



Copyright © 2007-2010 Apache Software Foundation. All Rights Reserved.