Apache Commons logo Commons DBCP

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
560 0 0 0 100% 76.64

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.dbcp2.datasources 77 0 0 0 100% 13.05
org.apache.commons.dbcp2 290 0 0 0 100% 42.296
org.apache.commons.dbcp2.managed 186 0 0 0 100% 17.386
org.apache.commons.dbcp2.cpdsadapter 7 0 0 0 100% 3.908

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.dbcp2.datasources

Class Tests Errors Failures Skipped Success Rate Time
TestSharedPoolDataSource 34 0 0 0 100% 7.922
TestPerUserPoolDataSource 35 0 0 0 100% 4.723
TestKeyedCPDSConnectionFactory 3 0 0 0 100% 0.014
TestCPDSConnectionFactory 3 0 0 0 100% 0.006
TestInstanceKeyDataSource 1 0 0 0 100% 0.191
TestFactory 1 0 0 0 100% 0.194

org.apache.commons.dbcp2

Class Tests Errors Failures Skipped Success Rate Time
TestDriverManagerConnectionFactory 3 0 0 0 100% 0.218
TestUtils 1 0 0 0 100% 0
TestPoolableConnection 5 0 0 0 100% 0.001
TestDelegatingStatement 4 0 0 0 100% 0.001
TestPoolingDriver 29 0 0 0 100% 3.151
TestPoolingDataSource 30 0 0 0 100% 2.994
TestBasicDataSourceFactory 4 0 0 0 100% 0.01
TestAbandonedBasicDataSource 65 0 0 0 100% 13.904
TestDelegatingCallableStatement 3 0 0 0 100% 0.001
TestJndi 3 0 0 0 100% 0.025
TestBasicDataSource 56 0 0 0 100% 5.796
TestDelegatingDatabaseMetaData 2 0 0 0 100% 0.007
TestPoolingConnection 9 0 0 0 100% 0.005
TestDelegatingConnection 6 0 0 0 100% 0
TestPStmtPooling 5 0 0 0 100% 0.009
TestDelegatingPreparedStatement 3 0 0 0 100% 0
TestPStmtPoolingBasicDataSource 62 0 0 0 100% 16.174

org.apache.commons.dbcp2.managed

Class Tests Errors Failures Skipped Success Rate Time
TestDataSourceXAConnectionFactory 57 0 0 0 100% 5.709
TestTransactionContext 1 0 0 0 100% 0
TestManagedDataSource 33 0 0 0 100% 2.984
TestBasicManagedDataSource 57 0 0 0 100% 5.613
TestManagedConnection 1 0 0 0 100% 0.001
TestManagedDataSourceInTx 37 0 0 0 100% 3.079

org.apache.commons.dbcp2.cpdsadapter

Class Tests Errors Failures Skipped Success Rate Time
TestDriverAdapterCPDS 7 0 0 0 100% 3.908

Test Cases

[Summary] [Package List] [Test Cases]

TestDriverAdapterCPDS

testNullValidationQuery 0
testClosingWithUserName 0.001
testDbcp367 3.902
testSimpleWithUsername 0
testSetProperties 0
testSimple 0
testIncorrectPassword 0

TestSharedPoolDataSource

testPoolPreparedStatements 0.099
testOpening 0.007
testClosingWithUserName 0.004
testChangePassword 0.002
testPoolPrepareStatement 0.003
testMaxWaitMillis 1.019
testClosePool 0.001
testClosing 0.002
testTransactionIsolationBehavior 0.001
testDbcp369 2.293
testMaxTotal 0.104
testSimpleWithUsername 0.003
testSimple2 0.005
testSimple 0.005
testMultipleThreads1 0.315
testMultipleThreads2 1.009
testIncorrectPassword 0.004
testThreaded 2.952
testCanCloseStatementTwice 0.007
testNoRsetClose 0.004
testPooling 0.003
testCanCloseConnectionTwice 0.004
testIsClosed 0.012
testCanCloseCallableStatementTwice 0.008
testAutoCommitBehavior 0.003
testHashing 0.003
testCanClosePreparedStatementTwice 0.003
testPrepareStatementOptions 0.003
testBackPointers 0.003
testHashCode 0.002
testConnectionsAreDistinct 0.003
testRepeatedBorrowAndReturn 0.006
testCanCloseResultSetTwice 0.003
testClearWarnings 0.003

TestDriverManagerConnectionFactory

testDriverManagerInitWithCredentials 0.111
testDriverManagerInitWithEmptyProperties 0
testDriverManagerInitWithProperties 0.107

TestDataSourceXAConnectionFactory

testPhysicalClose 0.017
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0
testConcurrentInvalidateBorrow 0.068
testSetValidationTestProperties 0
testRollbackReadOnly 0.001
testClose 0.001
testPropertyTestOnReturn 0.001
testValidationQueryTimeoutSucceed 0
testMaxTotalZero 0.101
testPooling 0
testMaxConnLifetimeExceeded 0.506
testValidationQueryTimeoutNegative 0.002
testPoolCloseRTE 0.002
testInvalidConnectionInitSql 0.001
testSetAutoCommitTrueOnClose 0.003
testConcurrentInitBorrow 0.474
testValidationQueryTimeoutZero 0.001
testMaxConnLifetimeExceededMutedLog 0.502
testEmptyInitConnectionSql 0
testDriverClassLoader 0.001
testJmxDisabled 0.001
testInitialSize 0.001
testInvalidValidationQuery 0.001
testNoAccessToUnderlyingConnectionAllowed 0.002
testPoolCloseCheckedException 0
testCreateDataSourceCleanupEvictor 1.001
testTransactionIsolationBehavior 0.003
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0.001
testInvalidateConnection 0.001
testSetProperties 0
testMutateAbandonedConfig 0.001
testDisconnectSqlCodes 0
testIsClosedFailure 0
testThreaded 2.879
testCanCloseStatementTwice 0.002
testNoRsetClose 0.001
testOpening 0.002
testCanCloseConnectionTwice 0.002
testIsClosed 0.001
testCanCloseCallableStatementTwice 0
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0
testClosing 0.001
testPrepareStatementOptions 0.001
testBackPointers 0.001
testHashCode 0
testConnectionsAreDistinct 0.001
testMaxTotal 0.102
testRepeatedBorrowAndReturn 0.001
testCanCloseResultSetTwice 0.001
testClearWarnings 0.002
testSimple2 0
testSimple 0

TestUtils

testClassLoads 0

TestPerUserPoolDataSource

testPerUserMethods 0.063
testOpening 0.003
testSerialization 0.079
testClosingWithUserName 0.004
testChangePassword 0.005
testDefaultUser1 0.006
testDefaultUser2 0.004
testClosing 0.007
testTransactionIsolationBehavior 0
testMaxTotal 0.104
testSimpleWithUsername 0.001
testMaxWaitMillisZero 0.001
testSimple2 0.002
testSimple 0.001
testMultipleThreads1 0.308
testMultipleThreads2 1.01
testUnregisteredUser 0.006
testIncorrectPassword 0.005
testThreaded 3.071
testCanCloseStatementTwice 0.004
testNoRsetClose 0.002
testPooling 0.002
testCanCloseConnectionTwice 0.002
testIsClosed 0.002
testCanCloseCallableStatementTwice 0.002
testAutoCommitBehavior 0.002
testHashing 0.002
testCanClosePreparedStatementTwice 0.002
testPrepareStatementOptions 0.002
testBackPointers 0.003
testHashCode 0.002
testConnectionsAreDistinct 0.002
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0
testClearWarnings 0.004

TestTransactionContext

testSetSharedConnectionEnlistFailure 0

TestKeyedCPDSConnectionFactory

testNullValidationQuery 0.003
testConnectionErrorCleanup 0.007
testSharedPoolDSDestroyOnReturn 0.004

TestPoolableConnection

testPoolableConnectionLeak 0
testFastFailValidationCustomCodes 0
testConnectionPool 0
testClosingWrappedInDelegate 0
testFastFailValidation 0.001

TestManagedDataSource

testManagedConnectionEqualsSameDelegateNoUnderlyingAccess 0
testNestedConnections 0
testSharedConnection 0
testManagedConnectionEqualsSameDelegate 0
testConnectionReturnOnCommit 0
testManagedConnectionEqualsFail 0.001
testManagedConnectionEqualsNull 0
testManagedConnectionEqualsType 0
testManagedConnectionEqualInnermost 0
testManagedConnectionEqualsReflexive 0.001
testAccessToUnderlyingConnectionAllowed 0.001
testThreaded 2.858
testCanCloseStatementTwice 0.001
testNoRsetClose 0.003
testOpening 0.001
testPooling 0.002
testCanCloseConnectionTwice 0.001
testIsClosed 0
testCanCloseCallableStatementTwice 0
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0.001
testClosing 0
testPrepareStatementOptions 0.001
testBackPointers 0.002
testHashCode 0.001
testConnectionsAreDistinct 0.002
testMaxTotal 0.101
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0.002
testClearWarnings 0.001
testSimple2 0
testSimple 0.001

TestDelegatingStatement

testGetDelegate 0
testIsWrapperFor 0.001
testExecuteQueryReturnsNull 0
testCheckOpen 0

TestPoolingDriver

testLogWriter 0.022
testReportedBug12400 0.003
testReportedBug28912 0.001
test1 0.003
test2 0.002
testClosePool 0
testInvalidateConnection 0
testThreaded 2.978
testCanCloseStatementTwice 0.002
testNoRsetClose 0.002
testOpening 0.004
testPooling 0.002
testCanCloseConnectionTwice 0
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0.003
testHashing 0
testCanClosePreparedStatementTwice 0
testClosing 0.001
testPrepareStatementOptions 0.001
testBackPointers 0.005
testHashCode 0
testConnectionsAreDistinct 0.001
testMaxTotal 0.103
testRepeatedBorrowAndReturn 0.005
testCanCloseResultSetTwice 0
testClearWarnings 0.003
testSimple2 0.001
testSimple 0

TestCPDSConnectionFactory

testNullValidationQuery 0
testConnectionErrorCleanup 0.004
testSharedPoolDSDestroyOnReturn 0.002

TestPoolingDataSource

testClose 0
testFixFactoryConfig 0.005
testPoolGuardConnectionWrapperEqualsSameDelegate 0
testPoolGuardConnectionWrapperEqualInnermost 0
testPoolGuardConnectionWrapperEqualsReflexive 0
testPoolGuardConnectionWrapperEqualsFail 0
testPoolGuardConnectionWrapperEqualsNull 0
testPoolGuardConnectionWrapperEqualsType 0
testThreaded 2.871
testCanCloseStatementTwice 0.001
testNoRsetClose 0.001
testOpening 0.001
testPooling 0
testCanCloseConnectionTwice 0.001
testIsClosed 0
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0
testHashing 0.001
testCanClosePreparedStatementTwice 0.004
testClosing 0
testPrepareStatementOptions 0
testBackPointers 0
testHashCode 0
testConnectionsAreDistinct 0
testMaxTotal 0.102
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0
testClearWarnings 0.001
testSimple2 0.001
testSimple 0.001

TestInstanceKeyDataSource

testExceptionOnSetupDefaults 0.191

TestBasicDataSourceFactory

testProperties 0.006
testValidateProperties 0
testAllProperties 0.004
testNoProperties 0

TestBasicManagedDataSource

testReallyClose 0
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0
testConcurrentInvalidateBorrow 0.028
testSetValidationTestProperties 0.001
testRollbackReadOnly 0
testClose 0
testPropertyTestOnReturn 0
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.103
testPooling 0.001
testMaxConnLifetimeExceeded 0.505
testValidationQueryTimeoutNegative 0.002
testPoolCloseRTE 0.001
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.002
testConcurrentInitBorrow 0.475
testValidationQueryTimeoutZero 0.001
testMaxConnLifetimeExceededMutedLog 0.503
testEmptyInitConnectionSql 0
testDriverClassLoader 0.001
testJmxDisabled 0.001
testInitialSize 0.001
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0.001
testPoolCloseCheckedException 0
testCreateDataSourceCleanupEvictor 1.002
testTransactionIsolationBehavior 0.001
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.001
testAccessToUnderlyingConnectionAllowed 0.001
testInvalidateConnection 0.001
testSetProperties 0
testMutateAbandonedConfig 0.001
testDisconnectSqlCodes 0
testIsClosedFailure 0.001
testThreaded 2.852
testCanCloseStatementTwice 0.001
testNoRsetClose 0
testOpening 0.001
testCanCloseConnectionTwice 0.001
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.002
testAutoCommitBehavior 0
testHashing 0.001
testCanClosePreparedStatementTwice 0
testClosing 0.001
testPrepareStatementOptions 0
testBackPointers 0
testHashCode 0
testConnectionsAreDistinct 0
testMaxTotal 0.102
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0.002
testClearWarnings 0.001
testSimple2 0.001
testSimple 0.001

TestAbandonedBasicDataSource

testAbandonedCloseWithExceptions 0.036
testLastUsedPrepareCall 2.612
testLastUsed 2.61
testAbandoned 0.013
testGarbageCollectorCleanUp01 0.083
testGarbageCollectorCleanUp02 0.163
testLastUsedUpdate 0.002
testAbandonedClose 0.001
testLastUsedPreparedStatementUse 2.618
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0.001
testConcurrentInvalidateBorrow 0.097
testSetValidationTestProperties 0
testRollbackReadOnly 0.001
testClose 0.001
testPropertyTestOnReturn 0.002
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.106
testPooling 0.003
testMaxConnLifetimeExceeded 0.509
testValidationQueryTimeoutNegative 0.002
testPoolCloseRTE 0.002
testInvalidConnectionInitSql 0.001
testSetAutoCommitTrueOnClose 0.001
testConcurrentInitBorrow 0.478
testValidationQueryTimeoutZero 0.001
testMaxConnLifetimeExceededMutedLog 0.526
testEmptyInitConnectionSql 0
testDriverClassLoader 0
testJmxDisabled 0
testInitialSize 0
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0
testPoolCloseCheckedException 0
testCreateDataSourceCleanupEvictor 1.003
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0.001
testInvalidateConnection 0
testSetProperties 0
testMutateAbandonedConfig 0.007
testDisconnectSqlCodes 0
testIsClosedFailure 0
testThreaded 2.874
testCanCloseStatementTwice 0.002
testNoRsetClose 0
testOpening 0.001
testCanCloseConnectionTwice 0.004
testIsClosed 0
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0.008
testClosing 0
testPrepareStatementOptions 0
testBackPointers 0
testHashCode 0
testConnectionsAreDistinct 0
testMaxTotal 0.105
testRepeatedBorrowAndReturn 0
testCanCloseResultSetTwice 0
testClearWarnings 0
testSimple2 0.001
testSimple 0.01

TestManagedConnection

testConnectionReturnOnErrorWhenEnlistingXAResource 0.001

TestDelegatingCallableStatement

testGetDelegate 0
testExecuteQueryReturnsNotNull 0
testExecuteQueryReturnsNull 0

TestJndi

testBasicDataSourceBind 0.025
testPerUserPoolDataSourceBind 0
testSharedPoolDataSourceBind 0

TestBasicDataSource

testEmptyValidationQuery 0
testValidationQueryTimoutFail 0.001
testConcurrentInvalidateBorrow 0.079
testSetValidationTestProperties 0
testRollbackReadOnly 0.001
testClose 0.001
testPropertyTestOnReturn 0.001
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.102
testPooling 0.002
testMaxConnLifetimeExceeded 0.506
testValidationQueryTimeoutNegative 0.001
testPoolCloseRTE 0.001
testInvalidConnectionInitSql 0.001
testSetAutoCommitTrueOnClose 0
testConcurrentInitBorrow 0.485
testValidationQueryTimeoutZero 0
testMaxConnLifetimeExceededMutedLog 0.504
testEmptyInitConnectionSql 0.001
testDriverClassLoader 0
testJmxDisabled 0.001
testInitialSize 0.001
testInvalidValidationQuery 0.001
testNoAccessToUnderlyingConnectionAllowed 0
testPoolCloseCheckedException 0.001
testCreateDataSourceCleanupEvictor 1.001
testTransactionIsolationBehavior 0.001
testCreateDataSourceCleanupThreads 0
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0
testInvalidateConnection 0.001
testSetProperties 0
testMutateAbandonedConfig 0
testDisconnectSqlCodes 0
testIsClosedFailure 0.001
testThreaded 2.974
testCanCloseStatementTwice 0.001
testNoRsetClose 0.001
testOpening 0.001
testCanCloseConnectionTwice 0.001
testIsClosed 0.001
testCanCloseCallableStatementTwice 0
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0.001
testClosing 0.001
testPrepareStatementOptions 0
testBackPointers 0.001
testHashCode 0
testConnectionsAreDistinct 0.001
testMaxTotal 0.106
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0.001
testClearWarnings 0.001
testSimple2 0.001
testSimple 0

TestDelegatingDatabaseMetaData

testGetDelegate 0.002
testCheckOpen 0.001

TestPoolingConnection

testPrepareCall 0
testPrepareStatementWithColumnIndexes 0.003
testPrepareStatementWithAutoGeneratedKeys 0
testPrepareStatementWithColumnNames 0.002
testPrepareCallWithResultSetHoldability 0
testPrepareStatementWithResultSetHoldability 0
testPrepareCallWithResultSetConcurrency 0
testPrepareStatementWithResultSetConcurrency 0
testPrepareStatement 0

TestManagedDataSourceInTx

testNestedConnections 0.051
testSharedConnection 0.013
testReadOnly 0
testConnectionReturnOnCommit 0.001
testAutoCommitBehavior 0
testCloseInTransaction 0.006
testManagedConnectionEqualsFail 0
testHashCode 0
testConnectionsAreDistinct 0
testMaxTotal 0.103
testCommit 0
testClearWarnings 0
testSharedTransactionConversion 0.001
testManagedConnectionEqualsSameDelegateNoUnderlyingAccess 0.001
testManagedConnectionEqualsSameDelegate 0
testManagedConnectionEqualsNull 0.001
testManagedConnectionEqualsType 0
testManagedConnectionEqualInnermost 0.001
testManagedConnectionEqualsReflexive 0
testAccessToUnderlyingConnectionAllowed 0.001
testThreaded 2.884
testCanCloseStatementTwice 0
testNoRsetClose 0
testOpening 0
testPooling 0
testCanCloseConnectionTwice 0
testIsClosed 0
testCanCloseCallableStatementTwice 0
testHashing 0
testCanClosePreparedStatementTwice 0
testClosing 0
testPrepareStatementOptions 0.008
testBackPointers 0.003
testRepeatedBorrowAndReturn 0
testCanCloseResultSetTwice 0
testSimple2 0.002
testSimple 0

TestFactory

testJNDI2Pools 0.022

TestDelegatingConnection

testGetDelegate 0
testCheckOpenNull 0
testIsClosed 0
testIsClosedNullDelegate 0
testCheckOpen 0
testConnectionToString 0

TestPStmtPooling

testStmtPool 0.009
testBatchUpdate 0
testClosePool 0
testCallableStatementPooling 0
testMultipleClose 0

TestDelegatingPreparedStatement

testGetDelegate 0
testExecuteQueryReturnsNotNull 0
testExecuteQueryReturnsNull 0

TestPStmtPoolingBasicDataSource

testLRUBehavior 0.206
testPreparedStatementPooling 0.002
testPStmtPoolingAcrossClose 0.002
testPStmtPoolingWithNoClose 0.001
testPStmtCatalog 0.001
testMultipleThreads1 10.119
testEmptyValidationQuery 0.001
testValidationQueryTimoutFail 0.001
testConcurrentInvalidateBorrow 0.178
testSetValidationTestProperties 0
testRollbackReadOnly 0.001
testClose 0.001
testPropertyTestOnReturn 0
testValidationQueryTimeoutSucceed 0
testMaxTotalZero 0.104
testPooling 0.002
testMaxConnLifetimeExceeded 0.507
testValidationQueryTimeoutNegative 0.001
testPoolCloseRTE 0.002
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.001
testConcurrentInitBorrow 0.499
testValidationQueryTimeoutZero 0.002
testMaxConnLifetimeExceededMutedLog 0.504
testEmptyInitConnectionSql 0.001
testDriverClassLoader 0.002
testJmxDisabled 0.001
testInitialSize 0.003
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0.001
testPoolCloseCheckedException 0.001
testCreateDataSourceCleanupEvictor 1.003
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.003
testAccessToUnderlyingConnectionAllowed 0
testInvalidateConnection 0.001
testSetProperties 0
testMutateAbandonedConfig 0
testDisconnectSqlCodes 0
testIsClosedFailure 0.001
testThreaded 2.875
testCanCloseStatementTwice 0.001
testNoRsetClose 0.002
testOpening 0.002
testCanCloseConnectionTwice 0
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0.001
testClosing 0.002
testPrepareStatementOptions 0
testBackPointers 0.004
testHashCode 0
testConnectionsAreDistinct 0.003
testMaxTotal 0.109
testRepeatedBorrowAndReturn 0.004
testCanCloseResultSetTwice 0
testClearWarnings 0.004
testSimple2 0.001
testSimple 0.002