org.apache.log4j.jdbcplus.examples.test
Class JdbcAppenderTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.log4j.jdbcplus.examples.test.JdbcAppenderTest
All Implemented Interfaces:
Test

public class JdbcAppenderTest
extends TestCase

test Case for FirebirdPoolConnectionHandler, SqlHandler and JDBC logging

Version:
$Revision: 1.0 $
Author:
mann17, $Author: mann17 $

Constructor Summary
JdbcAppenderTest()
           
 
Method Summary
 void _testDbRecovery()
          Recovery test.
 void _testDefaultConfigException()
           
 void _testGetConnection()
           
 void _testNestedException()
           
static void main(String[] args)
          main operation.
static Test suite()
           
 void testCustomConfig()
           
 void testDefaultConfig()
           
 
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

JdbcAppenderTest

public JdbcAppenderTest()
Method Detail

main

public static void main(String[] args)
main operation.

Parameters:
args - arguments

suite

public static Test suite()
Returns:
test suite

_testGetConnection

public void _testGetConnection()
                        throws Exception
Exception

testCustomConfig

public void testCustomConfig()
                      throws Exception
Exception

_testDbRecovery

public void _testDbRecovery()
                     throws Exception
Recovery test. Currently fails :-( Firebird exception: org.firebirdsql.jca.FBResourceTransactionException: Local transaction active: can't begin another

Throws:
Exception

testDefaultConfig

public void testDefaultConfig()
                       throws Exception
Exception

_testDefaultConfigException

public void _testDefaultConfigException()
                                 throws Exception
Exception

_testNestedException

public void _testNestedException()
                          throws Exception
Exception


Copyright 2000-2004 Apache Software Foundation.