org.alfresco.repo.content
Class MimetypeMapTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.MimetypeMapTest
All Implemented Interfaces:
junit.framework.Test

public class MimetypeMapTest
extends junit.framework.TestCase

See Also:
MimetypeMap, MimetypeMapContentTest

Constructor Summary
MimetypeMapTest()
           
 
Method Summary
 void setUp()
           
 void testExtensions()
           
 void testGetContentCharsetFinder()
           
 void testGuessMimetypeForFilename()
          Tests guessing the mimetype from a filename.
 void testIsText()
           
 void testMimetypeFromExtension()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MimetypeMapTest

public MimetypeMapTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testExtensions

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

testIsText

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

testGetContentCharsetFinder

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

testMimetypeFromExtension

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

testGuessMimetypeForFilename

public void testGuessMimetypeForFilename()
                                  throws java.lang.Exception
Tests guessing the mimetype from a filename. Note - The test for checking by filename + content are in the repo project

Throws:
java.lang.Exception
See Also:
MimetypeMapContentTest


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.