org.objectweb.cjdbc.scenario.standalone.connection
Class SimpleConnectionManagerTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.standalone.connection.SimpleConnectionManagerTest

public class SimpleConnectionManagerTest
extends NoTemplate

SimpleConnectionManager test class.

Author:
Mathieu Peltier
See Also:
SimpleConnectionManager, Serialized Form

Field Summary
private  SimpleConnectionManager manager
          Simple connection manager pool to test.
private  MockConnection2 mockConnection
          Fake connection.
private  MockDriver mockDriver
          Fake driver.
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
SimpleConnectionManagerTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          Starts a new test
protected  void setUp()
           
static Test suite()
          Builds a new TestSuite
protected  void tearDown()
           
 void testSimpleConnectionManager()
          Simple connection manager functionnal test.
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
getTextPath, getUserDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mockDriver

private MockDriver mockDriver
Fake driver.


mockConnection

private MockConnection2 mockConnection
Fake connection.


manager

private SimpleConnectionManager manager
Simple connection manager pool to test.

Constructor Detail

SimpleConnectionManagerTest

public SimpleConnectionManagerTest()
Method Detail

suite

public static Test suite()
Builds a new TestSuite

Returns:
the TestSuite

main

public static void main(java.lang.String[] args)
Starts a new test

Parameters:
args - test parameters

setUp

protected void setUp()
See Also:
junit.framework.TestCase#setUp()

tearDown

protected void tearDown()
See Also:
junit.framework.TestCase#tearDown()

testSimpleConnectionManager

public void testSimpleConnectionManager()
                                 throws UnreachableBackendException
Simple connection manager functionnal test.

Throws:
UnreachableBackendException - if no connections available test should fail !


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.