Author: rhauch
Date: 2009-05-21 15:10:30 -0400 (Thu, 21 May 2009)
New Revision: 921
Added:
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectorConfig.java
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectors.java
trunk/dna-graph/src/test/java/org/jboss/dna/graph/mimetype/AbstractMimeTypeTest.java
Removed:
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectorConfig.java
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectors.java
trunk/dna-repository/src/test/java/org/jboss/dna/repository/mimetype/AbstractMimeTypeTest.java
Modified:
trunk/dna-repository/src/main/java/org/jboss/dna/repository/DnaEngine.java
trunk/dna-repository/src/test/java/org/jboss/dna/repository/sequencer/StreamSequencerAdapterTest.java
trunk/extensions/dna-mimetype-detector-aperture/pom.xml
trunk/extensions/dna-mimetype-detector-aperture/src/test/java/org/jboss/dna/mimetype/aperture/MimeTypeTest.java
Log:
DNA-404 Remove ObservationService, migrate usage to observe RepositoryLibrary
Moved the MimeTypeDetectors and MimeTypeDetectorConfig classes into 'dna-graph'.
Copied:
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectorConfig.java
(from rev 920,
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectorConfig.java)
===================================================================
---
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectorConfig.java
(rev 0)
+++
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectorConfig.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -0,0 +1,55 @@
+/*
+ * JBoss DNA (
http://www.jboss.org/dna)
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ * See the AUTHORS.txt file in the distribution for a full listing of
+ * individual contributors.
+ *
+ * JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
+ * is licensed to you under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * JBoss DNA is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.dna.graph.mimetype;
+
+import java.util.Map;
+import org.jboss.dna.common.component.ComponentConfig;
+import org.jboss.dna.graph.mimetype.MimeTypeDetector;
+
+/**
+ * @author jverhaeg
+ */
+public class MimeTypeDetectorConfig extends ComponentConfig {
+
+ public MimeTypeDetectorConfig( String name,
+ String description,
+ Map<String, Object> properties,
+ String classname,
+ String[] classpath ) {
+ super(name, description, properties, classname, classpath);
+ }
+
+ public MimeTypeDetectorConfig( String name,
+ String description,
+ Map<String, Object> properties,
+ Class<? extends MimeTypeDetector> clazz ) {
+ super(name, description, properties, clazz.getName());
+ }
+
+ public MimeTypeDetectorConfig( String name,
+ String description,
+ Class<? extends MimeTypeDetector> clazz ) {
+ super(name, description, clazz.getName());
+ }
+}
Property changes on:
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectorConfig.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied: trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectors.java
(from rev 920,
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectors.java)
===================================================================
--- trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectors.java
(rev 0)
+++
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectors.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -0,0 +1,162 @@
+/*
+ * JBoss DNA (
http://www.jboss.org/dna)
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ * See the AUTHORS.txt file in the distribution for a full listing of
+ * individual contributors.
+ *
+ * JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
+ * is licensed to you under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * JBoss DNA is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.dna.graph.mimetype;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.concurrent.atomic.AtomicReference;
+import net.jcip.annotations.ThreadSafe;
+import org.jboss.dna.common.component.ClassLoaderFactory;
+import org.jboss.dna.common.component.ComponentLibrary;
+import org.jboss.dna.common.component.StandardClassLoaderFactory;
+import org.jboss.dna.common.util.Logger;
+import org.jboss.dna.graph.mimetype.MimeTypeDetector;
+
+/**
+ * Facility for managing {@link MimeTypeDetectorConfig}s.
+ *
+ * @author jverhaeg
+ */
+@ThreadSafe
+public final class MimeTypeDetectors implements MimeTypeDetector {
+
+ /**
+ * Class loader factory instance that always returns the {@link
Thread#getContextClassLoader() current thread's context class
+ * loader}, or if <code>null</code> the class loader for this class.
+ */
+ protected static final ClassLoaderFactory DEFAULT_CLASSLOADER_FACTORY = new
StandardClassLoaderFactory(
+
MimeTypeDetectors.class.getClassLoader());
+
+ private final ComponentLibrary<MimeTypeDetector, MimeTypeDetectorConfig>
library;
+ private final AtomicReference<Logger> logger;
+
+ public MimeTypeDetectors() {
+ logger = new AtomicReference<Logger>(Logger.getLogger(getClass()));
+ library = new ComponentLibrary<MimeTypeDetector,
MimeTypeDetectorConfig>(true);
+ library.setClassLoaderFactory(DEFAULT_CLASSLOADER_FACTORY);
+ }
+
+ /**
+ * Adds the configuration for a MIME-type detector <em>before</em> any
previously added configurations, or updates any
+ * existing one that represents the {@link MimeTypeDetectorConfig#equals(Object) same
configuration}
+ *
+ * @param config the new configuration; must not be <code>null</code>.
+ * @return <code>true</code> if the detector was added, or
<code>false</code> if there already was an existing detector
+ * configuration.
+ * @see #removeDetector(MimeTypeDetectorConfig)
+ */
+ public boolean addDetector( MimeTypeDetectorConfig config ) {
+ return library.add(config);
+ }
+
+ /**
+ * Gets the class loader factory that should be used to load MIME-type detectors. By
default, this service uses a factory that
+ * will return either the {@link Thread#getContextClassLoader() current thread's
context class loader}, or if
+ * <code>null</code> the class loader for this class.
+ *
+ * @return the class loader factory; never <code>null</code>
+ * @see #setClassLoaderFactory(ClassLoaderFactory)
+ */
+ public ClassLoaderFactory getClassLoaderFactory() {
+ return library.getClassLoaderFactory();
+ }
+
+ /**
+ * Gets the logger for this system
+ *
+ * @return the logger
+ */
+ public Logger getLogger() {
+ return logger.get();
+ }
+
+ /**
+ * Returns the first non-null result of iterating over the {@link
#addDetector(MimeTypeDetectorConfig) registered} MIME-type
+ * detectors in the reverse order in which they were registered to determine the
MIME-type of a data source, using its
+ * supplied content and/or its supplied name, depending upon the implementation. If
the MIME-type cannot be determined by any
+ * registered detector, "text/plain" or
"application/octet-stream" will be returned, the former only if it is determined
the
+ * stream contains no nulls.
+ *
+ * @param name The name of the data source; may be <code>null</code>.
+ * @param content The content of the data source; may be
<code>null</code>.
+ * @return The MIME-type of the data source; never <code>null</code>.
+ * @throws IOException If an error occurs reading the supplied content.
+ */
+ public String mimeTypeOf( String name,
+ InputStream content ) throws IOException {
+ if (content != null && content.markSupported()) {
+ content.mark(Integer.MAX_VALUE);
+ }
+ // Check if registered detectors can determine MIME-type
+ for (MimeTypeDetector detector : library.getInstances()) {
+ String mimeType = detector.mimeTypeOf(name, content);
+ if (mimeType != null) return mimeType;
+ }
+ // If not, try to analyze stream to determine if it represents text or binary
content
+ if (content != null && content.markSupported()) {
+ try {
+ content.reset();
+ for (int chr = content.read(); chr >= 0; chr = content.read()) {
+ if (chr == 0) return "application/octet-stream";
+ }
+ } catch (IOException meansTooManyBytesRead) {
+ return "application/octet-stream";
+ }
+ }
+ return "text/plain";
+ }
+
+ /**
+ * Removes the configuration for a MIME-type detector.
+ *
+ * @param config the configuration to be removed; must not be
<code>null</code>.
+ * @return <code>true</code> if the configuration was removed, or
<code>false</code> if there was no existing configuration
+ * @see #addDetector(MimeTypeDetectorConfig)
+ */
+ public boolean removeDetector( MimeTypeDetectorConfig config ) {
+ return library.remove(config);
+ }
+
+ /**
+ * Sets the Maven Repository that should be used to load the MIME-type detectors. By
default, this service uses a factory that
+ * will return either the {@link Thread#getContextClassLoader() current thread's
context class loader}, or if
+ * <code>null</code> the class loader for this class.
+ *
+ * @param classLoaderFactory the class loader factory, or
<code>null</code> if the default class loader factory should be
+ * used.
+ * @see #getClassLoaderFactory()
+ */
+ public void setClassLoaderFactory( ClassLoaderFactory classLoaderFactory ) {
+ library.setClassLoaderFactory(classLoaderFactory != null ? classLoaderFactory :
DEFAULT_CLASSLOADER_FACTORY);
+ }
+
+ /**
+ * Sets the logger for this system.
+ *
+ * @param logger the logger, or <code>null</code> if the standard logging
should be used
+ */
+ public void setLogger( Logger logger ) {
+ this.logger.set(logger != null ? logger : Logger.getLogger(getClass()));
+ }
+}
Property changes on:
trunk/dna-graph/src/main/java/org/jboss/dna/graph/mimetype/MimeTypeDetectors.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied:
trunk/dna-graph/src/test/java/org/jboss/dna/graph/mimetype/AbstractMimeTypeTest.java (from
rev 920,
trunk/dna-repository/src/test/java/org/jboss/dna/repository/mimetype/AbstractMimeTypeTest.java)
===================================================================
--- trunk/dna-graph/src/test/java/org/jboss/dna/graph/mimetype/AbstractMimeTypeTest.java
(rev 0)
+++
trunk/dna-graph/src/test/java/org/jboss/dna/graph/mimetype/AbstractMimeTypeTest.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -0,0 +1,1417 @@
+/*
+ * JBoss DNA (
http://www.jboss.org/dna)
+ * See the COPYRIGHT.txt file distributed with this work for information
+ * regarding copyright ownership. Some portions may be licensed
+ * to Red Hat, Inc. under one or more contributor license agreements.
+ * See the AUTHORS.txt file in the distribution for a full listing of
+ * individual contributors.
+ *
+ * JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
+ * is licensed to you under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * JBoss DNA is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.dna.graph.mimetype;
+
+import static org.hamcrest.core.Is.is;
+import static org.hamcrest.core.IsNull.notNullValue;
+import static org.junit.Assert.assertThat;
+import java.io.File;
+import java.io.InputStream;
+import java.util.Collections;
+import org.jboss.dna.graph.mimetype.MimeTypeDetector;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * All test classes that test {@link MimeTypeDetector MIME-type detector implementations}
should extend this class to help ensure
+ * all implementations test the same types of data sources.
+ *
+ * @author John Verhaeg
+ */
+public abstract class AbstractMimeTypeTest {
+
+ private final MimeTypeDetectorConfig config;
+ private MimeTypeDetectors detectors;
+
+ protected AbstractMimeTypeTest( Class<? extends MimeTypeDetector> detector ) {
+ assertThat(detector, notNullValue());
+ this.config = new MimeTypeDetectorConfig("MIME-Type Detector",
"MIME-Type Detector",
+ Collections.<String,
Object>emptyMap(), detector.getName(), null);
+ }
+
+ @Before
+ public void before() throws Exception {
+ detectors = new MimeTypeDetectors();
+ detectors.addDetector(config);
+ }
+
+ @After
+ public void after() {
+ detectors.removeDetector(config);
+ }
+
+ protected void testMimeType( String name,
+ String mimeType ) throws Exception {
+ InputStream content = new
File("../../dna-repository/src/test/resources/" +
name).toURI().toURL().openStream();
+ assertThat(detectors.mimeTypeOf(name, content), is(mimeType));
+ }
+
+ protected abstract String expectedMimeTypeForText_test_txt();
+
+ protected abstract String expectedMimeTypeForText_plain_text_txt();
+
+ protected abstract String expectedMimeTypeForText_plain_text_ansi_txt();
+
+ protected abstract String expectedMimeTypeForText_plain_text_empty_txt();
+
+ protected abstract String expectedMimeTypeForText_plain_text_utf16be_txt();
+
+ protected abstract String expectedMimeTypeForText_plain_text_utf16le_txt();
+
+ protected abstract String expectedMimeTypeForText_plain_text_utf8_txt();
+
+ protected abstract String
expectedMimeTypeForText_plain_text_with_null_character_txt();
+
+ protected abstract String expectedMimeTypeForText_plain_text_without_extension();
+
+ protected abstract String expectedMimeTypeForRtf_test_rtf();
+
+ protected abstract String expectedMimeTypeForRtf_rtf_openoffice_1_1_5_rtf();
+
+ protected abstract String expectedMimeTypeForRtf_rtf_openoffice_2_0_rtf();
+
+ protected abstract String expectedMimeTypeForRtf_rtf_staroffice_5_2_rtf();
+
+ protected abstract String expectedMimeTypeForRtf_rtf_word_2000_rtf();
+
+ protected abstract String expectedMimeTypeForMp3_test_mp3();
+
+ protected abstract String expectedMimeTypeForMp3_test_128_44_jstereo_mp3();
+
+ protected abstract String expectedMimeTypeForMp3_jingle1_mp3();
+
+ protected abstract String expectedMimeTypeForMp3_jingle2_mp3();
+
+ protected abstract String expectedMimeTypeForMp3_jingle3_mp3();
+
+ protected abstract String expectedMimeTypeForWav();
+
+ protected abstract String expectedMimeTypeForBmp();
+
+ protected abstract String expectedMimeTypeForGif();
+
+ protected abstract String expectedMimeTypeForIcon();
+
+ protected abstract String expectedMimeTypeForJpeg_test_jpg();
+
+ protected abstract String expectedMimeTypeForJpeg_jpg_exif_img_9367_JPG();
+
+ protected abstract String expectedMimeTypeForJpeg_jpg_exif_zerolength_jpg();
+
+ protected abstract String expectedMimeTypeForJpeg_jpg_geotagged_jpg();
+
+ protected abstract String expectedMimeTypeForJpeg_jpg_geotagged_ipanema_jpg();
+
+ protected abstract String expectedMimeTypeForPortablePixelMap_test_ppm();
+
+ protected abstract String expectedMimeTypeForPortablePixelMap_test_pnm();
+
+ protected abstract String expectedMimeTypeForPng();
+
+ protected abstract String expectedMimeTypeForTiff();
+
+ protected abstract String expectedMimeTypeForTga();
+
+ protected abstract String expectedMimeTypeForWmf();
+
+ protected abstract String expectedMimeTypeForXcf();
+
+ protected abstract String expectedMimeTypeForXpm();
+
+ protected abstract String expectedMimeTypeForXml_test_xml();
+
+ protected abstract String expectedMimeTypeForXml_test_excel_spreadsheet_xml();
+
+ protected abstract String expectedMimeTypeForXml_CurrencyFormatterExample_mxml();
+
+ protected abstract String expectedMimeTypeForXml_xml_handwritten_xml();
+
+ protected abstract String expectedMimeTypeForXml_xml_nonexistent_dtd_xml();
+
+ protected abstract String expectedMimeTypeForXml_xml_nonexistent_remote_dtd_xml();
+
+ protected abstract String expectedMimeTypeForXml_xml_nonexistent_remote_xsd_xml();
+
+ protected abstract String expectedMimeTypeForXml_xml_nonexistent_xsd_xml();
+
+ protected abstract String expectedMimeTypeForXml_xml_utf8_bom();
+
+ protected abstract String expectedMimeTypeForXsd();
+
+ protected abstract String expectedMimeTypeForDtd();
+
+ protected abstract String expectedMimeTypeForHtml_master_xml();
+
+ protected abstract String expectedMimeTypeForHtml_html_condenast_html();
+
+ protected abstract String expectedMimeTypeForHtml_html_handwritten_html();
+
+ protected abstract String
expectedMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt();
+
+ protected abstract String expectedMimeTypeForHtml_html_quelle_de_html();
+
+ protected abstract String
expectedMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc();
+
+ protected abstract String expectedMimeTypeForJava();
+
+ protected abstract String expectedMimeTypeFor1_2Class();
+
+ protected abstract String expectedMimeTypeFor1_3Class();
+
+ protected abstract String expectedMimeTypeFor1_4Class();
+
+ protected abstract String expectedMimeTypeForPerl();
+
+ protected abstract String expectedMimeTypeForPython();
+
+ protected abstract String expectedMimeTypeForPdf_test_pdf();
+
+ protected abstract String expectedMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf();
+
+ protected abstract String expectedMimeTypeForPdf_pdf_no_author_pdf();
+
+ protected abstract String expectedMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf();
+
+ protected abstract String expectedMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf();
+
+ protected abstract String
expectedMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf();
+
+ protected abstract String expectedMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf();
+
+ protected abstract String expectedMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf();
+
+ protected abstract String expectedMimeTypeForPostscript_test_ps();
+
+ protected abstract String expectedMimeTypeForPostscript_test_eps();
+
+ protected abstract String expectedMimeTypeForJar();
+
+ protected abstract String expectedMimeTypeForJavaManifest();
+
+ protected abstract String expectedMimeTypeForGZip_test_tar_gz();
+
+ protected abstract String expectedMimeTypeForGZip_test_txt_gz();
+
+ protected abstract String expectedMimeTypeForZip();
+
+ protected abstract String expectedMimeTypeForBash();
+
+ protected abstract String expectedMimeTypeForOgg();
+
+ protected abstract String expectedMimeTypeForOpenDocumentFormula();
+
+ protected abstract String expectedMimeTypeForOpenDocumentGraphics();
+
+ protected abstract String expectedMimeTypeForOpenDocumentGraphicsTemplate();
+
+ protected abstract String
expectedMimeTypeForOpenDocumentPresentation_component_architecture_odp();
+
+ protected abstract String
expectedMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp();
+
+ protected abstract String expectedMimeTypeForOpenDocumentPresentationTemplate();
+
+ protected abstract String expectedMimeTypeForOpenDocumentSpreadsheet();
+
+ protected abstract String expectedMimeTypeForOpenDocumentSpreadsheetTemplate();
+
+ protected abstract String expectedMimeTypeForOpenDocumentText();
+
+ protected abstract String expectedMimeTypeForOpenDocumentTextTemplate();
+
+ protected abstract String expectedMimeTypeForOpenOfficeCalc();
+
+ protected abstract String expectedMimeTypeForOpenOfficeCalcTemplate();
+
+ protected abstract String expectedMimeTypeForOpenOfficeDraw();
+
+ protected abstract String expectedMimeTypeForOpenOfficeDrawTemplate();
+
+ protected abstract String expectedMimeTypeForOpenOfficeImpress();
+
+ protected abstract String expectedMimeTypeForOpenOfficeImpressTemplate();
+
+ protected abstract String expectedMimeTypeForOpenOfficeWriter();
+
+ protected abstract String expectedMimeTypeForOpenOfficeWriterTemplate();
+
+ protected abstract String expectedMimeTypeForStarOfficeCalc();
+
+ protected abstract String expectedMimeTypeForStarOfficeDraw();
+
+ protected abstract String expectedMimeTypeForStarOfficeImpress();
+
+ protected abstract String expectedMimeTypeForStarOfficeWriter();
+
+ protected abstract String expectedMimeTypeForStarOfficeCalcTemplate();
+
+ protected abstract String expectedMimeTypeForStarOfficeDrawTemplate();
+
+ protected abstract String expectedMimeTypeForStarOfficeImpressTemplate();
+
+ protected abstract String expectedMimeTypeForStarOfficeWriterTemplate();
+
+ protected abstract String expectedMimeTypeForWord_test_word_2000_doc();
+
+ protected abstract String expectedMimeTypeForWord_test_word_6_0_95_doc();
+
+ protected abstract String expectedMimeTypeForWord_microsoft_word_2000_doc();
+
+ protected abstract String
expectedMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf();
+
+ protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_docm();
+
+ protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_docx();
+
+ protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_dotm();
+
+ protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_dotx();
+
+ protected abstract String
expectedMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks();
+
+ protected abstract String
expectedMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr();
+
+ protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_2000_wps();
+
+ protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_3_0_wps();
+
+ protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_4_0_wps();
+
+ protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_7_0_wps();
+
+ protected abstract String expectedMimeTypeForWorkbook_corel_quattro_pro_6_wb2();
+
+ protected abstract String
expectedMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks();
+
+ protected abstract String expectedMimeTypeForExcel_test_excel_2000_xls();
+
+ protected abstract String expectedMimeTypeForExcel_microsoft_excel_2000_xls();
+
+ protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlam();
+
+ protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsb();
+
+ protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsm();
+
+ protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsx();
+
+ protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltm();
+
+ protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltx();
+
+ protected abstract String expectedMimeTypeForPowerpoint_test_ppt();
+
+ protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt();
+
+ protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm();
+
+ protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx();
+
+ protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm();
+
+ protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx();
+
+ protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm();
+
+ protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx();
+
+ protected abstract String expectedMimeTypeForPublisher();
+
+ protected abstract String expectedMimeTypeForVisio();
+
+ protected abstract String expectedMimeTypeForOutlook();
+
+ protected abstract String expectedMimeTypeForShw_corel_presentations_3_0_shw();
+
+ protected abstract String expectedMimeTypeForShw_corel_presentations_x3_shw();
+
+ protected abstract String expectedMimeTypeForPro_corel_quattro_pro_7_wb3();
+
+ protected abstract String expectedMimeTypeForPro_corel_quattro_pro_x3_qpw();
+
+ protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_4_2_wp();
+
+ protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_5_0_wp();
+
+ protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_5_1_wp();
+
+ protected abstract String
expectedMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp();
+
+ protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_x3_wpd();
+
+ protected abstract String expectedMimeTypeForMail_test_excel_web_archive_mht();
+
+ protected abstract String expectedMimeTypeForMail_mail_thunderbird_1_5_eml();
+
+ protected abstract String expectedMimeTypeForMail_mhtml_firefox_mht();
+
+ protected abstract String expectedMimeTypeForMail_mhtml_internet_explorer_mht();
+
+ protected abstract String expectedMimeTypeForAddressBook();
+
+ protected abstract String expectedMimeTypeForVCard_vcard_antoni_kontact_vcf();
+
+ protected abstract String expectedMimeTypeForVCard_vcard_antoni_outlook2003_vcf();
+
+ protected abstract String expectedMimeTypeForVCard_vcard_dirk_vcf();
+
+ protected abstract String expectedMimeTypeForVCard_vcard_rfc2426_vcf();
+
+ protected abstract String expectedMimeTypeForVCard_vcard_vCards_SAP_vcf();
+
+ protected abstract String expectedMimeTypeForCalendar_basicCalendar_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_1_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_2_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_3_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_4_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_5_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_6_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_cal01_exrule_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_calconnect7_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_calconnect9_ics();
+
+ protected abstract String
expectedMimeTypeForCalendar_combined_multiplevcalendar_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_combined_onevcalendar_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_extendedCalendar_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_freebusy_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_geol_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_gkexample_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_incoming_ics();
+
+ protected abstract String
expectedMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_korganizer_jicaltest_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_php_flp_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_simplevevent_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_sunbird_sample_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_tag_bug_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_test_created_ics();
+
+ protected abstract String expectedMimeTypeForCalendar_Todos1_ics();
+
+ protected abstract String expectedMimeTypeForAu();
+
+ protected abstract String expectedMimeTypeForBin();
+
+ protected abstract String expectedMimeTypeForEmf();
+
+ protected abstract String expectedMimeTypeForFli();
+
+ protected abstract String expectedMimeTypeForPcx();
+
+ protected abstract String expectedMimeTypeForPict();
+
+ protected abstract String expectedMimeTypeForPsd();
+
+ protected abstract String expectedMimeTypeForTar();
+
+ @Test
+ public void shouldProvideMimeTypeForText_test_txt() throws Exception {
+ testMimeType("test.txt", expectedMimeTypeForText_test_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_txt() throws Exception {
+ testMimeType("docs/plain-text.txt",
expectedMimeTypeForText_plain_text_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_ansi_txt() throws Exception {
+ testMimeType("docs/plain-text-ansi.txt",
expectedMimeTypeForText_plain_text_ansi_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_empty_txt() throws Exception {
+ testMimeType("docs/plain-text-empty.txt",
expectedMimeTypeForText_plain_text_empty_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_utf16be_txt() throws Exception {
+ testMimeType("docs/plain-text-utf16be.txt",
expectedMimeTypeForText_plain_text_utf16be_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_utf16le_txt() throws Exception {
+ testMimeType("docs/plain-text-utf16le.txt",
expectedMimeTypeForText_plain_text_utf16le_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_utf8_txt() throws Exception {
+ testMimeType("docs/plain-text-utf8.txt",
expectedMimeTypeForText_plain_text_utf8_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_with_null_character_txt() throws
Exception {
+ testMimeType("docs/plain-text-with-null-character.txt",
expectedMimeTypeForText_plain_text_with_null_character_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForText_plain_text_without_extension() throws
Exception {
+ testMimeType("docs/plain-text-without-extension",
expectedMimeTypeForText_plain_text_without_extension());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForRtf_test_rtf() throws Exception {
+ testMimeType("test.rtf", expectedMimeTypeForRtf_test_rtf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForRtf_rtf_openoffice_1_1_5_rtf() throws Exception
{
+ testMimeType("docs/rtf-openoffice-1.1.5.rtf",
expectedMimeTypeForRtf_rtf_openoffice_1_1_5_rtf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForRtf_rtf_openoffice_2_0_rtf() throws Exception {
+ testMimeType("docs/rtf-openoffice-2.0.rtf",
expectedMimeTypeForRtf_rtf_openoffice_2_0_rtf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForRtf_rtf_staroffice_5_2_rtf() throws Exception {
+ testMimeType("docs/rtf-staroffice-5.2.rtf",
expectedMimeTypeForRtf_rtf_staroffice_5_2_rtf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForRtf_rtf_word_2000_rtf() throws Exception {
+ testMimeType("docs/rtf-word-2000.rtf",
expectedMimeTypeForRtf_rtf_word_2000_rtf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMp3_test_mp3() throws Exception {
+ testMimeType("test.mp3", expectedMimeTypeForMp3_test_mp3());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMp3_test_128_44_jstereo_mp3() throws Exception {
+ testMimeType("test_128_44_jstereo.mp3",
expectedMimeTypeForMp3_test_128_44_jstereo_mp3());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMp3_jingle1_mp3() throws Exception {
+ testMimeType("docs/jingle1.mp3",
expectedMimeTypeForMp3_jingle1_mp3());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMp3_jingle2_mp3() throws Exception {
+ testMimeType("docs/jingle2.mp3",
expectedMimeTypeForMp3_jingle2_mp3());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMp3_jingle3_mp3() throws Exception {
+ testMimeType("docs/jingle3.mp3",
expectedMimeTypeForMp3_jingle3_mp3());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWav() throws Exception {
+ testMimeType("test.wav", expectedMimeTypeForWav());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForBmp() throws Exception {
+ testMimeType("test.bmp", expectedMimeTypeForBmp());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForGif() throws Exception {
+ testMimeType("test.gif", expectedMimeTypeForGif());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForIcon() throws Exception {
+ testMimeType("test.ico", expectedMimeTypeForIcon());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJpeg_test_jpg() throws Exception {
+ testMimeType("test.jpg", expectedMimeTypeForJpeg_test_jpg());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJpeg_jpg_exif_img_9367_JPG() throws Exception {
+ testMimeType("docs/jpg-exif-img_9367.JPG",
expectedMimeTypeForJpeg_jpg_exif_img_9367_JPG());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJpeg_jpg_exif_zerolength_jpg() throws Exception
{
+ testMimeType("docs/jpg-exif-zerolength.jpg",
expectedMimeTypeForJpeg_jpg_exif_zerolength_jpg());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJpeg_jpg_geotagged_jpg() throws Exception {
+ testMimeType("docs/jpg-geotagged.jpg",
expectedMimeTypeForJpeg_jpg_geotagged_jpg());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJpeg_jpg_geotagged_ipanema_jpg() throws Exception
{
+ testMimeType("docs/jpg-geotagged-ipanema.jpg",
expectedMimeTypeForJpeg_jpg_geotagged_ipanema_jpg());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPortablePixelMap_test_ppm() throws Exception {
+ testMimeType("test.ppm",
expectedMimeTypeForPortablePixelMap_test_ppm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPortablePixelMap_test_pnm() throws Exception {
+ testMimeType("test.pnm",
expectedMimeTypeForPortablePixelMap_test_pnm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPng() throws Exception {
+ testMimeType("test.png", expectedMimeTypeForPng());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForTiff() throws Exception {
+ testMimeType("test_nocompress.tif", expectedMimeTypeForTiff());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForTga() throws Exception {
+ testMimeType("test.tga", expectedMimeTypeForTga());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWmf() throws Exception {
+ testMimeType("test.wmf", expectedMimeTypeForWmf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXcf() throws Exception {
+ testMimeType("test.xcf", expectedMimeTypeForXcf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXpm() throws Exception {
+ testMimeType("test.xpm", expectedMimeTypeForXpm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_test_xml() throws Exception {
+ testMimeType("test.xml", expectedMimeTypeForXml_test_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_test_excel_spreadsheet_xml() throws Exception
{
+ testMimeType("test_excel_spreadsheet.xml",
expectedMimeTypeForXml_test_excel_spreadsheet_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_CurrencyFormatterExample_mxml() throws
Exception {
+ testMimeType("CurrencyFormatterExample.mxml",
expectedMimeTypeForXml_CurrencyFormatterExample_mxml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_xml_handwritten_xml() throws Exception {
+ testMimeType("docs/xml-handwritten.xml",
expectedMimeTypeForXml_xml_handwritten_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_xml_nonexistent_dtd_xml() throws Exception {
+ testMimeType("docs/xml-nonexistent-dtd.xml",
expectedMimeTypeForXml_xml_nonexistent_dtd_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_xml_nonexistent_remote_dtd_xml() throws
Exception {
+ testMimeType("docs/xml-nonexistent-remote-dtd.xml",
expectedMimeTypeForXml_xml_nonexistent_remote_dtd_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_xml_nonexistent_remote_xsd_xml() throws
Exception {
+ testMimeType("docs/xml-nonexistent-remote-xsd.xml",
expectedMimeTypeForXml_xml_nonexistent_remote_xsd_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_xml_nonexistent_xsd_xml() throws Exception {
+ testMimeType("docs/xml-nonexistent-xsd.xml",
expectedMimeTypeForXml_xml_nonexistent_xsd_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXml_xml_utf8_bom() throws Exception {
+ testMimeType("docs/xml-utf8-bom",
expectedMimeTypeForXml_xml_utf8_bom());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForXsd() throws Exception {
+ testMimeType("Descriptor.1.0.xsd", expectedMimeTypeForXsd());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForDtd() throws Exception {
+ testMimeType("test.dtd", expectedMimeTypeForDtd());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForHtml_master_xml() throws Exception {
+ testMimeType("master.xml", expectedMimeTypeForHtml_master_xml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForHtml_html_condenast_html() throws Exception {
+ testMimeType("docs/html-condenast.html",
expectedMimeTypeForHtml_html_condenast_html());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForHtml_html_handwritten_html() throws Exception {
+ testMimeType("docs/html-handwritten.html",
expectedMimeTypeForHtml_html_handwritten_html());
+ }
+
+ @Test
+ public void
shouldProvideMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt() throws
Exception {
+ testMimeType("docs/html-handwritten-with-wrong-file-extension.txt",
+
expectedMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForHtml_html_quelle_de_html() throws Exception {
+ testMimeType("docs/html-quelle.de.html",
expectedMimeTypeForHtml_html_quelle_de_html());
+ }
+
+ @Test
+ public void
shouldProvideMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc() throws
Exception {
+ testMimeType("docs/html-utf16-leading-whitespace-wrong-extension.doc",
+
expectedMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJava() throws Exception {
+ testMimeType("test.java", expectedMimeTypeForJava());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeFor1_2Class() throws Exception {
+ testMimeType("test_1.2.class", expectedMimeTypeFor1_2Class());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeFor1_3Class() throws Exception {
+ testMimeType("test_1.3.class", expectedMimeTypeFor1_3Class());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeFor1_4Class() throws Exception {
+ testMimeType("test_1.4.class", expectedMimeTypeFor1_4Class());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPerl() throws Exception {
+ testMimeType("test.pl", expectedMimeTypeForPerl());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPython() throws Exception {
+ testMimeType("test.py", expectedMimeTypeForPython());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_test_pdf() throws Exception {
+ testMimeType("test.pdf", expectedMimeTypeForPdf_test_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf() throws
Exception {
+ testMimeType("docs/pdf-distiller-6-weirdchars.pdf",
expectedMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_pdf_no_author_pdf() throws Exception {
+ testMimeType("docs/pdf-no-author.pdf",
expectedMimeTypeForPdf_pdf_no_author_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf() throws
Exception {
+ testMimeType("docs/pdf-openoffice-1.1.5-writer.pdf",
expectedMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf() throws
Exception {
+ testMimeType("docs/pdf-openoffice-2.0-writer.pdf",
expectedMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf() throws
Exception {
+ testMimeType("docs/pdf-word-2000-pdfcreator-0.8.0.pdf",
expectedMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf() throws
Exception {
+ testMimeType("docs/pdf-word-2000-pdfmaker-7.0.pdf",
expectedMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf() throws
Exception {
+ testMimeType("docs/pdf-word-2000-pdfwriter-7.0.pdf",
expectedMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPostscript_test_ps() throws Exception {
+ testMimeType("test.ps", expectedMimeTypeForPostscript_test_ps());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPostscript_test_eps() throws Exception {
+ testMimeType("test.eps", expectedMimeTypeForPostscript_test_eps());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJar() throws Exception {
+ testMimeType("dna-repository-0.2-SNAPSHOT.jar",
expectedMimeTypeForJar());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForJavaManifest() throws Exception {
+ testMimeType("aperture.example.manifest.mf",
expectedMimeTypeForJavaManifest());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForGZip_test_tar_gz() throws Exception {
+ testMimeType("test.tar.gz", expectedMimeTypeForGZip_test_tar_gz());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForGZip_test_txt_gz() throws Exception {
+ testMimeType("test.txt.gz", expectedMimeTypeForGZip_test_txt_gz());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForZip() throws Exception {
+ testMimeType("docs/counting-input-stream-test-file.dat",
expectedMimeTypeForZip());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForBash() throws Exception {
+ testMimeType("test.sh", expectedMimeTypeForBash());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOgg() throws Exception {
+ testMimeType("test.ogg", expectedMimeTypeForOgg());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentFormula() throws Exception {
+ testMimeType("docs/openoffice-2.0-formula.odf",
expectedMimeTypeForOpenDocumentFormula());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentGraphics() throws Exception {
+ testMimeType("docs/openoffice-2.0-draw.odg",
expectedMimeTypeForOpenDocumentGraphics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentGraphicsTemplate() throws Exception
{
+ testMimeType("docs/openoffice-2.0-draw-template.otg",
expectedMimeTypeForOpenDocumentGraphicsTemplate());
+ }
+
+ @Test
+ public void
shouldProvideMimeTypeForOpenDocumentPresentation_component_architecture_odp() throws
Exception {
+ testMimeType("component-architecture.odp",
expectedMimeTypeForOpenDocumentPresentation_component_architecture_odp());
+ }
+
+ @Test
+ public void
shouldProvideMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp() throws
Exception {
+ testMimeType("docs/openoffice-2.0-impress.odp",
expectedMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentPresentationTemplate() throws
Exception {
+ testMimeType("docs/openoffice-2.0-impress-template.otp",
expectedMimeTypeForOpenDocumentPresentationTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentSpreadsheet() throws Exception {
+ testMimeType("docs/openoffice-2.0-calc.ods",
expectedMimeTypeForOpenDocumentSpreadsheet());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentSpreadsheetTemplate() throws
Exception {
+ testMimeType("docs/openoffice-2.0-calc-template.ots",
expectedMimeTypeForOpenDocumentSpreadsheetTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentText() throws Exception {
+ testMimeType("docs/openoffice-2.0-writer.odt",
expectedMimeTypeForOpenDocumentText());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenDocumentTextTemplate() throws Exception {
+ testMimeType("docs/openoffice-2.0-writer-template.ott",
expectedMimeTypeForOpenDocumentTextTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeCalc() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-calc.sxc",
expectedMimeTypeForOpenOfficeCalc());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeCalcTemplate() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-calc-template.stc",
expectedMimeTypeForOpenOfficeCalcTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeDraw() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-draw.sxd",
expectedMimeTypeForOpenOfficeDraw());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeDrawTemplate() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-draw-template.std",
expectedMimeTypeForOpenOfficeDrawTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeImpress() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-impress.sxi",
expectedMimeTypeForOpenOfficeImpress());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeImpressTemplate() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-impress-template.sti",
expectedMimeTypeForOpenOfficeImpressTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeWriter() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-writer.sxw",
expectedMimeTypeForOpenOfficeWriter());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOpenOfficeWriterTemplate() throws Exception {
+ testMimeType("docs/openoffice-1.1.5-writer-template.stw",
expectedMimeTypeForOpenOfficeWriterTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeCalc() throws Exception {
+ testMimeType("docs/staroffice-5.2-calc.sdc",
expectedMimeTypeForStarOfficeCalc());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeDraw() throws Exception {
+ testMimeType("docs/staroffice-5.2-draw.sda",
expectedMimeTypeForStarOfficeDraw());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeImpress() throws Exception {
+ testMimeType("docs/staroffice-5.2-impress.sdd",
expectedMimeTypeForStarOfficeImpress());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeWriter() throws Exception {
+ testMimeType("docs/staroffice-5.2-writer.sdw",
expectedMimeTypeForStarOfficeWriter());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeCalcTemplate() throws Exception {
+ testMimeType("docs/staroffice-5.2-calc-template.vor",
expectedMimeTypeForStarOfficeCalcTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeDrawTemplate() throws Exception {
+ testMimeType("docs/staroffice-5.2-draw-template.vor",
expectedMimeTypeForStarOfficeDrawTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeImpressTemplate() throws Exception {
+ testMimeType("docs/staroffice-5.2-impress-template.vor",
expectedMimeTypeForStarOfficeImpressTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForStarOfficeWriterTemplate() throws Exception {
+ testMimeType("docs/staroffice-5.2-writer-template.vor",
expectedMimeTypeForStarOfficeWriterTemplate());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWord_test_word_2000_doc() throws Exception {
+ testMimeType("test_word_2000.doc",
expectedMimeTypeForWord_test_word_2000_doc());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWord_test_word_6_0_95_doc() throws Exception {
+ testMimeType("test_word_6.0_95.doc",
expectedMimeTypeForWord_test_word_6_0_95_doc());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWord_microsoft_word_2000_doc() throws Exception
{
+ testMimeType("docs/microsoft-word-2000.doc",
expectedMimeTypeForWord_microsoft_word_2000_doc());
+ }
+
+ @Test
+ public void
shouldProvideMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf() throws
Exception {
+ testMimeType("docs/microsoft-word-2000-with-wrong-file-extension.pdf",
+
expectedMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_docm() throws
Exception {
+ testMimeType("docs/microsoft-word-2007beta2.docm",
expectedMimeTypeForWord_microsoft_word_2007beta2_docm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_docx() throws
Exception {
+ testMimeType("docs/microsoft-word-2007beta2.docx",
expectedMimeTypeForWord_microsoft_word_2007beta2_docx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_dotm() throws
Exception {
+ testMimeType("docs/microsoft-word-2007beta2.dotm",
expectedMimeTypeForWord_microsoft_word_2007beta2_dotm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_dotx() throws
Exception {
+ testMimeType("docs/microsoft-word-2007beta2.dotx",
expectedMimeTypeForWord_microsoft_word_2007beta2_dotx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks()
throws Exception {
+ testMimeType("docs/microsoft-works-spreadsheet-4.0-2000.wks",
+
expectedMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr()
throws Exception {
+ testMimeType("docs/microsoft-works-spreadsheet-7.0.xlr",
expectedMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_2000_wps()
throws Exception {
+ testMimeType("docs/microsoft-works-word-processor-2000.wps",
+
expectedMimeTypeForWorks_microsoft_works_word_processor_2000_wps());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_3_0_wps()
throws Exception {
+ testMimeType("docs/microsoft-works-word-processor-3.0.wps",
+ expectedMimeTypeForWorks_microsoft_works_word_processor_3_0_wps());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_4_0_wps()
throws Exception {
+ testMimeType("docs/microsoft-works-word-processor-4.0.wps",
+ expectedMimeTypeForWorks_microsoft_works_word_processor_4_0_wps());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_7_0_wps()
throws Exception {
+ testMimeType("docs/microsoft-works-word-processor-7.0.wps",
+ expectedMimeTypeForWorks_microsoft_works_word_processor_7_0_wps());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorkbook_corel_quattro_pro_6_wb2() throws
Exception {
+ testMimeType("docs/corel-quattro-pro-6.wb2",
expectedMimeTypeForWorkbook_corel_quattro_pro_6_wb2());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks()
throws Exception {
+ testMimeType("docs/microsoft-works-spreadsheet-3.0.wks",
+ expectedMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_test_excel_2000_xls() throws Exception {
+ testMimeType("test_excel_2000.xls",
expectedMimeTypeForExcel_test_excel_2000_xls());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_microsoft_excel_2000_xls() throws Exception
{
+ testMimeType("docs/microsoft-excel-2000.xls",
expectedMimeTypeForExcel_microsoft_excel_2000_xls());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlam() throws
Exception {
+ testMimeType("docs/microsoft-excel-2007beta2.xlam",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlam());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlsb() throws
Exception {
+ testMimeType("docs/microsoft-excel-2007beta2.xlsb",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsb());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlsm() throws
Exception {
+ testMimeType("docs/microsoft-excel-2007beta2.xlsm",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlsx() throws
Exception {
+ testMimeType("docs/microsoft-excel-2007beta2.xlsx",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xltm() throws
Exception {
+ testMimeType("docs/microsoft-excel-2007beta2.xltm",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xltx() throws
Exception {
+ testMimeType("docs/microsoft-excel-2007beta2.xltx",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_test_ppt() throws Exception {
+ testMimeType("test.ppt", expectedMimeTypeForPowerpoint_test_ppt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt() throws
Exception {
+ testMimeType("docs/microsoft-powerpoint-2000.ppt",
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm()
throws Exception {
+ testMimeType("docs/microsoft-powerpoint-2007beta2.potm",
+
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx()
throws Exception {
+ testMimeType("docs/microsoft-powerpoint-2007beta2.potx",
+
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm()
throws Exception {
+ testMimeType("docs/microsoft-powerpoint-2007beta2.ppsm",
+
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx()
throws Exception {
+ testMimeType("docs/microsoft-powerpoint-2007beta2.ppsx",
+
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm()
throws Exception {
+ testMimeType("docs/microsoft-powerpoint-2007beta2.pptm",
+
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx()
throws Exception {
+ testMimeType("docs/microsoft-powerpoint-2007beta2.pptx",
+
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPublisher() throws Exception {
+ testMimeType("docs/microsoft-publisher-2003.pub",
expectedMimeTypeForPublisher());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForVisio() throws Exception {
+ testMimeType("docs/microsoft-visio.vsd", expectedMimeTypeForVisio());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForOutlook() throws Exception {
+ testMimeType("TestData.pst", expectedMimeTypeForOutlook());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForShw_corel_presentations_3_0_shw() throws
Exception {
+ testMimeType("docs/corel-presentations-3.0.shw",
expectedMimeTypeForShw_corel_presentations_3_0_shw());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForShw_corel_presentations_x3_shw() throws Exception
{
+ testMimeType("docs/corel-presentations-x3.shw",
expectedMimeTypeForShw_corel_presentations_x3_shw());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForQuattroPro_corel_quattro_pro_7_wb3() throws
Exception {
+ testMimeType("docs/corel-quattro-pro-7.wb3",
expectedMimeTypeForPro_corel_quattro_pro_7_wb3());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForQuattroPro_corel_quattro_pro_x3_qpw() throws
Exception {
+ testMimeType("docs/corel-quattro-pro-x3.qpw",
expectedMimeTypeForPro_corel_quattro_pro_x3_qpw());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_4_2_wp() throws
Exception {
+ testMimeType("docs/corel-wordperfect-4.2.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_4_2_wp());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_5_0_wp() throws
Exception {
+ testMimeType("docs/corel-wordperfect-5.0.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_5_0_wp());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_5_1_wp() throws
Exception {
+ testMimeType("docs/corel-wordperfect-5.1.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_5_1_wp());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp()
throws Exception {
+ testMimeType("docs/corel-wordperfect-5.1-far-east.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_x3_wpd() throws
Exception {
+ testMimeType("docs/corel-wordperfect-x3.wpd",
expectedMimeTypeForWordperfect_corel_wordperfect_x3_wpd());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMail_test_excel_web_archive_mht() throws
Exception {
+ testMimeType("test_excel_web_archive.mht",
expectedMimeTypeForMail_test_excel_web_archive_mht());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMail_mail_thunderbird_1_5_eml() throws Exception
{
+ testMimeType("docs/mail-thunderbird-1.5.eml",
expectedMimeTypeForMail_mail_thunderbird_1_5_eml());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMail_mhtml_firefox_mht() throws Exception {
+ testMimeType("docs/mhtml-firefox.mht",
expectedMimeTypeForMail_mhtml_firefox_mht());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForMail_mhtml_internet_explorer_mht() throws
Exception {
+ testMimeType("docs/mhtml-internet-explorer.mht",
expectedMimeTypeForMail_mhtml_internet_explorer_mht());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForAddressBook() throws Exception {
+ testMimeType("docs/thunderbird-addressbook.mab",
expectedMimeTypeForAddressBook());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForVCard_vcard_antoni_kontact_vcf() throws Exception
{
+ testMimeType("docs/vcard-antoni-kontact.vcf",
expectedMimeTypeForVCard_vcard_antoni_kontact_vcf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForVCard_vcard_antoni_outlook2003_vcf() throws
Exception {
+ testMimeType("docs/vcard-antoni-outlook2003.vcf",
expectedMimeTypeForVCard_vcard_antoni_outlook2003_vcf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForVCard_vcard_dirk_vcf() throws Exception {
+ testMimeType("docs/vcard-dirk.vcf",
expectedMimeTypeForVCard_vcard_dirk_vcf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForVCard_vcard_rfc2426_vcf() throws Exception {
+ testMimeType("docs/vcard-rfc2426.vcf",
expectedMimeTypeForVCard_vcard_rfc2426_vcf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForVCard_vcard_vCards_SAP_vcf() throws Exception {
+ testMimeType("docs/vcard-vCards-SAP.vcf",
expectedMimeTypeForVCard_vcard_vCards_SAP_vcf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_basicCalendar_ics() throws Exception {
+ testMimeType("docs/icaltestdata/basicCalendar.ics",
expectedMimeTypeForCalendar_basicCalendar_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01.ics",
expectedMimeTypeForCalendar_cal01_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_1_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01-1.ics",
expectedMimeTypeForCalendar_cal01_1_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_2_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01-2.ics",
expectedMimeTypeForCalendar_cal01_2_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_3_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01-3.ics",
expectedMimeTypeForCalendar_cal01_3_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_4_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01-4.ics",
expectedMimeTypeForCalendar_cal01_4_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_5_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01-5.ics",
expectedMimeTypeForCalendar_cal01_5_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_6_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01-6.ics",
expectedMimeTypeForCalendar_cal01_6_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_cal01_exrule_ics() throws Exception {
+ testMimeType("docs/icaltestdata/cal01-exrule.ics",
expectedMimeTypeForCalendar_cal01_exrule_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_calconnect7_ics() throws Exception {
+ testMimeType("docs/icaltestdata/calconnect7.ics",
expectedMimeTypeForCalendar_calconnect7_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_calconnect9_ics() throws Exception {
+ testMimeType("docs/icaltestdata/calconnect9.ics",
expectedMimeTypeForCalendar_calconnect9_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_combined_multiplevcalendar_ics() throws
Exception {
+ testMimeType("docs/icaltestdata/combined_multiplevcalendar.ics",
+ expectedMimeTypeForCalendar_combined_multiplevcalendar_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_combined_onevcalendar_ics() throws
Exception {
+ testMimeType("docs/icaltestdata/combined_onevcalendar.ics",
expectedMimeTypeForCalendar_combined_onevcalendar_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_extendedCalendar_ics() throws Exception
{
+ testMimeType("docs/icaltestdata/extendedCalendar.ics",
expectedMimeTypeForCalendar_extendedCalendar_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_freebusy_ics() throws Exception {
+ testMimeType("docs/icaltestdata/freebusy.ics",
expectedMimeTypeForCalendar_freebusy_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_geol_ics() throws Exception {
+ testMimeType("docs/icaltestdata/geo1.ics",
expectedMimeTypeForCalendar_geol_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_gkexample_ics() throws Exception {
+ testMimeType("docs/icaltestdata/gkexample.ics",
expectedMimeTypeForCalendar_gkexample_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_incoming_ics() throws Exception {
+ testMimeType("docs/icaltestdata/incoming.ics",
expectedMimeTypeForCalendar_incoming_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics()
throws Exception {
+ testMimeType("docs/icaltestdata/korganizer-jicaltest-vjournal.ics",
+ expectedMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_korganizer_jicaltest_ics() throws
Exception {
+ testMimeType("docs/icaltestdata/korganizer-jicaltest.ics",
expectedMimeTypeForCalendar_korganizer_jicaltest_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_php_flp_ics() throws Exception {
+ testMimeType("docs/icaltestdata/php-flp.ics",
expectedMimeTypeForCalendar_php_flp_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_simplevevent_ics() throws Exception {
+ testMimeType("docs/icaltestdata/simplevevent.ics",
expectedMimeTypeForCalendar_simplevevent_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_sunbird_sample_ics() throws Exception {
+ testMimeType("docs/icaltestdata/sunbird_sample.ics",
expectedMimeTypeForCalendar_sunbird_sample_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_tag_bug_ics() throws Exception {
+ testMimeType("docs/icaltestdata/tag-bug.ics",
expectedMimeTypeForCalendar_tag_bug_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_test_created_ics() throws Exception {
+ testMimeType("docs/icaltestdata/test-created.ics",
expectedMimeTypeForCalendar_test_created_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForCalendar_Todos1_ics() throws Exception {
+ testMimeType("docs/icaltestdata/Todos1.ics",
expectedMimeTypeForCalendar_Todos1_ics());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForAu() throws Exception {
+ testMimeType("test.au", expectedMimeTypeForAu());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForBin() throws Exception {
+ testMimeType("test.bin", expectedMimeTypeForBin());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForEmf() throws Exception {
+ testMimeType("test.emf", expectedMimeTypeForEmf());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForFli() throws Exception {
+ testMimeType("test.fli", expectedMimeTypeForFli());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPcx() throws Exception {
+ testMimeType("test.pcx", expectedMimeTypeForPcx());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPict() throws Exception {
+ testMimeType("test.pict", expectedMimeTypeForPict());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForPsd() throws Exception {
+ testMimeType("test.psd", expectedMimeTypeForPsd());
+ }
+
+ @Test
+ public void shouldProvideMimeTypeForTar() throws Exception {
+ testMimeType("test.tar", expectedMimeTypeForTar());
+ }
+}
Property changes on:
trunk/dna-graph/src/test/java/org/jboss/dna/graph/mimetype/AbstractMimeTypeTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/dna-repository/src/main/java/org/jboss/dna/repository/DnaEngine.java
===================================================================
--- trunk/dna-repository/src/main/java/org/jboss/dna/repository/DnaEngine.java 2009-05-21
19:03:27 UTC (rev 920)
+++ trunk/dna-repository/src/main/java/org/jboss/dna/repository/DnaEngine.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -47,13 +47,13 @@
import org.jboss.dna.graph.connector.RepositorySourceException;
import org.jboss.dna.graph.mimetype.ExtensionBasedMimeTypeDetector;
import org.jboss.dna.graph.mimetype.MimeTypeDetector;
+import org.jboss.dna.graph.mimetype.MimeTypeDetectorConfig;
+import org.jboss.dna.graph.mimetype.MimeTypeDetectors;
import org.jboss.dna.graph.property.Name;
import org.jboss.dna.graph.property.Path;
import org.jboss.dna.graph.property.PathExpression;
import org.jboss.dna.graph.property.PathNotFoundException;
import org.jboss.dna.graph.property.Property;
-import org.jboss.dna.repository.mimetype.MimeTypeDetectorConfig;
-import org.jboss.dna.repository.mimetype.MimeTypeDetectors;
import org.jboss.dna.repository.sequencer.SequencerConfig;
import org.jboss.dna.repository.sequencer.SequencingService;
Deleted:
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectorConfig.java
===================================================================
---
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectorConfig.java 2009-05-21
19:03:27 UTC (rev 920)
+++
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectorConfig.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -1,55 +0,0 @@
-/*
- * JBoss DNA (
http://www.jboss.org/dna)
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership. Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * See the AUTHORS.txt file in the distribution for a full listing of
- * individual contributors.
- *
- * JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
- * is licensed to you under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * JBoss DNA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.dna.repository.mimetype;
-
-import java.util.Map;
-import org.jboss.dna.common.component.ComponentConfig;
-import org.jboss.dna.graph.mimetype.MimeTypeDetector;
-
-/**
- * @author jverhaeg
- */
-public class MimeTypeDetectorConfig extends ComponentConfig {
-
- public MimeTypeDetectorConfig( String name,
- String description,
- Map<String, Object> properties,
- String classname,
- String[] classpath ) {
- super(name, description, properties, classname, classpath);
- }
-
- public MimeTypeDetectorConfig( String name,
- String description,
- Map<String, Object> properties,
- Class<? extends MimeTypeDetector> clazz ) {
- super(name, description, properties, clazz.getName());
- }
-
- public MimeTypeDetectorConfig( String name,
- String description,
- Class<? extends MimeTypeDetector> clazz ) {
- super(name, description, clazz.getName());
- }
-}
Deleted:
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectors.java
===================================================================
---
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectors.java 2009-05-21
19:03:27 UTC (rev 920)
+++
trunk/dna-repository/src/main/java/org/jboss/dna/repository/mimetype/MimeTypeDetectors.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -1,162 +0,0 @@
-/*
- * JBoss DNA (
http://www.jboss.org/dna)
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership. Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * See the AUTHORS.txt file in the distribution for a full listing of
- * individual contributors.
- *
- * JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
- * is licensed to you under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * JBoss DNA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.dna.repository.mimetype;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.concurrent.atomic.AtomicReference;
-import net.jcip.annotations.ThreadSafe;
-import org.jboss.dna.common.component.ClassLoaderFactory;
-import org.jboss.dna.common.component.ComponentLibrary;
-import org.jboss.dna.common.component.StandardClassLoaderFactory;
-import org.jboss.dna.common.util.Logger;
-import org.jboss.dna.graph.mimetype.MimeTypeDetector;
-
-/**
- * Facility for managing {@link MimeTypeDetectorConfig}s.
- *
- * @author jverhaeg
- */
-@ThreadSafe
-public final class MimeTypeDetectors implements MimeTypeDetector {
-
- /**
- * Class loader factory instance that always returns the {@link
Thread#getContextClassLoader() current thread's context class
- * loader}, or if <code>null</code> the class loader for this class.
- */
- protected static final ClassLoaderFactory DEFAULT_CLASSLOADER_FACTORY = new
StandardClassLoaderFactory(
-
MimeTypeDetectors.class.getClassLoader());
-
- private final ComponentLibrary<MimeTypeDetector, MimeTypeDetectorConfig>
library;
- private final AtomicReference<Logger> logger;
-
- public MimeTypeDetectors() {
- logger = new AtomicReference<Logger>(Logger.getLogger(getClass()));
- library = new ComponentLibrary<MimeTypeDetector,
MimeTypeDetectorConfig>(true);
- library.setClassLoaderFactory(DEFAULT_CLASSLOADER_FACTORY);
- }
-
- /**
- * Adds the configuration for a MIME-type detector <em>before</em> any
previously added configurations, or updates any
- * existing one that represents the {@link MimeTypeDetectorConfig#equals(Object) same
configuration}
- *
- * @param config the new configuration; must not be <code>null</code>.
- * @return <code>true</code> if the detector was added, or
<code>false</code> if there already was an existing detector
- * configuration.
- * @see #removeDetector(MimeTypeDetectorConfig)
- */
- public boolean addDetector( MimeTypeDetectorConfig config ) {
- return library.add(config);
- }
-
- /**
- * Gets the class loader factory that should be used to load MIME-type detectors. By
default, this service uses a factory that
- * will return either the {@link Thread#getContextClassLoader() current thread's
context class loader}, or if
- * <code>null</code> the class loader for this class.
- *
- * @return the class loader factory; never <code>null</code>
- * @see #setClassLoaderFactory(ClassLoaderFactory)
- */
- public ClassLoaderFactory getClassLoaderFactory() {
- return library.getClassLoaderFactory();
- }
-
- /**
- * Gets the logger for this system
- *
- * @return the logger
- */
- public Logger getLogger() {
- return logger.get();
- }
-
- /**
- * Returns the first non-null result of iterating over the {@link
#addDetector(MimeTypeDetectorConfig) registered} MIME-type
- * detectors in the reverse order in which they were registered to determine the
MIME-type of a data source, using its
- * supplied content and/or its supplied name, depending upon the implementation. If
the MIME-type cannot be determined by any
- * registered detector, "text/plain" or
"application/octet-stream" will be returned, the former only if it is determined
the
- * stream contains no nulls.
- *
- * @param name The name of the data source; may be <code>null</code>.
- * @param content The content of the data source; may be
<code>null</code>.
- * @return The MIME-type of the data source; never <code>null</code>.
- * @throws IOException If an error occurs reading the supplied content.
- */
- public String mimeTypeOf( String name,
- InputStream content ) throws IOException {
- if (content != null && content.markSupported()) {
- content.mark(Integer.MAX_VALUE);
- }
- // Check if registered detectors can determine MIME-type
- for (MimeTypeDetector detector : library.getInstances()) {
- String mimeType = detector.mimeTypeOf(name, content);
- if (mimeType != null) return mimeType;
- }
- // If not, try to analyze stream to determine if it represents text or binary
content
- if (content != null && content.markSupported()) {
- try {
- content.reset();
- for (int chr = content.read(); chr >= 0; chr = content.read()) {
- if (chr == 0) return "application/octet-stream";
- }
- } catch (IOException meansTooManyBytesRead) {
- return "application/octet-stream";
- }
- }
- return "text/plain";
- }
-
- /**
- * Removes the configuration for a MIME-type detector.
- *
- * @param config the configuration to be removed; must not be
<code>null</code>.
- * @return <code>true</code> if the configuration was removed, or
<code>false</code> if there was no existing configuration
- * @see #addDetector(MimeTypeDetectorConfig)
- */
- public boolean removeDetector( MimeTypeDetectorConfig config ) {
- return library.remove(config);
- }
-
- /**
- * Sets the Maven Repository that should be used to load the MIME-type detectors. By
default, this service uses a factory that
- * will return either the {@link Thread#getContextClassLoader() current thread's
context class loader}, or if
- * <code>null</code> the class loader for this class.
- *
- * @param classLoaderFactory the class loader factory, or
<code>null</code> if the default class loader factory should be
- * used.
- * @see #getClassLoaderFactory()
- */
- public void setClassLoaderFactory( ClassLoaderFactory classLoaderFactory ) {
- library.setClassLoaderFactory(classLoaderFactory != null ? classLoaderFactory :
DEFAULT_CLASSLOADER_FACTORY);
- }
-
- /**
- * Sets the logger for this system.
- *
- * @param logger the logger, or <code>null</code> if the standard logging
should be used
- */
- public void setLogger( Logger logger ) {
- this.logger.set(logger != null ? logger : Logger.getLogger(getClass()));
- }
-}
Deleted:
trunk/dna-repository/src/test/java/org/jboss/dna/repository/mimetype/AbstractMimeTypeTest.java
===================================================================
---
trunk/dna-repository/src/test/java/org/jboss/dna/repository/mimetype/AbstractMimeTypeTest.java 2009-05-21
19:03:27 UTC (rev 920)
+++
trunk/dna-repository/src/test/java/org/jboss/dna/repository/mimetype/AbstractMimeTypeTest.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -1,1417 +0,0 @@
-/*
- * JBoss DNA (
http://www.jboss.org/dna)
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership. Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * See the AUTHORS.txt file in the distribution for a full listing of
- * individual contributors.
- *
- * JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
- * is licensed to you under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * JBoss DNA is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.dna.repository.mimetype;
-
-import static org.hamcrest.core.Is.is;
-import static org.hamcrest.core.IsNull.notNullValue;
-import static org.junit.Assert.assertThat;
-import java.io.File;
-import java.io.InputStream;
-import java.util.Collections;
-import org.jboss.dna.graph.mimetype.MimeTypeDetector;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * All test classes that test {@link MimeTypeDetector MIME-type detector implementations}
should extend this class to help ensure
- * all implementations test the same types of data sources.
- *
- * @author John Verhaeg
- */
-public abstract class AbstractMimeTypeTest {
-
- private final MimeTypeDetectorConfig config;
- private MimeTypeDetectors detectors;
-
- protected AbstractMimeTypeTest( Class<? extends MimeTypeDetector> detector ) {
- assertThat(detector, notNullValue());
- this.config = new MimeTypeDetectorConfig("MIME-Type Detector",
"MIME-Type Detector",
- Collections.<String,
Object>emptyMap(), detector.getName(), null);
- }
-
- @Before
- public void before() throws Exception {
- detectors = new MimeTypeDetectors();
- detectors.addDetector(config);
- }
-
- @After
- public void after() {
- detectors.removeDetector(config);
- }
-
- protected void testMimeType( String name,
- String mimeType ) throws Exception {
- InputStream content = new
File("../../dna-repository/src/test/resources/" +
name).toURI().toURL().openStream();
- assertThat(detectors.mimeTypeOf(name, content), is(mimeType));
- }
-
- protected abstract String expectedMimeTypeForText_test_txt();
-
- protected abstract String expectedMimeTypeForText_plain_text_txt();
-
- protected abstract String expectedMimeTypeForText_plain_text_ansi_txt();
-
- protected abstract String expectedMimeTypeForText_plain_text_empty_txt();
-
- protected abstract String expectedMimeTypeForText_plain_text_utf16be_txt();
-
- protected abstract String expectedMimeTypeForText_plain_text_utf16le_txt();
-
- protected abstract String expectedMimeTypeForText_plain_text_utf8_txt();
-
- protected abstract String
expectedMimeTypeForText_plain_text_with_null_character_txt();
-
- protected abstract String expectedMimeTypeForText_plain_text_without_extension();
-
- protected abstract String expectedMimeTypeForRtf_test_rtf();
-
- protected abstract String expectedMimeTypeForRtf_rtf_openoffice_1_1_5_rtf();
-
- protected abstract String expectedMimeTypeForRtf_rtf_openoffice_2_0_rtf();
-
- protected abstract String expectedMimeTypeForRtf_rtf_staroffice_5_2_rtf();
-
- protected abstract String expectedMimeTypeForRtf_rtf_word_2000_rtf();
-
- protected abstract String expectedMimeTypeForMp3_test_mp3();
-
- protected abstract String expectedMimeTypeForMp3_test_128_44_jstereo_mp3();
-
- protected abstract String expectedMimeTypeForMp3_jingle1_mp3();
-
- protected abstract String expectedMimeTypeForMp3_jingle2_mp3();
-
- protected abstract String expectedMimeTypeForMp3_jingle3_mp3();
-
- protected abstract String expectedMimeTypeForWav();
-
- protected abstract String expectedMimeTypeForBmp();
-
- protected abstract String expectedMimeTypeForGif();
-
- protected abstract String expectedMimeTypeForIcon();
-
- protected abstract String expectedMimeTypeForJpeg_test_jpg();
-
- protected abstract String expectedMimeTypeForJpeg_jpg_exif_img_9367_JPG();
-
- protected abstract String expectedMimeTypeForJpeg_jpg_exif_zerolength_jpg();
-
- protected abstract String expectedMimeTypeForJpeg_jpg_geotagged_jpg();
-
- protected abstract String expectedMimeTypeForJpeg_jpg_geotagged_ipanema_jpg();
-
- protected abstract String expectedMimeTypeForPortablePixelMap_test_ppm();
-
- protected abstract String expectedMimeTypeForPortablePixelMap_test_pnm();
-
- protected abstract String expectedMimeTypeForPng();
-
- protected abstract String expectedMimeTypeForTiff();
-
- protected abstract String expectedMimeTypeForTga();
-
- protected abstract String expectedMimeTypeForWmf();
-
- protected abstract String expectedMimeTypeForXcf();
-
- protected abstract String expectedMimeTypeForXpm();
-
- protected abstract String expectedMimeTypeForXml_test_xml();
-
- protected abstract String expectedMimeTypeForXml_test_excel_spreadsheet_xml();
-
- protected abstract String expectedMimeTypeForXml_CurrencyFormatterExample_mxml();
-
- protected abstract String expectedMimeTypeForXml_xml_handwritten_xml();
-
- protected abstract String expectedMimeTypeForXml_xml_nonexistent_dtd_xml();
-
- protected abstract String expectedMimeTypeForXml_xml_nonexistent_remote_dtd_xml();
-
- protected abstract String expectedMimeTypeForXml_xml_nonexistent_remote_xsd_xml();
-
- protected abstract String expectedMimeTypeForXml_xml_nonexistent_xsd_xml();
-
- protected abstract String expectedMimeTypeForXml_xml_utf8_bom();
-
- protected abstract String expectedMimeTypeForXsd();
-
- protected abstract String expectedMimeTypeForDtd();
-
- protected abstract String expectedMimeTypeForHtml_master_xml();
-
- protected abstract String expectedMimeTypeForHtml_html_condenast_html();
-
- protected abstract String expectedMimeTypeForHtml_html_handwritten_html();
-
- protected abstract String
expectedMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt();
-
- protected abstract String expectedMimeTypeForHtml_html_quelle_de_html();
-
- protected abstract String
expectedMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc();
-
- protected abstract String expectedMimeTypeForJava();
-
- protected abstract String expectedMimeTypeFor1_2Class();
-
- protected abstract String expectedMimeTypeFor1_3Class();
-
- protected abstract String expectedMimeTypeFor1_4Class();
-
- protected abstract String expectedMimeTypeForPerl();
-
- protected abstract String expectedMimeTypeForPython();
-
- protected abstract String expectedMimeTypeForPdf_test_pdf();
-
- protected abstract String expectedMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf();
-
- protected abstract String expectedMimeTypeForPdf_pdf_no_author_pdf();
-
- protected abstract String expectedMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf();
-
- protected abstract String expectedMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf();
-
- protected abstract String
expectedMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf();
-
- protected abstract String expectedMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf();
-
- protected abstract String expectedMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf();
-
- protected abstract String expectedMimeTypeForPostscript_test_ps();
-
- protected abstract String expectedMimeTypeForPostscript_test_eps();
-
- protected abstract String expectedMimeTypeForJar();
-
- protected abstract String expectedMimeTypeForJavaManifest();
-
- protected abstract String expectedMimeTypeForGZip_test_tar_gz();
-
- protected abstract String expectedMimeTypeForGZip_test_txt_gz();
-
- protected abstract String expectedMimeTypeForZip();
-
- protected abstract String expectedMimeTypeForBash();
-
- protected abstract String expectedMimeTypeForOgg();
-
- protected abstract String expectedMimeTypeForOpenDocumentFormula();
-
- protected abstract String expectedMimeTypeForOpenDocumentGraphics();
-
- protected abstract String expectedMimeTypeForOpenDocumentGraphicsTemplate();
-
- protected abstract String
expectedMimeTypeForOpenDocumentPresentation_component_architecture_odp();
-
- protected abstract String
expectedMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp();
-
- protected abstract String expectedMimeTypeForOpenDocumentPresentationTemplate();
-
- protected abstract String expectedMimeTypeForOpenDocumentSpreadsheet();
-
- protected abstract String expectedMimeTypeForOpenDocumentSpreadsheetTemplate();
-
- protected abstract String expectedMimeTypeForOpenDocumentText();
-
- protected abstract String expectedMimeTypeForOpenDocumentTextTemplate();
-
- protected abstract String expectedMimeTypeForOpenOfficeCalc();
-
- protected abstract String expectedMimeTypeForOpenOfficeCalcTemplate();
-
- protected abstract String expectedMimeTypeForOpenOfficeDraw();
-
- protected abstract String expectedMimeTypeForOpenOfficeDrawTemplate();
-
- protected abstract String expectedMimeTypeForOpenOfficeImpress();
-
- protected abstract String expectedMimeTypeForOpenOfficeImpressTemplate();
-
- protected abstract String expectedMimeTypeForOpenOfficeWriter();
-
- protected abstract String expectedMimeTypeForOpenOfficeWriterTemplate();
-
- protected abstract String expectedMimeTypeForStarOfficeCalc();
-
- protected abstract String expectedMimeTypeForStarOfficeDraw();
-
- protected abstract String expectedMimeTypeForStarOfficeImpress();
-
- protected abstract String expectedMimeTypeForStarOfficeWriter();
-
- protected abstract String expectedMimeTypeForStarOfficeCalcTemplate();
-
- protected abstract String expectedMimeTypeForStarOfficeDrawTemplate();
-
- protected abstract String expectedMimeTypeForStarOfficeImpressTemplate();
-
- protected abstract String expectedMimeTypeForStarOfficeWriterTemplate();
-
- protected abstract String expectedMimeTypeForWord_test_word_2000_doc();
-
- protected abstract String expectedMimeTypeForWord_test_word_6_0_95_doc();
-
- protected abstract String expectedMimeTypeForWord_microsoft_word_2000_doc();
-
- protected abstract String
expectedMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf();
-
- protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_docm();
-
- protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_docx();
-
- protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_dotm();
-
- protected abstract String expectedMimeTypeForWord_microsoft_word_2007beta2_dotx();
-
- protected abstract String
expectedMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks();
-
- protected abstract String
expectedMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr();
-
- protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_2000_wps();
-
- protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_3_0_wps();
-
- protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_4_0_wps();
-
- protected abstract String
expectedMimeTypeForWorks_microsoft_works_word_processor_7_0_wps();
-
- protected abstract String expectedMimeTypeForWorkbook_corel_quattro_pro_6_wb2();
-
- protected abstract String
expectedMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks();
-
- protected abstract String expectedMimeTypeForExcel_test_excel_2000_xls();
-
- protected abstract String expectedMimeTypeForExcel_microsoft_excel_2000_xls();
-
- protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlam();
-
- protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsb();
-
- protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsm();
-
- protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsx();
-
- protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltm();
-
- protected abstract String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltx();
-
- protected abstract String expectedMimeTypeForPowerpoint_test_ppt();
-
- protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt();
-
- protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm();
-
- protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx();
-
- protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm();
-
- protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx();
-
- protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm();
-
- protected abstract String
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx();
-
- protected abstract String expectedMimeTypeForPublisher();
-
- protected abstract String expectedMimeTypeForVisio();
-
- protected abstract String expectedMimeTypeForOutlook();
-
- protected abstract String expectedMimeTypeForShw_corel_presentations_3_0_shw();
-
- protected abstract String expectedMimeTypeForShw_corel_presentations_x3_shw();
-
- protected abstract String expectedMimeTypeForPro_corel_quattro_pro_7_wb3();
-
- protected abstract String expectedMimeTypeForPro_corel_quattro_pro_x3_qpw();
-
- protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_4_2_wp();
-
- protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_5_0_wp();
-
- protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_5_1_wp();
-
- protected abstract String
expectedMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp();
-
- protected abstract String expectedMimeTypeForWordperfect_corel_wordperfect_x3_wpd();
-
- protected abstract String expectedMimeTypeForMail_test_excel_web_archive_mht();
-
- protected abstract String expectedMimeTypeForMail_mail_thunderbird_1_5_eml();
-
- protected abstract String expectedMimeTypeForMail_mhtml_firefox_mht();
-
- protected abstract String expectedMimeTypeForMail_mhtml_internet_explorer_mht();
-
- protected abstract String expectedMimeTypeForAddressBook();
-
- protected abstract String expectedMimeTypeForVCard_vcard_antoni_kontact_vcf();
-
- protected abstract String expectedMimeTypeForVCard_vcard_antoni_outlook2003_vcf();
-
- protected abstract String expectedMimeTypeForVCard_vcard_dirk_vcf();
-
- protected abstract String expectedMimeTypeForVCard_vcard_rfc2426_vcf();
-
- protected abstract String expectedMimeTypeForVCard_vcard_vCards_SAP_vcf();
-
- protected abstract String expectedMimeTypeForCalendar_basicCalendar_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_1_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_2_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_3_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_4_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_5_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_6_ics();
-
- protected abstract String expectedMimeTypeForCalendar_cal01_exrule_ics();
-
- protected abstract String expectedMimeTypeForCalendar_calconnect7_ics();
-
- protected abstract String expectedMimeTypeForCalendar_calconnect9_ics();
-
- protected abstract String
expectedMimeTypeForCalendar_combined_multiplevcalendar_ics();
-
- protected abstract String expectedMimeTypeForCalendar_combined_onevcalendar_ics();
-
- protected abstract String expectedMimeTypeForCalendar_extendedCalendar_ics();
-
- protected abstract String expectedMimeTypeForCalendar_freebusy_ics();
-
- protected abstract String expectedMimeTypeForCalendar_geol_ics();
-
- protected abstract String expectedMimeTypeForCalendar_gkexample_ics();
-
- protected abstract String expectedMimeTypeForCalendar_incoming_ics();
-
- protected abstract String
expectedMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics();
-
- protected abstract String expectedMimeTypeForCalendar_korganizer_jicaltest_ics();
-
- protected abstract String expectedMimeTypeForCalendar_php_flp_ics();
-
- protected abstract String expectedMimeTypeForCalendar_simplevevent_ics();
-
- protected abstract String expectedMimeTypeForCalendar_sunbird_sample_ics();
-
- protected abstract String expectedMimeTypeForCalendar_tag_bug_ics();
-
- protected abstract String expectedMimeTypeForCalendar_test_created_ics();
-
- protected abstract String expectedMimeTypeForCalendar_Todos1_ics();
-
- protected abstract String expectedMimeTypeForAu();
-
- protected abstract String expectedMimeTypeForBin();
-
- protected abstract String expectedMimeTypeForEmf();
-
- protected abstract String expectedMimeTypeForFli();
-
- protected abstract String expectedMimeTypeForPcx();
-
- protected abstract String expectedMimeTypeForPict();
-
- protected abstract String expectedMimeTypeForPsd();
-
- protected abstract String expectedMimeTypeForTar();
-
- @Test
- public void shouldProvideMimeTypeForText_test_txt() throws Exception {
- testMimeType("test.txt", expectedMimeTypeForText_test_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_txt() throws Exception {
- testMimeType("docs/plain-text.txt",
expectedMimeTypeForText_plain_text_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_ansi_txt() throws Exception {
- testMimeType("docs/plain-text-ansi.txt",
expectedMimeTypeForText_plain_text_ansi_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_empty_txt() throws Exception {
- testMimeType("docs/plain-text-empty.txt",
expectedMimeTypeForText_plain_text_empty_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_utf16be_txt() throws Exception {
- testMimeType("docs/plain-text-utf16be.txt",
expectedMimeTypeForText_plain_text_utf16be_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_utf16le_txt() throws Exception {
- testMimeType("docs/plain-text-utf16le.txt",
expectedMimeTypeForText_plain_text_utf16le_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_utf8_txt() throws Exception {
- testMimeType("docs/plain-text-utf8.txt",
expectedMimeTypeForText_plain_text_utf8_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_with_null_character_txt() throws
Exception {
- testMimeType("docs/plain-text-with-null-character.txt",
expectedMimeTypeForText_plain_text_with_null_character_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForText_plain_text_without_extension() throws
Exception {
- testMimeType("docs/plain-text-without-extension",
expectedMimeTypeForText_plain_text_without_extension());
- }
-
- @Test
- public void shouldProvideMimeTypeForRtf_test_rtf() throws Exception {
- testMimeType("test.rtf", expectedMimeTypeForRtf_test_rtf());
- }
-
- @Test
- public void shouldProvideMimeTypeForRtf_rtf_openoffice_1_1_5_rtf() throws Exception
{
- testMimeType("docs/rtf-openoffice-1.1.5.rtf",
expectedMimeTypeForRtf_rtf_openoffice_1_1_5_rtf());
- }
-
- @Test
- public void shouldProvideMimeTypeForRtf_rtf_openoffice_2_0_rtf() throws Exception {
- testMimeType("docs/rtf-openoffice-2.0.rtf",
expectedMimeTypeForRtf_rtf_openoffice_2_0_rtf());
- }
-
- @Test
- public void shouldProvideMimeTypeForRtf_rtf_staroffice_5_2_rtf() throws Exception {
- testMimeType("docs/rtf-staroffice-5.2.rtf",
expectedMimeTypeForRtf_rtf_staroffice_5_2_rtf());
- }
-
- @Test
- public void shouldProvideMimeTypeForRtf_rtf_word_2000_rtf() throws Exception {
- testMimeType("docs/rtf-word-2000.rtf",
expectedMimeTypeForRtf_rtf_word_2000_rtf());
- }
-
- @Test
- public void shouldProvideMimeTypeForMp3_test_mp3() throws Exception {
- testMimeType("test.mp3", expectedMimeTypeForMp3_test_mp3());
- }
-
- @Test
- public void shouldProvideMimeTypeForMp3_test_128_44_jstereo_mp3() throws Exception {
- testMimeType("test_128_44_jstereo.mp3",
expectedMimeTypeForMp3_test_128_44_jstereo_mp3());
- }
-
- @Test
- public void shouldProvideMimeTypeForMp3_jingle1_mp3() throws Exception {
- testMimeType("docs/jingle1.mp3",
expectedMimeTypeForMp3_jingle1_mp3());
- }
-
- @Test
- public void shouldProvideMimeTypeForMp3_jingle2_mp3() throws Exception {
- testMimeType("docs/jingle2.mp3",
expectedMimeTypeForMp3_jingle2_mp3());
- }
-
- @Test
- public void shouldProvideMimeTypeForMp3_jingle3_mp3() throws Exception {
- testMimeType("docs/jingle3.mp3",
expectedMimeTypeForMp3_jingle3_mp3());
- }
-
- @Test
- public void shouldProvideMimeTypeForWav() throws Exception {
- testMimeType("test.wav", expectedMimeTypeForWav());
- }
-
- @Test
- public void shouldProvideMimeTypeForBmp() throws Exception {
- testMimeType("test.bmp", expectedMimeTypeForBmp());
- }
-
- @Test
- public void shouldProvideMimeTypeForGif() throws Exception {
- testMimeType("test.gif", expectedMimeTypeForGif());
- }
-
- @Test
- public void shouldProvideMimeTypeForIcon() throws Exception {
- testMimeType("test.ico", expectedMimeTypeForIcon());
- }
-
- @Test
- public void shouldProvideMimeTypeForJpeg_test_jpg() throws Exception {
- testMimeType("test.jpg", expectedMimeTypeForJpeg_test_jpg());
- }
-
- @Test
- public void shouldProvideMimeTypeForJpeg_jpg_exif_img_9367_JPG() throws Exception {
- testMimeType("docs/jpg-exif-img_9367.JPG",
expectedMimeTypeForJpeg_jpg_exif_img_9367_JPG());
- }
-
- @Test
- public void shouldProvideMimeTypeForJpeg_jpg_exif_zerolength_jpg() throws Exception
{
- testMimeType("docs/jpg-exif-zerolength.jpg",
expectedMimeTypeForJpeg_jpg_exif_zerolength_jpg());
- }
-
- @Test
- public void shouldProvideMimeTypeForJpeg_jpg_geotagged_jpg() throws Exception {
- testMimeType("docs/jpg-geotagged.jpg",
expectedMimeTypeForJpeg_jpg_geotagged_jpg());
- }
-
- @Test
- public void shouldProvideMimeTypeForJpeg_jpg_geotagged_ipanema_jpg() throws Exception
{
- testMimeType("docs/jpg-geotagged-ipanema.jpg",
expectedMimeTypeForJpeg_jpg_geotagged_ipanema_jpg());
- }
-
- @Test
- public void shouldProvideMimeTypeForPortablePixelMap_test_ppm() throws Exception {
- testMimeType("test.ppm",
expectedMimeTypeForPortablePixelMap_test_ppm());
- }
-
- @Test
- public void shouldProvideMimeTypeForPortablePixelMap_test_pnm() throws Exception {
- testMimeType("test.pnm",
expectedMimeTypeForPortablePixelMap_test_pnm());
- }
-
- @Test
- public void shouldProvideMimeTypeForPng() throws Exception {
- testMimeType("test.png", expectedMimeTypeForPng());
- }
-
- @Test
- public void shouldProvideMimeTypeForTiff() throws Exception {
- testMimeType("test_nocompress.tif", expectedMimeTypeForTiff());
- }
-
- @Test
- public void shouldProvideMimeTypeForTga() throws Exception {
- testMimeType("test.tga", expectedMimeTypeForTga());
- }
-
- @Test
- public void shouldProvideMimeTypeForWmf() throws Exception {
- testMimeType("test.wmf", expectedMimeTypeForWmf());
- }
-
- @Test
- public void shouldProvideMimeTypeForXcf() throws Exception {
- testMimeType("test.xcf", expectedMimeTypeForXcf());
- }
-
- @Test
- public void shouldProvideMimeTypeForXpm() throws Exception {
- testMimeType("test.xpm", expectedMimeTypeForXpm());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_test_xml() throws Exception {
- testMimeType("test.xml", expectedMimeTypeForXml_test_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_test_excel_spreadsheet_xml() throws Exception
{
- testMimeType("test_excel_spreadsheet.xml",
expectedMimeTypeForXml_test_excel_spreadsheet_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_CurrencyFormatterExample_mxml() throws
Exception {
- testMimeType("CurrencyFormatterExample.mxml",
expectedMimeTypeForXml_CurrencyFormatterExample_mxml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_xml_handwritten_xml() throws Exception {
- testMimeType("docs/xml-handwritten.xml",
expectedMimeTypeForXml_xml_handwritten_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_xml_nonexistent_dtd_xml() throws Exception {
- testMimeType("docs/xml-nonexistent-dtd.xml",
expectedMimeTypeForXml_xml_nonexistent_dtd_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_xml_nonexistent_remote_dtd_xml() throws
Exception {
- testMimeType("docs/xml-nonexistent-remote-dtd.xml",
expectedMimeTypeForXml_xml_nonexistent_remote_dtd_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_xml_nonexistent_remote_xsd_xml() throws
Exception {
- testMimeType("docs/xml-nonexistent-remote-xsd.xml",
expectedMimeTypeForXml_xml_nonexistent_remote_xsd_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_xml_nonexistent_xsd_xml() throws Exception {
- testMimeType("docs/xml-nonexistent-xsd.xml",
expectedMimeTypeForXml_xml_nonexistent_xsd_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForXml_xml_utf8_bom() throws Exception {
- testMimeType("docs/xml-utf8-bom",
expectedMimeTypeForXml_xml_utf8_bom());
- }
-
- @Test
- public void shouldProvideMimeTypeForXsd() throws Exception {
- testMimeType("Descriptor.1.0.xsd", expectedMimeTypeForXsd());
- }
-
- @Test
- public void shouldProvideMimeTypeForDtd() throws Exception {
- testMimeType("test.dtd", expectedMimeTypeForDtd());
- }
-
- @Test
- public void shouldProvideMimeTypeForHtml_master_xml() throws Exception {
- testMimeType("master.xml", expectedMimeTypeForHtml_master_xml());
- }
-
- @Test
- public void shouldProvideMimeTypeForHtml_html_condenast_html() throws Exception {
- testMimeType("docs/html-condenast.html",
expectedMimeTypeForHtml_html_condenast_html());
- }
-
- @Test
- public void shouldProvideMimeTypeForHtml_html_handwritten_html() throws Exception {
- testMimeType("docs/html-handwritten.html",
expectedMimeTypeForHtml_html_handwritten_html());
- }
-
- @Test
- public void
shouldProvideMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt() throws
Exception {
- testMimeType("docs/html-handwritten-with-wrong-file-extension.txt",
-
expectedMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt());
- }
-
- @Test
- public void shouldProvideMimeTypeForHtml_html_quelle_de_html() throws Exception {
- testMimeType("docs/html-quelle.de.html",
expectedMimeTypeForHtml_html_quelle_de_html());
- }
-
- @Test
- public void
shouldProvideMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc() throws
Exception {
- testMimeType("docs/html-utf16-leading-whitespace-wrong-extension.doc",
-
expectedMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc());
- }
-
- @Test
- public void shouldProvideMimeTypeForJava() throws Exception {
- testMimeType("test.java", expectedMimeTypeForJava());
- }
-
- @Test
- public void shouldProvideMimeTypeFor1_2Class() throws Exception {
- testMimeType("test_1.2.class", expectedMimeTypeFor1_2Class());
- }
-
- @Test
- public void shouldProvideMimeTypeFor1_3Class() throws Exception {
- testMimeType("test_1.3.class", expectedMimeTypeFor1_3Class());
- }
-
- @Test
- public void shouldProvideMimeTypeFor1_4Class() throws Exception {
- testMimeType("test_1.4.class", expectedMimeTypeFor1_4Class());
- }
-
- @Test
- public void shouldProvideMimeTypeForPerl() throws Exception {
- testMimeType("test.pl", expectedMimeTypeForPerl());
- }
-
- @Test
- public void shouldProvideMimeTypeForPython() throws Exception {
- testMimeType("test.py", expectedMimeTypeForPython());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_test_pdf() throws Exception {
- testMimeType("test.pdf", expectedMimeTypeForPdf_test_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf() throws
Exception {
- testMimeType("docs/pdf-distiller-6-weirdchars.pdf",
expectedMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_pdf_no_author_pdf() throws Exception {
- testMimeType("docs/pdf-no-author.pdf",
expectedMimeTypeForPdf_pdf_no_author_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf() throws
Exception {
- testMimeType("docs/pdf-openoffice-1.1.5-writer.pdf",
expectedMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf() throws
Exception {
- testMimeType("docs/pdf-openoffice-2.0-writer.pdf",
expectedMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf() throws
Exception {
- testMimeType("docs/pdf-word-2000-pdfcreator-0.8.0.pdf",
expectedMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf() throws
Exception {
- testMimeType("docs/pdf-word-2000-pdfmaker-7.0.pdf",
expectedMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf() throws
Exception {
- testMimeType("docs/pdf-word-2000-pdfwriter-7.0.pdf",
expectedMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForPostscript_test_ps() throws Exception {
- testMimeType("test.ps", expectedMimeTypeForPostscript_test_ps());
- }
-
- @Test
- public void shouldProvideMimeTypeForPostscript_test_eps() throws Exception {
- testMimeType("test.eps", expectedMimeTypeForPostscript_test_eps());
- }
-
- @Test
- public void shouldProvideMimeTypeForJar() throws Exception {
- testMimeType("dna-repository-0.2-SNAPSHOT.jar",
expectedMimeTypeForJar());
- }
-
- @Test
- public void shouldProvideMimeTypeForJavaManifest() throws Exception {
- testMimeType("aperture.example.manifest.mf",
expectedMimeTypeForJavaManifest());
- }
-
- @Test
- public void shouldProvideMimeTypeForGZip_test_tar_gz() throws Exception {
- testMimeType("test.tar.gz", expectedMimeTypeForGZip_test_tar_gz());
- }
-
- @Test
- public void shouldProvideMimeTypeForGZip_test_txt_gz() throws Exception {
- testMimeType("test.txt.gz", expectedMimeTypeForGZip_test_txt_gz());
- }
-
- @Test
- public void shouldProvideMimeTypeForZip() throws Exception {
- testMimeType("docs/counting-input-stream-test-file.dat",
expectedMimeTypeForZip());
- }
-
- @Test
- public void shouldProvideMimeTypeForBash() throws Exception {
- testMimeType("test.sh", expectedMimeTypeForBash());
- }
-
- @Test
- public void shouldProvideMimeTypeForOgg() throws Exception {
- testMimeType("test.ogg", expectedMimeTypeForOgg());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentFormula() throws Exception {
- testMimeType("docs/openoffice-2.0-formula.odf",
expectedMimeTypeForOpenDocumentFormula());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentGraphics() throws Exception {
- testMimeType("docs/openoffice-2.0-draw.odg",
expectedMimeTypeForOpenDocumentGraphics());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentGraphicsTemplate() throws Exception
{
- testMimeType("docs/openoffice-2.0-draw-template.otg",
expectedMimeTypeForOpenDocumentGraphicsTemplate());
- }
-
- @Test
- public void
shouldProvideMimeTypeForOpenDocumentPresentation_component_architecture_odp() throws
Exception {
- testMimeType("component-architecture.odp",
expectedMimeTypeForOpenDocumentPresentation_component_architecture_odp());
- }
-
- @Test
- public void
shouldProvideMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp() throws
Exception {
- testMimeType("docs/openoffice-2.0-impress.odp",
expectedMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentPresentationTemplate() throws
Exception {
- testMimeType("docs/openoffice-2.0-impress-template.otp",
expectedMimeTypeForOpenDocumentPresentationTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentSpreadsheet() throws Exception {
- testMimeType("docs/openoffice-2.0-calc.ods",
expectedMimeTypeForOpenDocumentSpreadsheet());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentSpreadsheetTemplate() throws
Exception {
- testMimeType("docs/openoffice-2.0-calc-template.ots",
expectedMimeTypeForOpenDocumentSpreadsheetTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentText() throws Exception {
- testMimeType("docs/openoffice-2.0-writer.odt",
expectedMimeTypeForOpenDocumentText());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenDocumentTextTemplate() throws Exception {
- testMimeType("docs/openoffice-2.0-writer-template.ott",
expectedMimeTypeForOpenDocumentTextTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeCalc() throws Exception {
- testMimeType("docs/openoffice-1.1.5-calc.sxc",
expectedMimeTypeForOpenOfficeCalc());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeCalcTemplate() throws Exception {
- testMimeType("docs/openoffice-1.1.5-calc-template.stc",
expectedMimeTypeForOpenOfficeCalcTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeDraw() throws Exception {
- testMimeType("docs/openoffice-1.1.5-draw.sxd",
expectedMimeTypeForOpenOfficeDraw());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeDrawTemplate() throws Exception {
- testMimeType("docs/openoffice-1.1.5-draw-template.std",
expectedMimeTypeForOpenOfficeDrawTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeImpress() throws Exception {
- testMimeType("docs/openoffice-1.1.5-impress.sxi",
expectedMimeTypeForOpenOfficeImpress());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeImpressTemplate() throws Exception {
- testMimeType("docs/openoffice-1.1.5-impress-template.sti",
expectedMimeTypeForOpenOfficeImpressTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeWriter() throws Exception {
- testMimeType("docs/openoffice-1.1.5-writer.sxw",
expectedMimeTypeForOpenOfficeWriter());
- }
-
- @Test
- public void shouldProvideMimeTypeForOpenOfficeWriterTemplate() throws Exception {
- testMimeType("docs/openoffice-1.1.5-writer-template.stw",
expectedMimeTypeForOpenOfficeWriterTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeCalc() throws Exception {
- testMimeType("docs/staroffice-5.2-calc.sdc",
expectedMimeTypeForStarOfficeCalc());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeDraw() throws Exception {
- testMimeType("docs/staroffice-5.2-draw.sda",
expectedMimeTypeForStarOfficeDraw());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeImpress() throws Exception {
- testMimeType("docs/staroffice-5.2-impress.sdd",
expectedMimeTypeForStarOfficeImpress());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeWriter() throws Exception {
- testMimeType("docs/staroffice-5.2-writer.sdw",
expectedMimeTypeForStarOfficeWriter());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeCalcTemplate() throws Exception {
- testMimeType("docs/staroffice-5.2-calc-template.vor",
expectedMimeTypeForStarOfficeCalcTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeDrawTemplate() throws Exception {
- testMimeType("docs/staroffice-5.2-draw-template.vor",
expectedMimeTypeForStarOfficeDrawTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeImpressTemplate() throws Exception {
- testMimeType("docs/staroffice-5.2-impress-template.vor",
expectedMimeTypeForStarOfficeImpressTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForStarOfficeWriterTemplate() throws Exception {
- testMimeType("docs/staroffice-5.2-writer-template.vor",
expectedMimeTypeForStarOfficeWriterTemplate());
- }
-
- @Test
- public void shouldProvideMimeTypeForWord_test_word_2000_doc() throws Exception {
- testMimeType("test_word_2000.doc",
expectedMimeTypeForWord_test_word_2000_doc());
- }
-
- @Test
- public void shouldProvideMimeTypeForWord_test_word_6_0_95_doc() throws Exception {
- testMimeType("test_word_6.0_95.doc",
expectedMimeTypeForWord_test_word_6_0_95_doc());
- }
-
- @Test
- public void shouldProvideMimeTypeForWord_microsoft_word_2000_doc() throws Exception
{
- testMimeType("docs/microsoft-word-2000.doc",
expectedMimeTypeForWord_microsoft_word_2000_doc());
- }
-
- @Test
- public void
shouldProvideMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf() throws
Exception {
- testMimeType("docs/microsoft-word-2000-with-wrong-file-extension.pdf",
-
expectedMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf());
- }
-
- @Test
- public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_docm() throws
Exception {
- testMimeType("docs/microsoft-word-2007beta2.docm",
expectedMimeTypeForWord_microsoft_word_2007beta2_docm());
- }
-
- @Test
- public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_docx() throws
Exception {
- testMimeType("docs/microsoft-word-2007beta2.docx",
expectedMimeTypeForWord_microsoft_word_2007beta2_docx());
- }
-
- @Test
- public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_dotm() throws
Exception {
- testMimeType("docs/microsoft-word-2007beta2.dotm",
expectedMimeTypeForWord_microsoft_word_2007beta2_dotm());
- }
-
- @Test
- public void shouldProvideMimeTypeForWord_microsoft_word_2007beta2_dotx() throws
Exception {
- testMimeType("docs/microsoft-word-2007beta2.dotx",
expectedMimeTypeForWord_microsoft_word_2007beta2_dotx());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks()
throws Exception {
- testMimeType("docs/microsoft-works-spreadsheet-4.0-2000.wks",
-
expectedMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr()
throws Exception {
- testMimeType("docs/microsoft-works-spreadsheet-7.0.xlr",
expectedMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_2000_wps()
throws Exception {
- testMimeType("docs/microsoft-works-word-processor-2000.wps",
-
expectedMimeTypeForWorks_microsoft_works_word_processor_2000_wps());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_3_0_wps()
throws Exception {
- testMimeType("docs/microsoft-works-word-processor-3.0.wps",
- expectedMimeTypeForWorks_microsoft_works_word_processor_3_0_wps());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_4_0_wps()
throws Exception {
- testMimeType("docs/microsoft-works-word-processor-4.0.wps",
- expectedMimeTypeForWorks_microsoft_works_word_processor_4_0_wps());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorks_microsoft_works_word_processor_7_0_wps()
throws Exception {
- testMimeType("docs/microsoft-works-word-processor-7.0.wps",
- expectedMimeTypeForWorks_microsoft_works_word_processor_7_0_wps());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorkbook_corel_quattro_pro_6_wb2() throws
Exception {
- testMimeType("docs/corel-quattro-pro-6.wb2",
expectedMimeTypeForWorkbook_corel_quattro_pro_6_wb2());
- }
-
- @Test
- public void shouldProvideMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks()
throws Exception {
- testMimeType("docs/microsoft-works-spreadsheet-3.0.wks",
- expectedMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_test_excel_2000_xls() throws Exception {
- testMimeType("test_excel_2000.xls",
expectedMimeTypeForExcel_test_excel_2000_xls());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_microsoft_excel_2000_xls() throws Exception
{
- testMimeType("docs/microsoft-excel-2000.xls",
expectedMimeTypeForExcel_microsoft_excel_2000_xls());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlam() throws
Exception {
- testMimeType("docs/microsoft-excel-2007beta2.xlam",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlam());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlsb() throws
Exception {
- testMimeType("docs/microsoft-excel-2007beta2.xlsb",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsb());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlsm() throws
Exception {
- testMimeType("docs/microsoft-excel-2007beta2.xlsm",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsm());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xlsx() throws
Exception {
- testMimeType("docs/microsoft-excel-2007beta2.xlsx",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsx());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xltm() throws
Exception {
- testMimeType("docs/microsoft-excel-2007beta2.xltm",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltm());
- }
-
- @Test
- public void shouldProvideMimeTypeForExcel_microsoft_excel_2007beta2_xltx() throws
Exception {
- testMimeType("docs/microsoft-excel-2007beta2.xltx",
expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltx());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_test_ppt() throws Exception {
- testMimeType("test.ppt", expectedMimeTypeForPowerpoint_test_ppt());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt() throws
Exception {
- testMimeType("docs/microsoft-powerpoint-2000.ppt",
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm()
throws Exception {
- testMimeType("docs/microsoft-powerpoint-2007beta2.potm",
-
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx()
throws Exception {
- testMimeType("docs/microsoft-powerpoint-2007beta2.potx",
-
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm()
throws Exception {
- testMimeType("docs/microsoft-powerpoint-2007beta2.ppsm",
-
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx()
throws Exception {
- testMimeType("docs/microsoft-powerpoint-2007beta2.ppsx",
-
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm()
throws Exception {
- testMimeType("docs/microsoft-powerpoint-2007beta2.pptm",
-
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm());
- }
-
- @Test
- public void shouldProvideMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx()
throws Exception {
- testMimeType("docs/microsoft-powerpoint-2007beta2.pptx",
-
expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx());
- }
-
- @Test
- public void shouldProvideMimeTypeForPublisher() throws Exception {
- testMimeType("docs/microsoft-publisher-2003.pub",
expectedMimeTypeForPublisher());
- }
-
- @Test
- public void shouldProvideMimeTypeForVisio() throws Exception {
- testMimeType("docs/microsoft-visio.vsd", expectedMimeTypeForVisio());
- }
-
- @Test
- public void shouldProvideMimeTypeForOutlook() throws Exception {
- testMimeType("TestData.pst", expectedMimeTypeForOutlook());
- }
-
- @Test
- public void shouldProvideMimeTypeForShw_corel_presentations_3_0_shw() throws
Exception {
- testMimeType("docs/corel-presentations-3.0.shw",
expectedMimeTypeForShw_corel_presentations_3_0_shw());
- }
-
- @Test
- public void shouldProvideMimeTypeForShw_corel_presentations_x3_shw() throws Exception
{
- testMimeType("docs/corel-presentations-x3.shw",
expectedMimeTypeForShw_corel_presentations_x3_shw());
- }
-
- @Test
- public void shouldProvideMimeTypeForQuattroPro_corel_quattro_pro_7_wb3() throws
Exception {
- testMimeType("docs/corel-quattro-pro-7.wb3",
expectedMimeTypeForPro_corel_quattro_pro_7_wb3());
- }
-
- @Test
- public void shouldProvideMimeTypeForQuattroPro_corel_quattro_pro_x3_qpw() throws
Exception {
- testMimeType("docs/corel-quattro-pro-x3.qpw",
expectedMimeTypeForPro_corel_quattro_pro_x3_qpw());
- }
-
- @Test
- public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_4_2_wp() throws
Exception {
- testMimeType("docs/corel-wordperfect-4.2.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_4_2_wp());
- }
-
- @Test
- public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_5_0_wp() throws
Exception {
- testMimeType("docs/corel-wordperfect-5.0.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_5_0_wp());
- }
-
- @Test
- public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_5_1_wp() throws
Exception {
- testMimeType("docs/corel-wordperfect-5.1.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_5_1_wp());
- }
-
- @Test
- public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp()
throws Exception {
- testMimeType("docs/corel-wordperfect-5.1-far-east.wp",
expectedMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp());
- }
-
- @Test
- public void shouldProvideMimeTypeForWordperfect_corel_wordperfect_x3_wpd() throws
Exception {
- testMimeType("docs/corel-wordperfect-x3.wpd",
expectedMimeTypeForWordperfect_corel_wordperfect_x3_wpd());
- }
-
- @Test
- public void shouldProvideMimeTypeForMail_test_excel_web_archive_mht() throws
Exception {
- testMimeType("test_excel_web_archive.mht",
expectedMimeTypeForMail_test_excel_web_archive_mht());
- }
-
- @Test
- public void shouldProvideMimeTypeForMail_mail_thunderbird_1_5_eml() throws Exception
{
- testMimeType("docs/mail-thunderbird-1.5.eml",
expectedMimeTypeForMail_mail_thunderbird_1_5_eml());
- }
-
- @Test
- public void shouldProvideMimeTypeForMail_mhtml_firefox_mht() throws Exception {
- testMimeType("docs/mhtml-firefox.mht",
expectedMimeTypeForMail_mhtml_firefox_mht());
- }
-
- @Test
- public void shouldProvideMimeTypeForMail_mhtml_internet_explorer_mht() throws
Exception {
- testMimeType("docs/mhtml-internet-explorer.mht",
expectedMimeTypeForMail_mhtml_internet_explorer_mht());
- }
-
- @Test
- public void shouldProvideMimeTypeForAddressBook() throws Exception {
- testMimeType("docs/thunderbird-addressbook.mab",
expectedMimeTypeForAddressBook());
- }
-
- @Test
- public void shouldProvideMimeTypeForVCard_vcard_antoni_kontact_vcf() throws Exception
{
- testMimeType("docs/vcard-antoni-kontact.vcf",
expectedMimeTypeForVCard_vcard_antoni_kontact_vcf());
- }
-
- @Test
- public void shouldProvideMimeTypeForVCard_vcard_antoni_outlook2003_vcf() throws
Exception {
- testMimeType("docs/vcard-antoni-outlook2003.vcf",
expectedMimeTypeForVCard_vcard_antoni_outlook2003_vcf());
- }
-
- @Test
- public void shouldProvideMimeTypeForVCard_vcard_dirk_vcf() throws Exception {
- testMimeType("docs/vcard-dirk.vcf",
expectedMimeTypeForVCard_vcard_dirk_vcf());
- }
-
- @Test
- public void shouldProvideMimeTypeForVCard_vcard_rfc2426_vcf() throws Exception {
- testMimeType("docs/vcard-rfc2426.vcf",
expectedMimeTypeForVCard_vcard_rfc2426_vcf());
- }
-
- @Test
- public void shouldProvideMimeTypeForVCard_vcard_vCards_SAP_vcf() throws Exception {
- testMimeType("docs/vcard-vCards-SAP.vcf",
expectedMimeTypeForVCard_vcard_vCards_SAP_vcf());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_basicCalendar_ics() throws Exception {
- testMimeType("docs/icaltestdata/basicCalendar.ics",
expectedMimeTypeForCalendar_basicCalendar_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01.ics",
expectedMimeTypeForCalendar_cal01_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_1_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01-1.ics",
expectedMimeTypeForCalendar_cal01_1_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_2_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01-2.ics",
expectedMimeTypeForCalendar_cal01_2_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_3_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01-3.ics",
expectedMimeTypeForCalendar_cal01_3_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_4_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01-4.ics",
expectedMimeTypeForCalendar_cal01_4_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_5_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01-5.ics",
expectedMimeTypeForCalendar_cal01_5_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_6_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01-6.ics",
expectedMimeTypeForCalendar_cal01_6_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_cal01_exrule_ics() throws Exception {
- testMimeType("docs/icaltestdata/cal01-exrule.ics",
expectedMimeTypeForCalendar_cal01_exrule_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_calconnect7_ics() throws Exception {
- testMimeType("docs/icaltestdata/calconnect7.ics",
expectedMimeTypeForCalendar_calconnect7_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_calconnect9_ics() throws Exception {
- testMimeType("docs/icaltestdata/calconnect9.ics",
expectedMimeTypeForCalendar_calconnect9_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_combined_multiplevcalendar_ics() throws
Exception {
- testMimeType("docs/icaltestdata/combined_multiplevcalendar.ics",
- expectedMimeTypeForCalendar_combined_multiplevcalendar_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_combined_onevcalendar_ics() throws
Exception {
- testMimeType("docs/icaltestdata/combined_onevcalendar.ics",
expectedMimeTypeForCalendar_combined_onevcalendar_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_extendedCalendar_ics() throws Exception
{
- testMimeType("docs/icaltestdata/extendedCalendar.ics",
expectedMimeTypeForCalendar_extendedCalendar_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_freebusy_ics() throws Exception {
- testMimeType("docs/icaltestdata/freebusy.ics",
expectedMimeTypeForCalendar_freebusy_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_geol_ics() throws Exception {
- testMimeType("docs/icaltestdata/geo1.ics",
expectedMimeTypeForCalendar_geol_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_gkexample_ics() throws Exception {
- testMimeType("docs/icaltestdata/gkexample.ics",
expectedMimeTypeForCalendar_gkexample_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_incoming_ics() throws Exception {
- testMimeType("docs/icaltestdata/incoming.ics",
expectedMimeTypeForCalendar_incoming_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics()
throws Exception {
- testMimeType("docs/icaltestdata/korganizer-jicaltest-vjournal.ics",
- expectedMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_korganizer_jicaltest_ics() throws
Exception {
- testMimeType("docs/icaltestdata/korganizer-jicaltest.ics",
expectedMimeTypeForCalendar_korganizer_jicaltest_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_php_flp_ics() throws Exception {
- testMimeType("docs/icaltestdata/php-flp.ics",
expectedMimeTypeForCalendar_php_flp_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_simplevevent_ics() throws Exception {
- testMimeType("docs/icaltestdata/simplevevent.ics",
expectedMimeTypeForCalendar_simplevevent_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_sunbird_sample_ics() throws Exception {
- testMimeType("docs/icaltestdata/sunbird_sample.ics",
expectedMimeTypeForCalendar_sunbird_sample_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_tag_bug_ics() throws Exception {
- testMimeType("docs/icaltestdata/tag-bug.ics",
expectedMimeTypeForCalendar_tag_bug_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_test_created_ics() throws Exception {
- testMimeType("docs/icaltestdata/test-created.ics",
expectedMimeTypeForCalendar_test_created_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForCalendar_Todos1_ics() throws Exception {
- testMimeType("docs/icaltestdata/Todos1.ics",
expectedMimeTypeForCalendar_Todos1_ics());
- }
-
- @Test
- public void shouldProvideMimeTypeForAu() throws Exception {
- testMimeType("test.au", expectedMimeTypeForAu());
- }
-
- @Test
- public void shouldProvideMimeTypeForBin() throws Exception {
- testMimeType("test.bin", expectedMimeTypeForBin());
- }
-
- @Test
- public void shouldProvideMimeTypeForEmf() throws Exception {
- testMimeType("test.emf", expectedMimeTypeForEmf());
- }
-
- @Test
- public void shouldProvideMimeTypeForFli() throws Exception {
- testMimeType("test.fli", expectedMimeTypeForFli());
- }
-
- @Test
- public void shouldProvideMimeTypeForPcx() throws Exception {
- testMimeType("test.pcx", expectedMimeTypeForPcx());
- }
-
- @Test
- public void shouldProvideMimeTypeForPict() throws Exception {
- testMimeType("test.pict", expectedMimeTypeForPict());
- }
-
- @Test
- public void shouldProvideMimeTypeForPsd() throws Exception {
- testMimeType("test.psd", expectedMimeTypeForPsd());
- }
-
- @Test
- public void shouldProvideMimeTypeForTar() throws Exception {
- testMimeType("test.tar", expectedMimeTypeForTar());
- }
-}
Modified:
trunk/dna-repository/src/test/java/org/jboss/dna/repository/sequencer/StreamSequencerAdapterTest.java
===================================================================
---
trunk/dna-repository/src/test/java/org/jboss/dna/repository/sequencer/StreamSequencerAdapterTest.java 2009-05-21
19:03:27 UTC (rev 920)
+++
trunk/dna-repository/src/test/java/org/jboss/dna/repository/sequencer/StreamSequencerAdapterTest.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -44,13 +44,13 @@
import org.jboss.dna.graph.Graph;
import org.jboss.dna.graph.Node;
import org.jboss.dna.graph.connector.inmemory.InMemoryRepositorySource;
+import org.jboss.dna.graph.mimetype.MimeTypeDetectors;
import org.jboss.dna.graph.property.Path;
import org.jboss.dna.graph.property.PathNotFoundException;
import org.jboss.dna.graph.property.Property;
import org.jboss.dna.graph.sequencer.SequencerOutput;
import org.jboss.dna.graph.sequencer.StreamSequencer;
import org.jboss.dna.graph.sequencer.StreamSequencerContext;
-import org.jboss.dna.repository.mimetype.MimeTypeDetectors;
import org.jboss.dna.repository.observation.NodeChange;
import org.jboss.dna.repository.util.RepositoryNodePath;
import org.junit.Before;
Modified: trunk/extensions/dna-mimetype-detector-aperture/pom.xml
===================================================================
--- trunk/extensions/dna-mimetype-detector-aperture/pom.xml 2009-05-21 19:03:27 UTC (rev
920)
+++ trunk/extensions/dna-mimetype-detector-aperture/pom.xml 2009-05-21 19:10:30 UTC (rev
921)
@@ -23,12 +23,7 @@
</dependency>
<dependency>
<groupId>org.jboss.dna</groupId>
- <artifactId>dna-repository</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.dna</groupId>
- <artifactId>dna-repository</artifactId>
+ <artifactId>dna-graph</artifactId>
<version>${pom.version}</version>
<type>test-jar</type>
<scope>test</scope>
Modified:
trunk/extensions/dna-mimetype-detector-aperture/src/test/java/org/jboss/dna/mimetype/aperture/MimeTypeTest.java
===================================================================
---
trunk/extensions/dna-mimetype-detector-aperture/src/test/java/org/jboss/dna/mimetype/aperture/MimeTypeTest.java 2009-05-21
19:03:27 UTC (rev 920)
+++
trunk/extensions/dna-mimetype-detector-aperture/src/test/java/org/jboss/dna/mimetype/aperture/MimeTypeTest.java 2009-05-21
19:10:30 UTC (rev 921)
@@ -22,8 +22,7 @@
package org.jboss.dna.mimetype.aperture;
import java.io.FileNotFoundException;
-import org.jboss.dna.mimetype.aperture.ApertureMimeTypeDetector;
-import org.jboss.dna.repository.mimetype.AbstractMimeTypeTest;
+import org.jboss.dna.graph.mimetype.AbstractMimeTypeTest;
import org.junit.Test;
/**
@@ -43,7 +42,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_ansi_txt()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_ansi_txt()
*/
@Override
protected String expectedMimeTypeForText_plain_text_ansi_txt() {
@@ -53,7 +52,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_empty_txt()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_empty_txt()
*/
@Override
protected String expectedMimeTypeForText_plain_text_empty_txt() {
@@ -63,7 +62,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_txt()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_txt()
*/
@Override
protected String expectedMimeTypeForText_plain_text_txt() {
@@ -73,7 +72,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_with_null_character_txt()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_with_null_character_txt()
*/
@Override
protected String expectedMimeTypeForText_plain_text_with_null_character_txt() {
@@ -83,7 +82,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_utf16be_txt()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_utf16be_txt()
*/
@Override
protected String expectedMimeTypeForText_plain_text_utf16be_txt() {
@@ -93,7 +92,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_utf16le_txt()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_utf16le_txt()
*/
@Override
protected String expectedMimeTypeForText_plain_text_utf16le_txt() {
@@ -103,7 +102,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_utf8_txt()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_utf8_txt()
*/
@Override
protected String expectedMimeTypeForText_plain_text_utf8_txt() {
@@ -113,7 +112,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_without_extension()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForText_plain_text_without_extension()
*/
@Override
protected String expectedMimeTypeForText_plain_text_without_extension() {
@@ -123,7 +122,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_staroffice_5_2_rtf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_staroffice_5_2_rtf()
*/
@Override
protected String expectedMimeTypeForRtf_rtf_staroffice_5_2_rtf() {
@@ -133,7 +132,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_openoffice_2_0_rtf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_openoffice_2_0_rtf()
*/
@Override
protected String expectedMimeTypeForRtf_rtf_openoffice_2_0_rtf() {
@@ -143,7 +142,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_word_2000_rtf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_word_2000_rtf()
*/
@Override
protected String expectedMimeTypeForRtf_rtf_word_2000_rtf() {
@@ -153,7 +152,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_openoffice_1_1_5_rtf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForRtf_rtf_openoffice_1_1_5_rtf()
*/
@Override
protected String expectedMimeTypeForRtf_rtf_openoffice_1_1_5_rtf() {
@@ -163,7 +162,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForRtf_test_rtf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForRtf_test_rtf()
*/
@Override
protected String expectedMimeTypeForRtf_test_rtf() {
@@ -173,7 +172,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMp3_jingle3_mp3()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMp3_jingle3_mp3()
*/
@Override
protected String expectedMimeTypeForMp3_jingle3_mp3() {
@@ -183,7 +182,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMp3_jingle1_mp3()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMp3_jingle1_mp3()
*/
@Override
protected String expectedMimeTypeForMp3_jingle1_mp3() {
@@ -193,7 +192,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMp3_jingle2_mp3()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMp3_jingle2_mp3()
*/
@Override
protected String expectedMimeTypeForMp3_jingle2_mp3() {
@@ -203,7 +202,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMp3_test_128_44_jstereo_mp3()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMp3_test_128_44_jstereo_mp3()
*/
@Override
protected String expectedMimeTypeForMp3_test_128_44_jstereo_mp3() {
@@ -213,7 +212,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMp3_test_mp3()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMp3_test_mp3()
*/
@Override
protected String expectedMimeTypeForMp3_test_mp3() {
@@ -243,7 +242,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_geotagged_jpg()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_geotagged_jpg()
*/
@Override
protected String expectedMimeTypeForJpeg_jpg_geotagged_jpg() {
@@ -253,7 +252,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_exif_zerolength_jpg()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_exif_zerolength_jpg()
*/
@Override
protected String expectedMimeTypeForJpeg_jpg_exif_zerolength_jpg() {
@@ -263,7 +262,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_geotagged_ipanema_jpg()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_geotagged_ipanema_jpg()
*/
@Override
protected String expectedMimeTypeForJpeg_jpg_geotagged_ipanema_jpg() {
@@ -273,7 +272,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_exif_img_9367_JPG()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForJpeg_jpg_exif_img_9367_JPG()
*/
@Override
protected String expectedMimeTypeForJpeg_jpg_exif_img_9367_JPG() {
@@ -283,7 +282,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForJpeg_test_jpg()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForJpeg_test_jpg()
*/
@Override
protected String expectedMimeTypeForJpeg_test_jpg() {
@@ -293,7 +292,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPortablePixelMap_test_ppm()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPortablePixelMap_test_ppm()
*/
@Override
protected String expectedMimeTypeForPortablePixelMap_test_ppm() {
@@ -303,7 +302,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPortablePixelMap_test_pnm()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPortablePixelMap_test_pnm()
*/
@Override
protected String expectedMimeTypeForPortablePixelMap_test_pnm() {
@@ -343,7 +342,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_xml_utf8_bom()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_xml_utf8_bom()
*/
@Override
protected String expectedMimeTypeForXml_xml_utf8_bom() {
@@ -353,7 +352,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_CurrencyFormatterExample_mxml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_CurrencyFormatterExample_mxml()
*/
@Override
protected String expectedMimeTypeForXml_CurrencyFormatterExample_mxml() {
@@ -363,7 +362,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_test_excel_spreadsheet_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_test_excel_spreadsheet_xml()
*/
@Override
protected String expectedMimeTypeForXml_test_excel_spreadsheet_xml() {
@@ -373,7 +372,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_test_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_test_xml()
*/
@Override
protected String expectedMimeTypeForXml_test_xml() {
@@ -383,7 +382,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_xml_handwritten_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_xml_handwritten_xml()
*/
@Override
protected String expectedMimeTypeForXml_xml_handwritten_xml() {
@@ -393,7 +392,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_dtd_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_dtd_xml()
*/
@Override
protected String expectedMimeTypeForXml_xml_nonexistent_dtd_xml() {
@@ -403,7 +402,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_remote_dtd_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_remote_dtd_xml()
*/
@Override
protected String expectedMimeTypeForXml_xml_nonexistent_remote_dtd_xml() {
@@ -413,7 +412,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_remote_xsd_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_remote_xsd_xml()
*/
@Override
protected String expectedMimeTypeForXml_xml_nonexistent_remote_xsd_xml() {
@@ -423,7 +422,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_xsd_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForXml_xml_nonexistent_xsd_xml()
*/
@Override
protected String expectedMimeTypeForXml_xml_nonexistent_xsd_xml() {
@@ -443,7 +442,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForHtml_html_condenast_html()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForHtml_html_condenast_html()
*/
@Override
protected String expectedMimeTypeForHtml_html_condenast_html() {
@@ -453,7 +452,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForHtml_html_handwritten_html()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForHtml_html_handwritten_html()
*/
@Override
protected String expectedMimeTypeForHtml_html_handwritten_html() {
@@ -463,7 +462,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt()
*/
@Override
protected String
expectedMimeTypeForHtml_html_handwritten_with_wrong_file_extension_txt() {
@@ -473,7 +472,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForHtml_html_quelle_de_html()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForHtml_html_quelle_de_html()
*/
@Override
protected String expectedMimeTypeForHtml_html_quelle_de_html() {
@@ -483,7 +482,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc()
*/
@Override
protected String
expectedMimeTypeForHtml_html_utf16_leading_whitespace_wrong_extension_doc() {
@@ -493,7 +492,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForHtml_master_xml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForHtml_master_xml()
*/
@Override
protected String expectedMimeTypeForHtml_master_xml() {
@@ -533,7 +532,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_test_pdf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPdf_test_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_test_pdf() {
@@ -543,7 +542,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_no_author_pdf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_no_author_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_pdf_no_author_pdf() {
@@ -553,7 +552,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_pdf_openoffice_1_1_5_writer_pdf() {
@@ -563,7 +562,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_pdf_openoffice_2_0_writer_pdf() {
@@ -573,7 +572,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_pdf_word_2000_pdfcreator_0_8_0_pdf() {
@@ -583,7 +582,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_pdf_word_2000_pdfmaker_7_0_pdf() {
@@ -593,7 +592,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_pdf_word_2000_pdfwriter_7_0_pdf() {
@@ -603,7 +602,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf()
*/
@Override
protected String expectedMimeTypeForPdf_pdf_distiller_6_weirdchars_pdf() {
@@ -613,7 +612,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPostscript_test_eps()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPostscript_test_eps()
*/
@Override
protected String expectedMimeTypeForPostscript_test_eps() {
@@ -623,7 +622,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPostscript_test_ps()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPostscript_test_ps()
*/
@Override
protected String expectedMimeTypeForPostscript_test_ps() {
@@ -643,7 +642,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForGZip_test_tar_gz()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForGZip_test_tar_gz()
*/
@Override
protected String expectedMimeTypeForGZip_test_tar_gz() {
@@ -653,7 +652,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForGZip_test_txt_gz()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForGZip_test_txt_gz()
*/
@Override
protected String expectedMimeTypeForGZip_test_txt_gz() {
@@ -693,7 +692,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp()
*/
@Override
protected String
expectedMimeTypeForOpenDocumentPresentation_openoffice_2_0_impress_odp() {
@@ -703,7 +702,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForOpenDocumentPresentation_component_architecture_odp()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForOpenDocumentPresentation_component_architecture_odp()
*/
@Override
protected String
expectedMimeTypeForOpenDocumentPresentation_component_architecture_odp() {
@@ -798,7 +797,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForStarOfficeWriterTemplate()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForStarOfficeWriterTemplate()
*/
@Override
protected String expectedMimeTypeForStarOfficeWriterTemplate() {
@@ -808,7 +807,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForStarOfficeCalcTemplate()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForStarOfficeCalcTemplate()
*/
@Override
protected String expectedMimeTypeForStarOfficeCalcTemplate() {
@@ -818,7 +817,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForStarOfficeDrawTemplate()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForStarOfficeDrawTemplate()
*/
@Override
protected String expectedMimeTypeForStarOfficeDrawTemplate() {
@@ -828,7 +827,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForStarOfficeImpressTemplate()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForStarOfficeImpressTemplate()
*/
@Override
protected String expectedMimeTypeForStarOfficeImpressTemplate() {
@@ -838,7 +837,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_test_word_2000_doc()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWord_test_word_2000_doc()
*/
@Override
protected String expectedMimeTypeForWord_test_word_2000_doc() {
@@ -848,7 +847,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_test_word_6_0_95_doc()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWord_test_word_6_0_95_doc()
*/
@Override
protected String expectedMimeTypeForWord_test_word_6_0_95_doc() {
@@ -858,7 +857,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2000_doc()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2000_doc()
*/
@Override
protected String expectedMimeTypeForWord_microsoft_word_2000_doc() {
@@ -868,7 +867,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf()
*/
@Override
protected String
expectedMimeTypeForWord_microsoft_word_2000_with_wrong_file_extension_pdf() {
@@ -878,7 +877,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_dotx()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_dotx()
*/
@Override
protected String expectedMimeTypeForWord_microsoft_word_2007beta2_dotx() {
@@ -888,7 +887,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_docm()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_docm()
*/
@Override
protected String expectedMimeTypeForWord_microsoft_word_2007beta2_docm() {
@@ -898,7 +897,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_docx()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_docx()
*/
@Override
protected String expectedMimeTypeForWord_microsoft_word_2007beta2_docx() {
@@ -908,7 +907,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_dotm()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWord_microsoft_word_2007beta2_dotm()
*/
@Override
protected String expectedMimeTypeForWord_microsoft_word_2007beta2_dotm() {
@@ -918,7 +917,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks()
*/
@Override
protected String expectedMimeTypeForWorks_microsoft_works_spreadsheet_4_0_2000_wks()
{
@@ -928,7 +927,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_7_0_wps()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_7_0_wps()
*/
@Override
protected String expectedMimeTypeForWorks_microsoft_works_word_processor_7_0_wps() {
@@ -938,7 +937,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr()
*/
@Override
protected String expectedMimeTypeForWorks_microsoft_works_spreadsheet_7_0_xlr() {
@@ -948,7 +947,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_2000_wps()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_2000_wps()
*/
@Override
protected String expectedMimeTypeForWorks_microsoft_works_word_processor_2000_wps()
{
@@ -958,7 +957,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_4_0_wps()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_4_0_wps()
*/
@Override
protected String expectedMimeTypeForWorks_microsoft_works_word_processor_4_0_wps() {
@@ -968,7 +967,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_3_0_wps()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWorks_microsoft_works_word_processor_3_0_wps()
*/
@Override
protected String expectedMimeTypeForWorks_microsoft_works_word_processor_3_0_wps() {
@@ -978,7 +977,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorkbook_corel_quattro_pro_6_wb2()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForWorkbook_corel_quattro_pro_6_wb2()
*/
@Override
protected String expectedMimeTypeForWorkbook_corel_quattro_pro_6_wb2() {
@@ -988,7 +987,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks()
*/
@Override
protected String expectedMimeTypeForWorkbook_microsoft_works_spreadsheet_3_0_wks() {
@@ -998,7 +997,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_test_excel_2000_xls()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForExcel_test_excel_2000_xls()
*/
@Override
protected String expectedMimeTypeForExcel_test_excel_2000_xls() {
@@ -1008,7 +1007,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltx()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltx()
*/
@Override
protected String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltx() {
@@ -1018,7 +1017,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2000_xls()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2000_xls()
*/
@Override
protected String expectedMimeTypeForExcel_microsoft_excel_2000_xls() {
@@ -1028,7 +1027,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlam()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlam()
*/
@Override
protected String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlam() {
@@ -1038,7 +1037,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltm()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltm()
*/
@Override
protected String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xltm() {
@@ -1048,7 +1047,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsx()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsx()
*/
@Override
protected String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsx() {
@@ -1058,7 +1057,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsb()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsb()
*/
@Override
protected String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsb() {
@@ -1068,7 +1067,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsm()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsm()
*/
@Override
protected String expectedMimeTypeForExcel_microsoft_excel_2007beta2_xlsm() {
@@ -1078,7 +1077,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm()
*/
@Override
protected String expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potm()
{
@@ -1088,7 +1087,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm()
*/
@Override
protected String expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsm()
{
@@ -1098,7 +1097,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm()
*/
@Override
protected String expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptm()
{
@@ -1108,7 +1107,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx()
*/
@Override
protected String expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_pptx()
{
@@ -1118,7 +1117,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx()
*/
@Override
protected String expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_potx()
{
@@ -1128,7 +1127,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt()
*/
@Override
protected String expectedMimeTypeForPowerpoint_microsoft_powerpoint_2000_ppt() {
@@ -1138,7 +1137,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_test_ppt()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_test_ppt()
*/
@Override
protected String expectedMimeTypeForPowerpoint_test_ppt() {
@@ -1148,7 +1147,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx()
*/
@Override
protected String expectedMimeTypeForPowerpoint_microsoft_powerpoint_2007beta2_ppsx()
{
@@ -1173,7 +1172,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForShw_corel_presentations_3_0_shw()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForShw_corel_presentations_3_0_shw()
*/
@Override
protected String expectedMimeTypeForShw_corel_presentations_3_0_shw() {
@@ -1183,7 +1182,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForShw_corel_presentations_x3_shw()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForShw_corel_presentations_x3_shw()
*/
@Override
protected String expectedMimeTypeForShw_corel_presentations_x3_shw() {
@@ -1193,7 +1192,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPro_corel_quattro_pro_7_wb3()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPro_corel_quattro_pro_7_wb3()
*/
@Override
protected String expectedMimeTypeForPro_corel_quattro_pro_7_wb3() {
@@ -1203,7 +1202,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForPro_corel_quattro_pro_x3_qpw()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForPro_corel_quattro_pro_x3_qpw()
*/
@Override
protected String expectedMimeTypeForPro_corel_quattro_pro_x3_qpw() {
@@ -1213,7 +1212,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_x3_wpd()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_x3_wpd()
*/
@Override
protected String expectedMimeTypeForWordperfect_corel_wordperfect_x3_wpd() {
@@ -1223,7 +1222,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_4_2_wp()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_4_2_wp()
*/
@Override
protected String expectedMimeTypeForWordperfect_corel_wordperfect_4_2_wp() {
@@ -1233,7 +1232,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_5_0_wp()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_5_0_wp()
*/
@Override
protected String expectedMimeTypeForWordperfect_corel_wordperfect_5_0_wp() {
@@ -1243,7 +1242,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp()
*/
@Override
protected String expectedMimeTypeForWordperfect_corel_wordperfect_5_1_far_east_wp()
{
@@ -1253,7 +1252,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_5_1_wp()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForWordperfect_corel_wordperfect_5_1_wp()
*/
@Override
protected String expectedMimeTypeForWordperfect_corel_wordperfect_5_1_wp() {
@@ -1263,7 +1262,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMail_test_excel_web_archive_mht()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMail_test_excel_web_archive_mht()
*/
@Override
protected String expectedMimeTypeForMail_test_excel_web_archive_mht() {
@@ -1273,7 +1272,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMail_mail_thunderbird_1_5_eml()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMail_mail_thunderbird_1_5_eml()
*/
@Override
protected String expectedMimeTypeForMail_mail_thunderbird_1_5_eml() {
@@ -1283,7 +1282,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMail_mhtml_firefox_mht()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMail_mhtml_firefox_mht()
*/
@Override
protected String expectedMimeTypeForMail_mhtml_firefox_mht() {
@@ -1293,7 +1292,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForMail_mhtml_internet_explorer_mht()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForMail_mhtml_internet_explorer_mht()
*/
@Override
protected String expectedMimeTypeForMail_mhtml_internet_explorer_mht() {
@@ -1308,7 +1307,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_vCards_SAP_vcf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_vCards_SAP_vcf()
*/
@Override
protected String expectedMimeTypeForVCard_vcard_vCards_SAP_vcf() {
@@ -1318,7 +1317,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_antoni_kontact_vcf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_antoni_kontact_vcf()
*/
@Override
protected String expectedMimeTypeForVCard_vcard_antoni_kontact_vcf() {
@@ -1328,7 +1327,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_antoni_outlook2003_vcf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_antoni_outlook2003_vcf()
*/
@Override
protected String expectedMimeTypeForVCard_vcard_antoni_outlook2003_vcf() {
@@ -1338,7 +1337,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_dirk_vcf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_dirk_vcf()
*/
@Override
protected String expectedMimeTypeForVCard_vcard_dirk_vcf() {
@@ -1348,7 +1347,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_rfc2426_vcf()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForVCard_vcard_rfc2426_vcf()
*/
@Override
protected String expectedMimeTypeForVCard_vcard_rfc2426_vcf() {
@@ -1358,7 +1357,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_Todos1_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_Todos1_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_Todos1_ics() {
@@ -1368,7 +1367,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_basicCalendar_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_basicCalendar_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_basicCalendar_ics() {
@@ -1378,7 +1377,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_1_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_1_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_1_ics() {
@@ -1388,7 +1387,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_2_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_2_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_2_ics() {
@@ -1398,7 +1397,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_3_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_3_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_3_ics() {
@@ -1408,7 +1407,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_4_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_4_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_4_ics() {
@@ -1418,7 +1417,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_5_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_5_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_5_ics() {
@@ -1428,7 +1427,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_6_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_6_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_6_ics() {
@@ -1438,7 +1437,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_exrule_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_exrule_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_exrule_ics() {
@@ -1448,7 +1447,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_cal01_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_cal01_ics() {
@@ -1458,7 +1457,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_calconnect7_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_calconnect7_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_calconnect7_ics() {
@@ -1468,7 +1467,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_calconnect9_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_calconnect9_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_calconnect9_ics() {
@@ -1478,7 +1477,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_combined_multiplevcalendar_ics()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForCalendar_combined_multiplevcalendar_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_combined_multiplevcalendar_ics() {
@@ -1488,7 +1487,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_combined_onevcalendar_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_combined_onevcalendar_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_combined_onevcalendar_ics() {
@@ -1498,7 +1497,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_extendedCalendar_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_extendedCalendar_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_extendedCalendar_ics() {
@@ -1508,7 +1507,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_freebusy_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_freebusy_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_freebusy_ics() {
@@ -1518,7 +1517,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_geol_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_geol_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_geol_ics() {
@@ -1528,7 +1527,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_gkexample_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_gkexample_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_gkexample_ics() {
@@ -1538,7 +1537,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_incoming_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_incoming_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_incoming_ics() {
@@ -1548,7 +1547,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_korganizer_jicaltest_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_korganizer_jicaltest_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_korganizer_jicaltest_ics() {
@@ -1558,7 +1557,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics()
+ * @see
AbstractMimeTypeTest#expectedMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_korganizer_jicaltest_vjournal_ics() {
@@ -1568,7 +1567,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_php_flp_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_php_flp_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_php_flp_ics() {
@@ -1578,7 +1577,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_simplevevent_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_simplevevent_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_simplevevent_ics() {
@@ -1588,7 +1587,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_sunbird_sample_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_sunbird_sample_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_sunbird_sample_ics() {
@@ -1598,7 +1597,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_tag_bug_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_tag_bug_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_tag_bug_ics() {
@@ -1608,7 +1607,7 @@
/**
* {@inheritDoc}
*
- * @see
org.jboss.dna.repository.mimetype.AbstractMimeTypeTest#expectedMimeTypeForCalendar_test_created_ics()
+ * @see AbstractMimeTypeTest#expectedMimeTypeForCalendar_test_created_ics()
*/
@Override
protected String expectedMimeTypeForCalendar_test_created_ics() {