public class MimetypeMapTest
extends junit.framework.TestCase
MimetypeMap,
MimetypeMapContentTest| Constructor and Description |
|---|
MimetypeMapTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
protected void |
tearDown() |
void |
testDuplicates() |
void |
testExtensions() |
void |
testGetContentCharsetFinder() |
void |
testGuessMimetypeForFilename()
Tests guessing the mimetype from a filename.
|
void |
testIsText() |
void |
testMimetypeFromExtension() |
void |
testNoDuplicates() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testExtensions()
throws java.lang.Exception
java.lang.Exceptionpublic void testIsText()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetContentCharsetFinder()
throws java.lang.Exception
java.lang.Exceptionpublic void testMimetypeFromExtension()
throws java.lang.Exception
java.lang.Exceptionpublic void testGuessMimetypeForFilename()
throws java.lang.Exception
java.lang.ExceptionMimetypeMapContentTestpublic void testNoDuplicates()
throws java.lang.Exception
java.lang.Exceptionpublic void testDuplicates()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.