com.atlassian.core.filters
Class TestAbstractEncodingFilter

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.core.filters.TestAbstractEncodingFilter
All Implemented Interfaces:
junit.framework.Test

public class TestAbstractEncodingFilter
extends junit.framework.TestCase

This test only covers the actual encoding-related (i.e. content-type header) functionality of the AbstractEncodingFilter. See the related classes for tests for the other functionality.

See Also:
TestAbstractEncodingFilterContentLocationHandling, TestAbstractEncodingFilterPunctuationReplacement, TestAbstractEncodingFilterCachingHeaders

Constructor Summary
TestAbstractEncodingFilter()
           
 
Method Summary
protected  void setUp()
           
 void testDefaultContentTypeAndEncodingAreSet()
           
 void testSetContentTypeHeaderIsAppliedWithoutChanges()
           
 void testSetHtmlContentTypeWithCharsetIsIgnored()
           
 void testSetNonHtmlContentTypeWithCharsetWorks()
           
 void testSetRawContentTypeAppendsEncoding()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestAbstractEncodingFilter

public TestAbstractEncodingFilter()
Method Detail

setUp

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

testDefaultContentTypeAndEncodingAreSet

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

testSetRawContentTypeAppendsEncoding

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

testSetHtmlContentTypeWithCharsetIsIgnored

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

testSetNonHtmlContentTypeWithCharsetWorks

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

testSetContentTypeHeaderIsAppliedWithoutChanges

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.