org.apache.log4j
Class TestLogSF

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

public class TestLogSF
extends junit.framework.TestCase

Unit test for LogSF.


Constructor Summary
TestLogSF(java.lang.String testName)
          Create the test case
 
Method Summary
 void tearDown()
          Post test clean up.
 void testClassName()
          Test class name when logging through LogSF.
 void testDebugArrayArg()
          Test LogSF.debug with Object[] argument.
 void testDebugBadPattern()
          Test LogSF.debug with malformed pattern.
 void testDebugBoolean()
          Test LogSF.debug with single field pattern with boolean argument.
 void testDebugByte()
          Test LogSF.debug with single field pattern with byte argument.
 void testDebugChar()
          Test LogSF.debug with single field pattern with char argument.
 void testDebugDouble()
          Test LogSF.debug with single field pattern with double argument.
 void testDebugFloat()
          Test LogSF.debug with single field pattern with float argument.
 void testDebugFourArg()
          Test LogSF.debug with four arguments.
 void testDebugInt()
          Test LogSF.debug with single field pattern with int argument.
 void testDebugLong()
          Test LogSF.debug with single field pattern with long argument.
 void testDebugMissingArg()
          Test LogSF.debug with missing argument.
 void testDebugNoArg()
          Test LogSF.debug with no-field pattern.
 void testDebugNull()
          Test LogSF.debug with single field pattern with null argument.
 void testDebugNullArrayArg()
          Test LogSF.debug with null Object[] argument.
 void testDebugNullPattern()
          Test LogSF.debug with null pattern.
 void testDebugShort()
          Test LogSF.debug with single field pattern with short argument.
 void testDebugString()
          Test LogSF.debug with single field pattern with string argument.
 void testDebugThreeArg()
          Test LogSF.debug with three arguments.
 void testDebugTwoArg()
          Test LogSF.debug with two arguments.
 void testEscapeOneParam()
          Test \\{ escape sequence when only one parameter is present.
 void testEscapeTwoParam()
          Test \\{ escape sequence when more than one parameter is present.
 void testInfoArrayArg()
          Test LogSF.info with Object[] argument.
 void testInfoBadPattern()
          Test LogSF.info with malformed pattern.
 void testInfoBoolean()
          Test LogSF.info with single field pattern with boolean argument.
 void testInfoByte()
          Test LogSF.info with single field pattern with byte argument.
 void testInfoChar()
          Test LogSF.info with single field pattern with char argument.
 void testInfoDouble()
          Test LogSF.info with single field pattern with double argument.
 void testInfoFloat()
          Test LogSF.info with single field pattern with float argument.
 void testInfoInt()
          Test LogSF.info with single field pattern with int argument.
 void testInfoLong()
          Test LogSF.info with single field pattern with long argument.
 void testInfoMissingArg()
          Test LogSF.info with missing argument.
 void testInfoNoArg()
          Test LogSF.info with no-field pattern.
 void testInfoNull()
          Test LogSF.info with single field pattern with null argument.
 void testInfoNullPattern()
          Test LogSF.info with null pattern.
 void testInfoShort()
          Test LogSF.info with single field pattern with short argument.
 void testInfoString()
          Test LogSF.info with single field pattern with string argument.
 void testInfoThreeArg()
          Test LogSF.info with three arguments.
 void testInfoTwoArg()
          Test LogSF.info with two arguments.
 void testLogArrayArg()
          Test LogSF.log with Object[] argument.
 void testLogBadPattern()
          Test LogSF.log with malformed pattern.
 void testLogBoolean()
          Test LogSF.log with single field pattern with boolean argument.
 void testLogByte()
          Test LogSF.log with single field pattern with byte argument.
 void testLogChar()
          Test LogSF.log with single field pattern with char argument.
 void testLogDouble()
          Test LogSF.log with single field pattern with double argument.
 void testLogFloat()
          Test LogSF.log with single field pattern with float argument.
 void testLogFourArg()
          Test LogSF.log with four arguments.
 void testLogInt()
          Test LogSF.log with single field pattern with int argument.
 void testLogLong()
          Test LogSF.log with single field pattern with long argument.
 void testLogMissingArg()
          Test LogSF.log with missing argument.
 void testLogNoArg()
          Test LogSF.log with no-field pattern.
 void testLogNull()
          Test LogSF.log with single field pattern with null argument.
 void testLogNullPattern()
          Test LogSF.log with null pattern.
 void testLogrbArrayArg()
          Test LogSF.logrb with Object[] argument.
 void testLogrbBadPattern()
          Test LogSF.logrb with malformed pattern.
 void testLogrbBoolean()
          Test LogSF.logrb with single field pattern with boolean argument.
 void testLogrbByte()
          Test LogSF.logrb with single field pattern with byte argument.
 void testLogrbChar()
          Test LogSF.logrb with single field pattern with char argument.
 void testLogrbDouble()
          Test LogSF.logrb with single field pattern with double argument.
 void testLogrbFloat()
          Test LogSF.logrb with single field pattern with float argument.
 void testLogrbFourArg()
          Test LogSF.logrb with four arguments.
 void testLogrbInt()
          Test LogSF.logrb with single field pattern with int argument.
 void testLogrbLong()
          Test LogSF.logrb with single field pattern with long argument.
 void testLogrbMissingArg()
          Test LogSF.logrb with missing argument.
 void testLogrbNoArg()
          Test LogSF.logrb with no-field pattern.
 void testLogrbNull()
          Test LogSF.logrb with single field pattern with null argument.
 void testLogrbNullBundle()
          Test LogSF.logrb with null bundle name.
 void testLogrbNullKey()
          Test LogSF.logrb with null key.
 void testLogrbShort()
          Test LogSF.logrb with single field pattern with short argument.
 void testLogrbString()
          Test LogSF.logrb with single field pattern with string argument.
 void testLogrbThreeArg()
          Test LogSF.logrb with three arguments.
 void testLogrbTwoArg()
          Test LogSF.logrb with two arguments.
 void testLogShort()
          Test LogSF.log with single field pattern with short argument.
 void testLogString()
          Test LogSF.log with single field pattern with string argument.
 void testLogThreeArg()
          Test LogSF.log with three arguments.
 void testLogTwoArg()
          Test LogSF.log with two arguments.
 void testTraceArrayArg()
          Test LogSF.trace with Object[] argument.
 void testTraceBadPattern()
          Test LogSF.trace with malformed pattern.
 void testTraceBoolean()
          Test LogSF.trace with single field pattern with boolean argument.
 void testTraceByte()
          Test LogSF.trace with single field pattern with byte argument.
 void testTraceChar()
          Test LogSF.trace with single field pattern with char argument.
 void testTraceDouble()
          Test LogSF.trace with single field pattern with double argument.
 void testTraceFloat()
          Test LogSF.trace with single field pattern with float argument.
 void testTraceFourArg()
          Test LogSF.trace with Object[] argument.
 void testTraceInt()
          Test LogSF.trace with single field pattern with int argument.
 void testTraceLong()
          Test LogSF.trace with single field pattern with long argument.
 void testTraceMissingArg()
          Test LogSF.trace with missing argument.
 void testTraceNoArg()
          Test LogSF.trace with no-field pattern.
 void testTraceNull()
          Test LogSF.trace with single field pattern with null argument.
 void testTraceNullArrayArg()
          Test LogSF.trace with null Object[] argument.
 void testTraceNullPattern()
          Test LogSF.trace with null pattern.
 void testTraceShort()
          Test LogSF.trace with single field pattern with short argument.
 void testTraceString()
          Test LogSF.trace with single field pattern with string argument.
 void testTraceThreeArg()
          Test LogSF.trace with three arguments.
 void testTraceTwoArg()
          Test LogSF.trace with two arguments.
 void testWarnArrayArg()
          Test LogSF.warn with Object[] argument.
 void testWarnBadPattern()
          Test LogSF.warn with malformed pattern.
 void testWarnBoolean()
          Test LogSF.warn with single field pattern with boolean argument.
 void testWarnByte()
          Test LogSF.warn with single field pattern with byte argument.
 void testWarnChar()
          Test LogSF.warn with single field pattern with char argument.
 void testWarnDouble()
          Test LogSF.warn with single field pattern with double argument.
 void testWarnFloat()
          Test LogSF.warn with single field pattern with float argument.
 void testWarnFourArg()
          Test LogSF.warn with Object[] argument.
 void testWarnInt()
          Test LogSF.warn with single field pattern with int argument.
 void testWarnLong()
          Test LogSF.warn with single field pattern with long argument.
 void testWarnMissingArg()
          Test LogSF.warn with missing argument.
 void testWarnNoArg()
          Test LogSF.warn with no-field pattern.
 void testWarnNull()
          Test LogSF.warn with single field pattern with null argument.
 void testWarnNullPattern()
          Test LogSF.warn with null pattern.
 void testWarnShort()
          Test LogSF.warn with single field pattern with short argument.
 void testWarnString()
          Test LogSF.warn with single field pattern with string argument.
 void testWarnThreeArg()
          Test LogSF.warn with three arguments.
 void testWarnTwoArg()
          Test LogSF.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

TestLogSF

public TestLogSF(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 LogSF.


testTraceNullPattern

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


testTraceNoArg

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


testTraceBadPattern

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


testTraceMissingArg

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


testTraceString

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


testTraceNull

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


testTraceInt

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


testTraceByte

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


testTraceShort

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


testTraceLong

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


testTraceChar

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


testTraceBoolean

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


testTraceFloat

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


testTraceDouble

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


testTraceTwoArg

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


testTraceThreeArg

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


testTraceFourArg

public void testTraceFourArg()
Test LogSF.trace with Object[] argument.


testTraceArrayArg

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


testTraceNullArrayArg

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


testDebugNullPattern

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


testDebugNoArg

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


testDebugBadPattern

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


testDebugMissingArg

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


testDebugString

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


testDebugNull

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


testDebugInt

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


testDebugByte

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


testDebugShort

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


testDebugLong

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


testDebugChar

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


testDebugBoolean

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


testDebugFloat

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


testDebugDouble

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


testDebugTwoArg

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


testDebugThreeArg

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


testDebugFourArg

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


testDebugArrayArg

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


testDebugNullArrayArg

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


testInfoNullPattern

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


testInfoNoArg

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


testInfoBadPattern

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


testInfoMissingArg

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


testInfoString

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


testInfoNull

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


testInfoInt

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


testInfoByte

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


testInfoShort

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


testInfoLong

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


testInfoChar

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


testInfoBoolean

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


testInfoFloat

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


testInfoDouble

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


testInfoTwoArg

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


testInfoThreeArg

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


testInfoArrayArg

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


testWarnNullPattern

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


testWarnNoArg

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


testWarnBadPattern

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


testWarnMissingArg

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


testWarnString

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


testWarnNull

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


testWarnInt

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


testWarnByte

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


testWarnShort

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


testWarnLong

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


testWarnChar

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


testWarnBoolean

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


testWarnFloat

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


testWarnDouble

public void testWarnDouble()
Test LogSF.warn with single field pattern with double argument.


testWarnTwoArg

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


testWarnThreeArg

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


testWarnFourArg

public void testWarnFourArg()
Test LogSF.warn with Object[] argument.


testWarnArrayArg

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


testLogNullPattern

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


testLogNoArg

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


testLogBadPattern

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


testLogMissingArg

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


testLogString

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


testLogNull

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


testLogInt

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


testLogByte

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


testLogShort

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


testLogLong

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


testLogChar

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


testLogBoolean

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


testLogFloat

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


testLogDouble

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


testLogTwoArg

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


testLogThreeArg

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


testLogFourArg

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


testLogArrayArg

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


testLogrbNullBundle

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


testLogrbNullKey

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


testLogrbNoArg

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


testLogrbBadPattern

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


testLogrbMissingArg

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


testLogrbString

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


testLogrbNull

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


testLogrbInt

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


testLogrbByte

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


testLogrbShort

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


testLogrbLong

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


testLogrbChar

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


testLogrbBoolean

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


testLogrbFloat

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


testLogrbDouble

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


testLogrbTwoArg

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


testLogrbThreeArg

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


testLogrbFourArg

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


testLogrbArrayArg

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


testEscapeOneParam

public void testEscapeOneParam()
Test \\{ escape sequence when only one parameter is present.


testEscapeTwoParam

public void testEscapeTwoParam()
Test \\{ escape sequence when more than one parameter is present.



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.