org.apache.derbyTesting.functionTests.tests.jdbcapi
Class ClosedObjectTest.PoolDataSourceDecorator

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.extensions.TestDecorator
          extended by junit.extensions.TestSetup
              extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.DataSourceDecorator
                  extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.PoolDataSourceDecorator
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
ClosedObjectTest

private static class ClosedObjectTest.PoolDataSourceDecorator
extends ClosedObjectTest.DataSourceDecorator

Decorator class used for obtaining connections through a ConnectionPoolDataSource.


Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
ClosedObjectTest.PoolDataSourceDecorator(junit.framework.Test test)
          Creates a new PoolDataSourceDecorator instance.
 
Method Summary
protected  java.sql.Connection newConnection_()
          Creates a new connection using a ConnectionPoolDataSource.
 
Methods inherited from class org.apache.derbyTesting.functionTests.tests.jdbcapi.ClosedObjectTest.DataSourceDecorator
getConnection, newConnection, setUp, tearDown
 
Methods inherited from class junit.extensions.TestSetup
run
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, 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

ClosedObjectTest.PoolDataSourceDecorator

public ClosedObjectTest.PoolDataSourceDecorator(junit.framework.Test test)
Creates a new PoolDataSourceDecorator instance.

Parameters:
test - the test to decorate
Method Detail

newConnection_

protected java.sql.Connection newConnection_()
                                      throws java.sql.SQLException
Creates a new connection using a ConnectionPoolDataSource.

Overrides:
newConnection_ in class ClosedObjectTest.DataSourceDecorator
Returns:
a Connection value
Throws:
java.sql.SQLException - if an error occurs

Built on Thu 2009-11-26 18:42:53-0800, from revision 884739

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.