org.apache.tika.mime
Class TestMimeTypes

java.lang.Object
  extended by TestCase
      extended by org.apache.tika.mime.TestMimeTypes

public class TestMimeTypes
extends TestCase

Test Suite for the MimeTypes repository.


Constructor Summary
TestMimeTypes()
           
 
Method Summary
 void testBmpDetection()
           
 void testCaseSensitivity()
           
 void testCgmDetection()
           
 void testGifDetection()
           
 void testGuessMimeTypes()
          Tests MIME type determination based solely on the URL's extension.
 void testJavaRegex()
           
 void testJpegDetection()
           
 void testLoadMimeTypes()
           
 void testMimeDeterminationForTestDocuments()
          Tests MimeTypes.getMimeType(URL), which examines both the byte header and, if necessary, the URL's extension.
 void testOoxmlDetection()
           
 void testPdfDetection()
           
 void testPngDetection()
           
 void testPnmDetection()
           
 void testPsDetection()
           
 void testRawDetection()
           
 void testRdfXmlDetection()
           
 void testSvgDetection()
           
 void testSwfDetection()
           
 void testTiffDetection()
           
 void testWmfDetection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMimeTypes

public TestMimeTypes()
Method Detail

testCaseSensitivity

public void testCaseSensitivity()

testLoadMimeTypes

public void testLoadMimeTypes()
                       throws org.apache.tika.mime.MimeTypeException
Throws:
org.apache.tika.mime.MimeTypeException

testGuessMimeTypes

public void testGuessMimeTypes()
                        throws java.lang.Exception
Tests MIME type determination based solely on the URL's extension.

Throws:
java.lang.Exception

testOoxmlDetection

public void testOoxmlDetection()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testJpegDetection

public void testJpegDetection()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testTiffDetection

public void testTiffDetection()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testGifDetection

public void testGifDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testPngDetection

public void testPngDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testBmpDetection

public void testBmpDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testPnmDetection

public void testPnmDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testCgmDetection

public void testCgmDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testRdfXmlDetection

public void testRdfXmlDetection()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testSvgDetection

public void testSvgDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testPdfDetection

public void testPdfDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testSwfDetection

public void testSwfDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testWmfDetection

public void testWmfDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testPsDetection

public void testPsDetection()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testJavaRegex

public void testJavaRegex()
                   throws java.lang.Exception
Throws:
java.lang.Exception
Since:
TIKA-194

testRawDetection

public void testRawDetection()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testMimeDeterminationForTestDocuments

public void testMimeDeterminationForTestDocuments()
                                           throws java.lang.Exception
Tests MimeTypes.getMimeType(URL), which examines both the byte header and, if necessary, the URL's extension.

Throws:
java.lang.Exception


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