org.apache.log4j
Class TestLogMF

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

public class TestLogMF
extends junit.framework.TestCase

Unit test for LogMF.


Constructor Summary
TestLogMF(java.lang.String testName)
          Create the test case
 
Method Summary
 void tearDown()
          Post test clean up.
 void testClassName()
          Test class name when logging through LogMF.
 void testDebugArrayArg()
          Test LogMF.debug with Object[] argument.
 void testDebugBadPattern()
          Test LogMF.debug with malformed pattern.
 void testDebugBoolean()
          Test LogMF.debug with single field pattern with boolean argument.
 void testDebugByte()
          Test LogMF.debug with single field pattern with byte argument.
 void testDebugChar()
          Test LogMF.debug with single field pattern with char argument.
 void testDebugDate()
          Test LogMF.debug with single field pattern with double argument.
 void testDebugDouble()
          Test LogMF.debug with single field pattern with double argument.
 void testDebugFloat()
          Test LogMF.debug with single field pattern with float argument.
 void testDebugFourArg()
          Test LogMF.debug with four arguments.
 void testDebugFullPrecisionAndPercent()
           
 void testDebugInt()
          Test LogMF.debug with single field pattern with int argument.
 void testDebugLong()
          Test LogMF.debug with single field pattern with long argument.
 void testDebugMissingArg()
          Test LogMF.debug with missing argument.
 void testDebugNoArg()
          Test LogMF.debug with no-field pattern.
 void testDebugNull()
          Test LogMF.debug with single field pattern with null argument.
 void testDebugNullArrayArg()
          Test LogMF.debug with null Object[] argument.
 void testDebugNullPattern()
          Test LogMF.debug with null pattern.
 void testDebugPercent()
           
 void testDebugQuoted()
           
 void testDebugShort()
          Test LogMF.debug with single field pattern with short argument.
 void testDebugString()
          Test LogMF.debug with single field pattern with string argument.
 void testDebugThreeArg()
          Test LogMF.debug with three arguments.
 void testDebugTwoArg()
          Test LogMF.debug with two arguments.
 void testInfo10ParamBrace9()
          Test LogMF.info with a pattern containing {9} and two arguments.
 void testInfo1ParamBrace9()
          Test LogMF.info with a pattern containing {9} and one argument.
 void testInfo1ParamBraceSlashColon()
          Test LogMF.info with indexes just outside of 0 to 9.
 void testInfo2ParamBrace9()
          Test LogMF.info with a pattern containing {9} and two arguments.
 void testInfoArrayArg()
          Test LogMF.info with Object[] argument.
 void testInfoBadPattern()
          Test LogMF.info with malformed pattern.
 void testInfoBoolean()
          Test LogMF.info with single field pattern with boolean argument.
 void testInfoByte()
          Test LogMF.info with single field pattern with byte argument.
 void testInfoChar()
          Test LogMF.info with single field pattern with char argument.
 void testInfoDouble()
          Test LogMF.info with single field pattern with double argument.
 void testInfoFloat()
          Test LogMF.info with single field pattern with float argument.
 void testInfoFourArg()
          Test LogMF.info with four arguments.
 void testInfoInt()
          Test LogMF.info with single field pattern with int argument.
 void testInfoLong()
          Test LogMF.info with single field pattern with long argument.
 void testInfoMissingArg()
          Test LogMF.info with missing argument.
 void testInfoNoArg()
          Test LogMF.info with no-field pattern.
 void testInfoNull()
          Test LogMF.info with single field pattern with null argument.
 void testInfoNullPattern()
          Test LogMF.info with null pattern.
 void testInfoShort()
          Test LogMF.info with single field pattern with short argument.
 void testInfoString()
          Test LogMF.info with single field pattern with string argument.
 void testInfoThreeArg()
          Test LogMF.info with three arguments.
 void testInfoTwoArg()
          Test LogMF.info with two arguments.
 void testLogArrayArg()
          Test LogMF.log with Object[] argument.
 void testLogBadPattern()
          Test LogMF.log with malformed pattern.
 void testLogBoolean()
          Test LogMF.log with single field pattern with boolean argument.
 void testLogByte()
          Test LogMF.log with single field pattern with byte argument.
 void testLogChar()
          Test LogMF.log with single field pattern with char argument.
 void testLogDouble()
          Test LogMF.log with single field pattern with double argument.
 void testLogFloat()
          Test LogMF.log with single field pattern with float argument.
 void testLogFourArg()
          Test LogMF.log with four arguments.
 void testLogInt()
          Test LogMF.log with single field pattern with int argument.
 void testLogLong()
          Test LogMF.log with single field pattern with long argument.
 void testLogMissingArg()
          Test LogMF.log with missing argument.
 void testLogNoArg()
          Test LogMF.log with no-field pattern.
 void testLogNull()
          Test LogMF.log with single field pattern with null argument.
 void testLogNullPattern()
          Test LogMF.log with null pattern.
 void testLogrbArrayArg()
          Test LogMF.logrb with Object[] argument.
 void testLogrbBadPattern()
          Test LogMF.logrb with malformed pattern.
 void testLogrbBoolean()
          Test LogMF.logrb with single field pattern with boolean argument.
 void testLogrbByte()
          Test LogMF.logrb with single field pattern with byte argument.
 void testLogrbChar()
          Test LogMF.logrb with single field pattern with char argument.
 void testLogrbDouble()
          Test LogMF.logrb with single field pattern with double argument.
 void testLogrbFloat()
          Test LogMF.logrb with single field pattern with float argument.
 void testLogrbFourArg()
          Test LogMF.logrb with four arguments.
 void testLogrbInt()
          Test LogMF.logrb with single field pattern with int argument.
 void testLogrbLong()
          Test LogMF.logrb with single field pattern with long argument.
 void testLogrbMissingArg()
          Test LogMF.logrb with missing argument.
 void testLogrbNoArg()
          Test LogMF.logrb with no-field pattern.
 void testLogrbNull()
          Test LogMF.logrb with single field pattern with null argument.
 void testLogrbNullBundle()
          Test LogMF.logrb with null bundle name.
 void testLogrbNullKey()
          Test LogMF.logrb with null key.
 void testLogrbShort()
          Test LogMF.logrb with single field pattern with short argument.
 void testLogrbString()
          Test LogMF.logrb with single field pattern with string argument.
 void testLogrbThreeArg()
          Test LogMF.logrb with three arguments.
 void testLogrbTwoArg()
          Test LogMF.logrb with two arguments.
 void testLogShort()
          Test LogMF.log with single field pattern with short argument.
 void testLogString()
          Test LogMF.log with single field pattern with string argument.
 void testLogThreeArg()
          Test LogMF.log with three arguments.
 void testLogTwoArg()
          Test LogMF.log with two arguments.
 void testTraceArrayArg()
          Test LogMF.trace with Object[] argument.
 void testTraceBadPattern()
          Test LogMF.trace with malformed pattern.
 void testTraceBoolean()
          Test LogMF.trace with single field pattern with boolean argument.
 void testTraceByte()
          Test LogMF.trace with single field pattern with byte argument.
 void testTraceChar()
          Test LogMF.trace with single field pattern with char argument.
 void testTraceDouble()
          Test LogMF.trace with single field pattern with double argument.
 void testTraceFloat()
          Test LogMF.trace with single field pattern with float argument.
 void testTraceFourArg()
          Test LogMF.trace with four arguments.
 void testTraceInt()
          Test LogMF.trace with single field pattern with int argument.
 void testTraceLong()
          Test LogMF.trace with single field pattern with long argument.
 void testTraceMissingArg()
          Test LogMF.trace with missing argument.
 void testTraceNoArg()
          Test LogMF.trace with no-field pattern.
 void testTraceNull()
          Test LogMF.trace with single field pattern with null argument.
 void testTraceNullArrayArg()
          Test LogMF.trace with null Object[] argument.
 void testTraceNullPattern()
          Test LogMF.trace with null pattern.
 void testTraceShort()
          Test LogMF.trace with single field pattern with short argument.
 void testTraceString()
          Test LogMF.trace with single field pattern with string argument.
 void testTraceThreeArg()
          Test LogMF.trace with three arguments.
 void testTraceTwoArg()
          Test LogMF.trace with two arguments.
 void testWarnArrayArg()
          Test LogMF.warn with Object[] argument.
 void testWarnBadPattern()
          Test LogMF.warn with malformed pattern.
 void testWarnBoolean()
          Test LogMF.warn with single field pattern with boolean argument.
 void testWarnByte()
          Test LogMF.warn with single field pattern with byte argument.
 void testWarnChar()
          Test LogMF.warn with single field pattern with char argument.
 void testWarnDouble()
          Test LogMF.debug with single field pattern with double argument.
 void testWarnFloat()
          Test LogMF.warn with single field pattern with float argument.
 void testWarnFourArg()
          Test LogMF.debug with four arguments.
 void testWarnInt()
          Test LogMF.warn with single field pattern with int argument.
 void testWarnLong()
          Test LogMF.warn with single field pattern with long argument.
 void testWarnMissingArg()
          Test LogMF.warn with missing argument.
 void testWarnNoArg()
          Test LogMF.warn with no-field pattern.
 void testWarnNull()
          Test LogMF.warn with single field pattern with null argument.
 void testWarnNullPattern()
          Test LogMF.warn with null pattern.
 void testWarnShort()
          Test LogMF.warn with single field pattern with short argument.
 void testWarnString()
          Test LogMF.warn with single field pattern with string argument.
 void testWarnThreeArg()
          Test LogMF.warn with three arguments.
 void testWarnTwoArg()
          Test LogMF.warn with two arguments.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

TestLogMF

public TestLogMF(java.lang.String testName)
Create the test case

Parameters:
testName - name of the test case
Method Detail

tearDown

public void tearDown()
Post test clean up.

Overrides:
tearDown in class junit.framework.TestCase

testClassName

public void testClassName()
Test class name when logging through LogMF.


testTraceNullPattern

public void testTraceNullPattern()
Test LogMF.trace with null pattern.


testTraceNoArg

public void testTraceNoArg()
Test LogMF.trace with no-field pattern.


testTraceBadPattern

public void testTraceBadPattern()
Test LogMF.trace with malformed pattern.


testTraceMissingArg

public void testTraceMissingArg()
Test LogMF.trace with missing argument.


testTraceString

public void testTraceString()
Test LogMF.trace with single field pattern with string argument.


testTraceNull

public void testTraceNull()
Test LogMF.trace with single field pattern with null argument.


testTraceInt

public void testTraceInt()
Test LogMF.trace with single field pattern with int argument.


testTraceByte

public void testTraceByte()
Test LogMF.trace with single field pattern with byte argument.


testTraceShort

public void testTraceShort()
Test LogMF.trace with single field pattern with short argument.


testTraceLong

public void testTraceLong()
Test LogMF.trace with single field pattern with long argument.


testTraceChar

public void testTraceChar()
Test LogMF.trace with single field pattern with char argument.


testTraceBoolean

public void testTraceBoolean()
Test LogMF.trace with single field pattern with boolean argument.


testTraceFloat

public void testTraceFloat()
Test LogMF.trace with single field pattern with float argument.


testTraceDouble

public void testTraceDouble()
Test LogMF.trace with single field pattern with double argument.


testTraceTwoArg

public void testTraceTwoArg()
Test LogMF.trace with two arguments.


testTraceThreeArg

public void testTraceThreeArg()
Test LogMF.trace with three arguments.


testTraceFourArg

public void testTraceFourArg()
Test LogMF.trace with four arguments.


testTraceArrayArg

public void testTraceArrayArg()
Test LogMF.trace with Object[] argument.


testTraceNullArrayArg

public void testTraceNullArrayArg()
Test LogMF.trace with null Object[] argument.


testDebugNullPattern

public void testDebugNullPattern()
Test LogMF.debug with null pattern.


testDebugNoArg

public void testDebugNoArg()
Test LogMF.debug with no-field pattern.


testDebugBadPattern

public void testDebugBadPattern()
Test LogMF.debug with malformed pattern.


testDebugMissingArg

public void testDebugMissingArg()
Test LogMF.debug with missing argument.


testDebugString

public void testDebugString()
Test LogMF.debug with single field pattern with string argument.


testDebugNull

public void testDebugNull()
Test LogMF.debug with single field pattern with null argument.


testDebugInt

public void testDebugInt()
Test LogMF.debug with single field pattern with int argument.


testDebugByte

public void testDebugByte()
Test LogMF.debug with single field pattern with byte argument.


testDebugShort

public void testDebugShort()
Test LogMF.debug with single field pattern with short argument.


testDebugLong

public void testDebugLong()
Test LogMF.debug with single field pattern with long argument.


testDebugChar

public void testDebugChar()
Test LogMF.debug with single field pattern with char argument.


testDebugBoolean

public void testDebugBoolean()
Test LogMF.debug with single field pattern with boolean argument.


testDebugFloat

public void testDebugFloat()
Test LogMF.debug with single field pattern with float argument.


testDebugDouble

public void testDebugDouble()
Test LogMF.debug with single field pattern with double argument.


testDebugTwoArg

public void testDebugTwoArg()
Test LogMF.debug with two arguments.


testDebugThreeArg

public void testDebugThreeArg()
Test LogMF.debug with three arguments.


testDebugFourArg

public void testDebugFourArg()
Test LogMF.debug with four arguments.


testDebugArrayArg

public void testDebugArrayArg()
Test LogMF.debug with Object[] argument.


testDebugDate

public void testDebugDate()
Test LogMF.debug with single field pattern with double argument.


testDebugNullArrayArg

public void testDebugNullArrayArg()
Test LogMF.debug with null Object[] argument.


testDebugPercent

public void testDebugPercent()

testDebugFullPrecisionAndPercent

public void testDebugFullPrecisionAndPercent()

testDebugQuoted

public void testDebugQuoted()

testInfoNullPattern

public void testInfoNullPattern()
Test LogMF.info with null pattern.


testInfoNoArg

public void testInfoNoArg()
Test LogMF.info with no-field pattern.


testInfoBadPattern

public void testInfoBadPattern()
Test LogMF.info with malformed pattern.


testInfoMissingArg

public void testInfoMissingArg()
Test LogMF.info with missing argument.


testInfoString

public void testInfoString()
Test LogMF.info with single field pattern with string argument.


testInfoNull

public void testInfoNull()
Test LogMF.info with single field pattern with null argument.


testInfoInt

public void testInfoInt()
Test LogMF.info with single field pattern with int argument.


testInfoByte

public void testInfoByte()
Test LogMF.info with single field pattern with byte argument.


testInfoShort

public void testInfoShort()
Test LogMF.info with single field pattern with short argument.


testInfoLong

public void testInfoLong()
Test LogMF.info with single field pattern with long argument.


testInfoChar

public void testInfoChar()
Test LogMF.info with single field pattern with char argument.


testInfoBoolean

public void testInfoBoolean()
Test LogMF.info with single field pattern with boolean argument.


testInfoFloat

public void testInfoFloat()
Test LogMF.info with single field pattern with float argument.


testInfoDouble

public void testInfoDouble()
Test LogMF.info with single field pattern with double argument.


testInfoTwoArg

public void testInfoTwoArg()
Test LogMF.info with two arguments.


testInfoThreeArg

public void testInfoThreeArg()
Test LogMF.info with three arguments.


testInfoFourArg

public void testInfoFourArg()
Test LogMF.info with four arguments.


testInfoArrayArg

public void testInfoArrayArg()
Test LogMF.info with Object[] argument.


testWarnNullPattern

public void testWarnNullPattern()
Test LogMF.warn with null pattern.


testWarnNoArg

public void testWarnNoArg()
Test LogMF.warn with no-field pattern.


testWarnBadPattern

public void testWarnBadPattern()
Test LogMF.warn with malformed pattern.


testWarnMissingArg

public void testWarnMissingArg()
Test LogMF.warn with missing argument.


testWarnString

public void testWarnString()
Test LogMF.warn with single field pattern with string argument.


testWarnNull

public void testWarnNull()
Test LogMF.warn with single field pattern with null argument.


testWarnInt

public void testWarnInt()
Test LogMF.warn with single field pattern with int argument.


testWarnByte

public void testWarnByte()
Test LogMF.warn with single field pattern with byte argument.


testWarnShort

public void testWarnShort()
Test LogMF.warn with single field pattern with short argument.


testWarnLong

public void testWarnLong()
Test LogMF.warn with single field pattern with long argument.


testWarnChar

public void testWarnChar()
Test LogMF.warn with single field pattern with char argument.


testWarnBoolean

public void testWarnBoolean()
Test LogMF.warn with single field pattern with boolean argument.


testWarnFloat

public void testWarnFloat()
Test LogMF.warn with single field pattern with float argument.


testWarnDouble

public void testWarnDouble()
Test LogMF.debug with single field pattern with double argument.


testWarnTwoArg

public void testWarnTwoArg()
Test LogMF.warn with two arguments.


testWarnThreeArg

public void testWarnThreeArg()
Test LogMF.warn with three arguments.


testWarnFourArg

public void testWarnFourArg()
Test LogMF.debug with four arguments.


testWarnArrayArg

public void testWarnArrayArg()
Test LogMF.warn with Object[] argument.


testLogNullPattern

public void testLogNullPattern()
Test LogMF.log with null pattern.


testLogNoArg

public void testLogNoArg()
Test LogMF.log with no-field pattern.


testLogBadPattern

public void testLogBadPattern()
Test LogMF.log with malformed pattern.


testLogMissingArg

public void testLogMissingArg()
Test LogMF.log with missing argument.


testLogString

public void testLogString()
Test LogMF.log with single field pattern with string argument.


testLogNull

public void testLogNull()
Test LogMF.log with single field pattern with null argument.


testLogInt

public void testLogInt()
Test LogMF.log with single field pattern with int argument.


testLogByte

public void testLogByte()
Test LogMF.log with single field pattern with byte argument.


testLogShort

public void testLogShort()
Test LogMF.log with single field pattern with short argument.


testLogLong

public void testLogLong()
Test LogMF.log with single field pattern with long argument.


testLogChar

public void testLogChar()
Test LogMF.log with single field pattern with char argument.


testLogBoolean

public void testLogBoolean()
Test LogMF.log with single field pattern with boolean argument.


testLogFloat

public void testLogFloat()
Test LogMF.log with single field pattern with float argument.


testLogDouble

public void testLogDouble()
Test LogMF.log with single field pattern with double argument.


testLogTwoArg

public void testLogTwoArg()
Test LogMF.log with two arguments.


testLogThreeArg

public void testLogThreeArg()
Test LogMF.log with three arguments.


testLogFourArg

public void testLogFourArg()
Test LogMF.log with four arguments.


testLogArrayArg

public void testLogArrayArg()
Test LogMF.log with Object[] argument.


testLogrbNullBundle

public void testLogrbNullBundle()
Test LogMF.logrb with null bundle name.


testLogrbNullKey

public void testLogrbNullKey()
Test LogMF.logrb with null key.


testLogrbNoArg

public void testLogrbNoArg()
Test LogMF.logrb with no-field pattern.


testLogrbBadPattern

public void testLogrbBadPattern()
Test LogMF.logrb with malformed pattern.


testLogrbMissingArg

public void testLogrbMissingArg()
Test LogMF.logrb with missing argument.


testLogrbString

public void testLogrbString()
Test LogMF.logrb with single field pattern with string argument.


testLogrbNull

public void testLogrbNull()
Test LogMF.logrb with single field pattern with null argument.


testLogrbInt

public void testLogrbInt()
Test LogMF.logrb with single field pattern with int argument.


testLogrbByte

public void testLogrbByte()
Test LogMF.logrb with single field pattern with byte argument.


testLogrbShort

public void testLogrbShort()
Test LogMF.logrb with single field pattern with short argument.


testLogrbLong

public void testLogrbLong()
Test LogMF.logrb with single field pattern with long argument.


testLogrbChar

public void testLogrbChar()
Test LogMF.logrb with single field pattern with char argument.


testLogrbBoolean

public void testLogrbBoolean()
Test LogMF.logrb with single field pattern with boolean argument.


testLogrbFloat

public void testLogrbFloat()
Test LogMF.logrb with single field pattern with float argument.


testLogrbDouble

public void testLogrbDouble()
Test LogMF.logrb with single field pattern with double argument.


testLogrbTwoArg

public void testLogrbTwoArg()
Test LogMF.logrb with two arguments.


testLogrbThreeArg

public void testLogrbThreeArg()
Test LogMF.logrb with three arguments.


testLogrbFourArg

public void testLogrbFourArg()
Test LogMF.logrb with four arguments.


testLogrbArrayArg

public void testLogrbArrayArg()
Test LogMF.logrb with Object[] argument.


testInfo1ParamBrace9

public void testInfo1ParamBrace9()
Test LogMF.info with a pattern containing {9} and one argument.


testInfo2ParamBrace9

public void testInfo2ParamBrace9()
Test LogMF.info with a pattern containing {9} and two arguments.


testInfo10ParamBrace9

public void testInfo10ParamBrace9()
Test LogMF.info with a pattern containing {9} and two arguments.


testInfo1ParamBraceSlashColon

public void testInfo1ParamBraceSlashColon()
Test LogMF.info with indexes just outside of 0 to 9.



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.