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

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
              extended byorg.objectweb.cjdbc.scenario.standalone.connection.SimpleConnectionManagerTest
All Implemented Interfaces:
junit.framework.Test

public class SimpleConnectionManagerTest
extends NoTemplate

SimpleConnectionManager test class.

Author:
Mathieu Peltier
See Also:
SimpleConnectionManager

Field Summary
private  SimpleConnectionManager manager
          Simple connection manager pool to test.
private  com.mockobjects.sql.MockConnection2 mockConnection
          Fake connection.
private  MockDriver mockDriver
          Fake driver.
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
SimpleConnectionManagerTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          Starts a new test
protected  void setUp()
           
static junit.framework.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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mockDriver

private MockDriver mockDriver
Fake driver.


mockConnection

private com.mockobjects.sql.MockConnection2 mockConnection
Fake connection.


manager

private SimpleConnectionManager manager
Simple connection manager pool to test.

Constructor Detail

SimpleConnectionManagerTest

public SimpleConnectionManagerTest()
Method Detail

suite

public static junit.framework.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:
TestCase.setUp()

tearDown

protected void tearDown()
See Also:
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.