Package org.apache.log4j.db
Class FullCycleDBTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.log4j.db.FullCycleDBTest
-
- All Implemented Interfaces:
junit.framework.Test
public class FullCycleDBTest extends junit.framework.TestCase
This test case writes a few events into a databases and reads them back comparing the event written and read back.It relies heavily on the proper configuration of its environment in joran config files as well system properties.
See also the Ant build file in the tests/ directory.
- Author:
- Ceki Gülcü
-
-
Constructor Summary
Constructors Constructor Description FullCycleDBTest(String arg0)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setUp()
protected void
tearDown()
void
testAllFields()
This test starts by writing a single event to a DB using DBAppender and then reads it back using DBReceiver.void
testSingleOutput()
This test starts by writing a single event to a DB using DBAppender and then reads it back using DBReceiver.static junit.framework.Test
XXsuite()
-
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
-
-
-
-
Constructor Detail
-
FullCycleDBTest
public FullCycleDBTest(String arg0)
-
-
Method Detail
-
setUp
protected void setUp() throws Exception
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
-
tearDown
protected void tearDown() throws Exception
- Overrides:
tearDown
in classjunit.framework.TestCase
- Throws:
Exception
-
testSingleOutput
public void testSingleOutput() throws Exception
This test starts by writing a single event to a DB using DBAppender and then reads it back using DBReceiver. DB related information is specified within the configuration files.- Throws:
Exception
- on error
-
testAllFields
public void testAllFields() throws IOException
This test starts by writing a single event to a DB using DBAppender and then reads it back using DBReceiver. The written event includes MDC and repository properties as well as exception info. DB related information is specified within the configuration files.- Throws:
IOException
- on error
-
XXsuite
public static junit.framework.Test XXsuite()
-
-