org.apache.log4j
Class EnhancedPatternLayoutTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.log4j.LayoutTest
              extended by org.apache.log4j.EnhancedPatternLayoutTest
All Implemented Interfaces:
junit.framework.Test

public class EnhancedPatternLayoutTest
extends LayoutTest

Test for EnhancedPatternLayout.


Nested Class Summary
static class EnhancedPatternLayoutTest.DerivedPatternLayout
          Class to ensure that protected members are still available.
 
Constructor Summary
EnhancedPatternLayoutTest(java.lang.String testName)
          Construct new instance of PatternLayoutTest.
 
Method Summary
protected  Layout createLayout()
          Creates layout for test.
 void testDefaultConversionPattern()
          Tests DEFAULT_CONVERSION_PATTERN constant.
 void testFormat()
          Tests format.
 void testFormatResize()
          Tests buffer downsizing code path.
 void testGetPatternFormat()
          Tests getPatternFormat().
 void testTTCCConversionPattern()
          Tests DEFAULT_CONVERSION_PATTERN constant.
 
Methods inherited from class org.apache.log4j.LayoutTest
testGetContentType, testGetFooter, testGetHeader, testIgnoresThrowable, testLineSep, testLineSepLen
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnhancedPatternLayoutTest

public EnhancedPatternLayoutTest(java.lang.String testName)
Construct new instance of PatternLayoutTest.

Parameters:
testName - test name.
Method Detail

createLayout

protected Layout createLayout()
Description copied from class: LayoutTest
Creates layout for test.

Overrides:
createLayout in class LayoutTest
Returns:
new instance of Layout.

testFormat

public void testFormat()
Tests format.

Overrides:
testFormat in class LayoutTest

testGetPatternFormat

public void testGetPatternFormat()
Tests getPatternFormat().


testDefaultConversionPattern

public void testDefaultConversionPattern()
Tests DEFAULT_CONVERSION_PATTERN constant.


testTTCCConversionPattern

public void testTTCCConversionPattern()
Tests DEFAULT_CONVERSION_PATTERN constant.


testFormatResize

public void testFormatResize()
Tests buffer downsizing code path.



Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.