|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.tests.jdbcapi.ClientConnectionPoolDataSourceTest
public class ClientConnectionPoolDataSourceTest
Basic tests of the ConnectionPoolDataSource in the client driver.
| Field Summary |
|---|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
ClientConnectionPoolDataSourceTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
static junit.framework.Test |
suite()
Returns a suite that will run only in the client-server configuration. |
void |
testGetConnectionNoStatementPooling()
Tests basic connectivity when connection is obtained from a connection pool data source without statement pooling. |
void |
testGetConnectionWithStatementPooling()
Tests basic connectivity when connection is obtained from a connection pool data source with statement pooling enabled. |
void |
testMaxStatementsProperty()
Verify that handling of the maxStatements property is working. |
private void |
verifyConnection(org.apache.derby.jdbc.ClientConnectionPoolDataSource cDs)
Do some basic verification on a connection obtained from the data source. |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, 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 |
|---|
public ClientConnectionPoolDataSourceTest(java.lang.String name)
| Method Detail |
|---|
public void testMaxStatementsProperty()
maxStatements property is working.
public void testGetConnectionNoStatementPooling()
throws java.sql.SQLException
java.sql.SQLException - if database operations fail
public void testGetConnectionWithStatementPooling()
throws java.sql.SQLException
java.sql.SQLException - if database operations fail
private void verifyConnection(org.apache.derby.jdbc.ClientConnectionPoolDataSource cDs)
throws java.sql.SQLException
cDs - data source to get connection from
java.sql.SQLException - if a JDBC operation failspublic static junit.framework.Test suite()
|
Built on Thu 2009-11-26 18:42:53-0800, from revision 884739 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||