de.hs_rm.cs.lecturenotes.shared
Class MimeTypeUtilTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by de.hs_rm.cs.lecturenotes.shared.MimeTypeUtilTest
All Implemented Interfaces:
junit.framework.Test

public final class MimeTypeUtilTest
extends junit.framework.TestCase

JUnit Test for MimeType Utility class.

Version:
$LastChangedRevision: 299 $
Author:
Enrico Homann

Field Summary
static MimeTypeEnum TEST1_EXPECTED_MIMETYPEKEY
          Expected Test1 Output.
static java.lang.String TEST1_FILENAME
          Test1 Input.
static MimeTypeEnum TEST2_EXPECTED_MIMETYPEKEY
          Expected Test2 Output.
static java.lang.String TEST2_FILENAME
          Test2 Input.
static MimeTypeEnum TEST3_EXPECTED_MIMETYPEKEY
          Expected Test3 Output.
static java.lang.String TEST3_FILENAME
          Test3 Input.
static MimeTypeEnum TEST4_EXPECTED_MIMETYPEKEY
          Expected Test4 Output.
static java.lang.String TEST4_FILENAME
          Test4 Input.
 
Constructor Summary
MimeTypeUtilTest()
           
 
Method Summary
 void testGetMimeTypeByFilenameCaseInsensitive()
          Tests Method: getMimeTypeByFilename.
 void testGetMimeTypeByFilenameCaseSensitive()
          Tests Method: getMimeTypeByFilename.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST1_FILENAME

public static final java.lang.String TEST1_FILENAME
Test1 Input.

See Also:
Constant Field Values

TEST1_EXPECTED_MIMETYPEKEY

public static final MimeTypeEnum TEST1_EXPECTED_MIMETYPEKEY
Expected Test1 Output.


TEST2_FILENAME

public static final java.lang.String TEST2_FILENAME
Test2 Input.

See Also:
Constant Field Values

TEST2_EXPECTED_MIMETYPEKEY

public static final MimeTypeEnum TEST2_EXPECTED_MIMETYPEKEY
Expected Test2 Output.


TEST3_FILENAME

public static final java.lang.String TEST3_FILENAME
Test3 Input.

See Also:
Constant Field Values

TEST3_EXPECTED_MIMETYPEKEY

public static final MimeTypeEnum TEST3_EXPECTED_MIMETYPEKEY
Expected Test3 Output.


TEST4_FILENAME

public static final java.lang.String TEST4_FILENAME
Test4 Input.

See Also:
Constant Field Values

TEST4_EXPECTED_MIMETYPEKEY

public static final MimeTypeEnum TEST4_EXPECTED_MIMETYPEKEY
Expected Test4 Output.

Constructor Detail

MimeTypeUtilTest

public MimeTypeUtilTest()
Method Detail

testGetMimeTypeByFilenameCaseInsensitive

public void testGetMimeTypeByFilenameCaseInsensitive()
Tests Method: getMimeTypeByFilename. Scenario: bCaseSensitive = false


testGetMimeTypeByFilenameCaseSensitive

public void testGetMimeTypeByFilenameCaseSensitive()
Tests Method: getMimeTypeByFilename. Scenario: bCaseSensitive = true