org.apache.log4j.pattern
Class PatternParserTest

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

public class PatternParserTest
extends junit.framework.TestCase

Test case for PatternParser.java. Tests the various conversion patterns supported by PatternParser. This test class tests PatternParser via the EnhancedPatternLayout class which uses it.


Constructor Summary
PatternParserTest(java.lang.String name)
           
 
Method Summary
 void testBasic1()
           
 void testBasic2()
           
 void testBogus()
           
 void testBogusWord1()
           
 void testBogusWord2()
           
 void testFileNamePatternFactories()
           
 void testMalformedOption()
          Options with missing close braces will be treated as a literal.
 void testMore()
           
 void testMultiOption()
           
 void testNewWord()
           
 void testNewWord2()
           
 void testPatternLayoutFactories()
           
 
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

PatternParserTest

public PatternParserTest(java.lang.String name)
Method Detail

testNewWord

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

testNewWord2

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

testBogusWord1

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

testBogusWord2

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

testBasic1

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

testBasic2

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

testMultiOption

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

testBogus

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

testMore

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

testMalformedOption

public void testMalformedOption()
Options with missing close braces will be treated as a literal. Endless looped with earlier code.


testPatternLayoutFactories

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

testFileNamePatternFactories

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


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.