Class TikaMIMETypeDetectorTest


  • public class TikaMIMETypeDetectorTest
    extends Object
    Test case for TikaMIMETypeDetector class.
    Author:
    juergen, Michele Mostarda (michele.mostarda@gmail.com)
    • Constructor Detail

      • TikaMIMETypeDetectorTest

        public TikaMIMETypeDetectorTest()
    • Method Detail

      • testDetectRSS1ByContent

        public void testDetectRSS1ByContent()
                                     throws Exception
        Throws:
        Exception
      • testDetectRSS2ByContent

        public void testDetectRSS2ByContent()
                                     throws Exception
        Throws:
        Exception
      • testDetectRDFN3ByContent

        public void testDetectRDFN3ByContent()
                                      throws Exception
        Throws:
        Exception
      • testDetectRDFNQuadsByContent

        public void testDetectRDFNQuadsByContent()
                                          throws Exception
        Throws:
        Exception
      • testDetectRDFXMLByContent

        public void testDetectRDFXMLByContent()
                                       throws Exception
        Throws:
        Exception
      • testDetectTriXByContent

        public void testDetectTriXByContent()
                                     throws Exception
        Throws:
        Exception
      • testDetectAtomByContent

        public void testDetectAtomByContent()
                                     throws Exception
        Throws:
        Exception
      • testDetectHTMLByContent

        public void testDetectHTMLByContent()
                                     throws Exception
        Throws:
        Exception
      • testDetectRDFaByContent

        public void testDetectRDFaByContent()
                                     throws Exception
        Throws:
        Exception
      • testDetectXHTMLByContent

        public void testDetectXHTMLByContent()
                                      throws Exception
        Throws:
        Exception
      • testDetectWSDLByContent

        public void testDetectWSDLByContent()
                                     throws Exception
        Throws:
        Exception
      • testDetectZIPByContent

        public void testDetectZIPByContent()
                                    throws Exception
        Throws:
        Exception
      • testDetectCSVByContent

        public void testDetectCSVByContent()
                                    throws Exception
        Throws:
        Exception
      • testDetectContentPlainByMeta

        public void testDetectContentPlainByMeta()
                                          throws IOException
        Throws:
        IOException
      • testDetectTextNQuadsByMeta

        public void testDetectTextNQuadsByMeta()
                                        throws IOException
        Throws:
        IOException
      • testDetectTextTurtleByMeta

        public void testDetectTextTurtleByMeta()
                                        throws IOException
        Throws:
        IOException
      • testDetectExtensionN3ByMeta

        public void testDetectExtensionN3ByMeta()
                                         throws IOException
        Throws:
        IOException
      • testDetectApplicationXMLByMeta

        public void testDetectApplicationXMLByMeta()
                                            throws IOException
        Throws:
        IOException
      • testDetectApplicationCSVByMeta

        public void testDetectApplicationCSVByMeta()
                                            throws IOException
        Throws:
        IOException
      • testDetectApplicationYAMLByMeta

        public void testDetectApplicationYAMLByMeta()
                                             throws IOException
        Throws:
        IOException
      • testRDFXMLByContentAndName

        public void testRDFXMLByContentAndName()
                                        throws Exception
        Throws:
        Exception
      • testTriXByContentAndName

        public void testTriXByContentAndName()
                                      throws Exception
        Throws:
        Exception
      • testRSS1ByContentAndName

        public void testRSS1ByContentAndName()
                                      throws Exception
        Throws:
        Exception
      • testRSS2ByContentAndName

        public void testRSS2ByContentAndName()
                                      throws Exception
        Throws:
        Exception
      • testDetectRDFN3ByContentAndName

        public void testDetectRDFN3ByContentAndName()
                                             throws Exception
        Throws:
        Exception
      • testDetectRDFNQuadsByContentAndName

        public void testDetectRDFNQuadsByContentAndName()
                                                 throws Exception
        Throws:
        Exception
      • testAtomByContentAndName

        public void testAtomByContentAndName()
                                      throws Exception
        Throws:
        Exception
      • testHTMLByContentAndName

        public void testHTMLByContentAndName()
                                      throws Exception
        Throws:
        Exception
      • testXHTMLByContentAndName

        public void testXHTMLByContentAndName()
                                       throws Exception
        Throws:
        Exception
      • testWSDLByContentAndName

        public void testWSDLByContentAndName()
                                      throws Exception
        Throws:
        Exception
      • testZipByContentAndName

        public void testZipByContentAndName()
                                     throws Exception
        Throws:
        Exception
      • testRDFaByContentAndName

        public void testRDFaByContentAndName()
                                      throws Exception
        Throws:
        Exception
      • testCSVByContentAndName

        public void testCSVByContentAndName()
                                     throws Exception
        Throws:
        Exception
      • testYAMLByContentAndName

        public void testYAMLByContentAndName()
                                      throws Exception
        Test done only based on content is failed because the standard does not require to have "%YAML" header.
        Throws:
        Exception - if there is an error detecting the mime type from the content and name