Apache Commons logo Commons DBCP

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
536 0 0 0 100% 75.979

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% 11.797
org.apache.commons.dbcp2 270 0 0 0 100% 42.146
org.apache.commons.dbcp2.managed 182 0 0 0 100% 18.186
org.apache.commons.dbcp2.cpdsadapter 7 0 0 0 100% 3.85

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
TestCPDSConnectionFactory 3 0 0 0 100% 0.043
TestFactory 1 0 0 0 100% 0.004
TestInstanceKeyDataSource 1 0 0 0 100% 0.002
TestKeyedCPDSConnectionFactory 3 0 0 0 100% 0.001
TestPerUserPoolDataSource 35 0 0 0 100% 4.566
TestSharedPoolDataSource 34 0 0 0 100% 7.181

org.apache.commons.dbcp2

Class Tests Errors Failures Skipped Success Rate Time
TestAbandonedBasicDataSource 63 0 0 0 100% 13.798
TestBasicDataSource 54 0 0 0 100% 5.806
TestBasicDataSourceFactory 3 0 0 0 100% 0.004
TestDelegatingCallableStatement 3 0 0 0 100% 0
TestDelegatingConnection 4 0 0 0 100% 0.002
TestDelegatingDatabaseMetaData 2 0 0 0 100% 0.002
TestDelegatingPreparedStatement 3 0 0 0 100% 0
TestDelegatingStatement 4 0 0 0 100% 0.004
TestDriverManagerConnectionFactory 1 0 0 0 100% 0.106
TestJndi 3 0 0 0 100% 0.012
TestPoolableConnection 5 0 0 0 100% 0.002
TestPoolingDataSource 30 0 0 0 100% 3.21
TestPoolingDriver 29 0 0 0 100% 3.125
TestPStmtPooling 5 0 0 0 100% 0.002
TestPStmtPoolingBasicDataSource 60 0 0 0 100% 16.073
TestUtils 1 0 0 0 100% 0

org.apache.commons.dbcp2.managed

Class Tests Errors Failures Skipped Success Rate Time
TestBasicManagedDataSource 55 0 0 0 100% 5.791
TestDataSourceXAConnectionFactory 55 0 0 0 100% 5.847
TestManagedConnection 1 0 0 0 100% 0.01
TestManagedDataSource 33 0 0 0 100% 3.424
TestManagedDataSourceInTx 37 0 0 0 100% 3.113
TestTransactionContext 1 0 0 0 100% 0.001

org.apache.commons.dbcp2.cpdsadapter

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

Test Cases

[Summary] [Package List] [Test Cases]

TestDriverAdapterCPDS

testNullValidationQuery 0.133
testClosingWithUserName 0
testDbcp367 3.711
testSimpleWithUsername 0.004
testSetProperties 0.001
testSimple 0
testIncorrectPassword 0.001

TestCPDSConnectionFactory

testNullValidationQuery 0.007
testConnectionErrorCleanup 0.001
testSharedPoolDSDestroyOnReturn 0.035

TestFactory

testJNDI2Pools 0.004

TestInstanceKeyDataSource

testExceptionOnSetupDefaults 0.002

TestKeyedCPDSConnectionFactory

testNullValidationQuery 0
testConnectionErrorCleanup 0
testSharedPoolDSDestroyOnReturn 0.001

TestPerUserPoolDataSource

testPerUserMethods 0.002
testOpening 0.002
testSerialization 0.013
testClosingWithUserName 0.001
testChangePassword 0.002
testDefaultUser1 0.001
testDefaultUser2 0.003
testClosing 0.001
testTransactionIsolationBehavior 0.001
testMaxTotal 0.102
testSimpleWithUsername 0.001
testMaxWaitMillisZero 0.001
testSimple2 0.001
testSimple 0.001
testMultipleThreads1 0.311
testMultipleThreads2 1.009
testUnregisteredUser 0.002
testIncorrectPassword 0.002
testThreaded 3.088
testCanCloseStatementTwice 0.002
testNoRsetClose 0.001
testPooling 0.001
testCanCloseConnectionTwice 0.001
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.006
testAutoCommitBehavior 0.001
testHashing 0.001
testCanClosePreparedStatementTwice 0.001
testPrepareStatementOptions 0
testBackPointers 0.002
testHashCode 0.001
testConnectionsAreDistinct 0.001
testRepeatedBorrowAndReturn 0.001
testCanCloseResultSetTwice 0.001
testClearWarnings 0.001

TestSharedPoolDataSource

testPoolPreparedStatements 0.01
testOpening 0.001
testClosingWithUserName 0
testChangePassword 0.001
testPoolPrepareStatement 0.001
testMaxWaitMillis 1.005
testClosePool 0
testClosing 0.001
testTransactionIsolationBehavior 0
testDbcp369 1.618
testMaxTotal 0.106
testSimpleWithUsername 0.003
testSimple2 0.001
testSimple 0.002
testMultipleThreads1 0.308
testMultipleThreads2 1.009
testIncorrectPassword 0.003
testThreaded 3.086
testCanCloseStatementTwice 0.003
testNoRsetClose 0.002
testPooling 0.001
testCanCloseConnectionTwice 0.002
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.002
testAutoCommitBehavior 0.001
testHashing 0.001
testCanClosePreparedStatementTwice 0.002
testPrepareStatementOptions 0.001
testBackPointers 0.002
testHashCode 0.002
testConnectionsAreDistinct 0.001
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0.001
testClearWarnings 0.002

TestBasicManagedDataSource

testReallyClose 0.044
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0.002
testSetValidationTestProperties 0.001
testRollbackReadOnly 0
testClose 0
testPropertyTestOnReturn 0
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.105
testPooling 0.001
testMaxConnLifetimeExceeded 0.513
testValidationQueryTimeoutNegative 0
testPoolCloseRTE 0.001
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.001
testConcurrentInitBorrow 0.477
testValidationQueryTimeoutZero 0.001
testMaxConnLifetimeExceededMutedLog 0.505
testEmptyInitConnectionSql 0
testDriverClassLoader 0.002
testJmxDisabled 0.006
testInitialSize 0.001
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0.001
testPoolCloseCheckedException 0.001
testCreateDataSourceCleanupEvictor 1.006
testTransactionIsolationBehavior 0.001
testCreateDataSourceCleanupThreads 0
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0.001
testInvalidateConnection 0.001
testSetProperties 0
testDisconnectSqlCodes 0
testIsClosedFailure 0.001
testThreaded 2.998
testCanCloseStatementTwice 0.001
testNoRsetClose 0.001
testOpening 0
testCanCloseConnectionTwice 0
testIsClosed 0.001
testCanCloseCallableStatementTwice 0
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0.001
testClosing 0.001
testPrepareStatementOptions 0
testBackPointers 0.001
testHashCode 0.001
testConnectionsAreDistinct 0.001
testMaxTotal 0.105
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0.001
testClearWarnings 0
testSimple2 0
testSimple 0.001

TestDataSourceXAConnectionFactory

testPhysicalClose 0.014
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0.001
testSetValidationTestProperties 0
testRollbackReadOnly 0
testClose 0.001
testPropertyTestOnReturn 0
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.103
testPooling 0.002
testMaxConnLifetimeExceeded 0.504
testValidationQueryTimeoutNegative 0.001
testPoolCloseRTE 0.001
testInvalidConnectionInitSql 0.001
testSetAutoCommitTrueOnClose 0
testConcurrentInitBorrow 0.48
testValidationQueryTimeoutZero 0.001
testMaxConnLifetimeExceededMutedLog 0.505
testEmptyInitConnectionSql 0.001
testDriverClassLoader 0
testJmxDisabled 0.001
testInitialSize 0.001
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0.001
testPoolCloseCheckedException 0.001
testCreateDataSourceCleanupEvictor 1.005
testTransactionIsolationBehavior 0.001
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0
testInvalidateConnection 0.001
testSetProperties 0
testDisconnectSqlCodes 0.001
testIsClosedFailure 0.001
testThreaded 3.099
testCanCloseStatementTwice 0.001
testNoRsetClose 0
testOpening 0.001
testCanCloseConnectionTwice 0.001
testIsClosed 0
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0.001
testClosing 0.001
testPrepareStatementOptions 0
testBackPointers 0.001
testHashCode 0
testConnectionsAreDistinct 0.001
testMaxTotal 0.103
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0
testClearWarnings 0.001
testSimple2 0
testSimple 0.001

TestManagedConnection

testConnectionReturnOnErrorWhenEnlistingXAResource 0.01

TestManagedDataSource

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

TestManagedDataSourceInTx

testNestedConnections 0
testSharedConnection 0.001
testReadOnly 0
testConnectionReturnOnCommit 0
testAutoCommitBehavior 0.001
testCloseInTransaction 0
testManagedConnectionEqualsFail 0
testHashCode 0
testConnectionsAreDistinct 0
testMaxTotal 0.104
testCommit 0.001
testClearWarnings 0.001
testSharedTransactionConversion 0
testManagedConnectionEqualsSameDelegateNoUnderlyingAccess 0.001
testManagedConnectionEqualsSameDelegate 0
testManagedConnectionEqualsNull 0
testManagedConnectionEqualsType 0.001
testManagedConnectionEqualInnermost 0
testManagedConnectionEqualsReflexive 0.001
testAccessToUnderlyingConnectionAllowed 0
testThreaded 2.996
testCanCloseStatementTwice 0
testNoRsetClose 0.001
testOpening 0
testPooling 0.001
testCanCloseConnectionTwice 0
testIsClosed 0
testCanCloseCallableStatementTwice 0
testHashing 0
testCanClosePreparedStatementTwice 0.001
testClosing 0
testPrepareStatementOptions 0.001
testBackPointers 0
testRepeatedBorrowAndReturn 0.001
testCanCloseResultSetTwice 0.001
testSimple2 0
testSimple 0

TestTransactionContext

testSetSharedConnectionEnlistFailure 0.001

TestAbandonedBasicDataSource

testAbandonedCloseWithExceptions 0.004
testLastUsedPrepareCall 2.616
testLastUsed 2.614
testAbandoned 0.002
testGarbageCollectorCleanUp01 0.054
testGarbageCollectorCleanUp02 0.169
testLastUsedUpdate 0.001
testAbandonedClose 0.001
testLastUsedPreparedStatementUse 2.613
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0
testSetValidationTestProperties 0.001
testRollbackReadOnly 0
testClose 0.001
testPropertyTestOnReturn 0.001
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.106
testPooling 0.001
testMaxConnLifetimeExceeded 0.502
testValidationQueryTimeoutNegative 0
testPoolCloseRTE 0.001
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.001
testConcurrentInitBorrow 0.482
testValidationQueryTimeoutZero 0.001
testMaxConnLifetimeExceededMutedLog 0.505
testEmptyInitConnectionSql 0
testDriverClassLoader 0.001
testJmxDisabled 0.001
testInitialSize 0.001
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0
testPoolCloseCheckedException 0.001
testCreateDataSourceCleanupEvictor 1.004
testTransactionIsolationBehavior 0.001
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.001
testAccessToUnderlyingConnectionAllowed 0
testInvalidateConnection 0.001
testSetProperties 0
testDisconnectSqlCodes 0.001
testIsClosedFailure 0
testThreaded 2.99
testCanCloseStatementTwice 0.001
testNoRsetClose 0
testOpening 0.001
testCanCloseConnectionTwice 0.001
testIsClosed 0
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0
testHashing 0.001
testCanClosePreparedStatementTwice 0
testClosing 0.001
testPrepareStatementOptions 0
testBackPointers 0.002
testHashCode 0
testConnectionsAreDistinct 0.001
testMaxTotal 0.106
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0
testClearWarnings 0.001
testSimple2 0
testSimple 0

TestBasicDataSource

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

TestBasicDataSourceFactory

testProperties 0.003
testValidateProperties 0.001
testNoProperties 0

TestDelegatingCallableStatement

testGetDelegate 0
testExecuteQueryReturnsNotNull 0
testExecuteQueryReturnsNull 0

TestDelegatingConnection

testGetDelegate 0
testCheckOpenNull 0.002
testCheckOpen 0
testConnectionToString 0

TestDelegatingDatabaseMetaData

testGetDelegate 0.002
testCheckOpen 0

TestDelegatingPreparedStatement

testGetDelegate 0
testExecuteQueryReturnsNotNull 0
testExecuteQueryReturnsNull 0

TestDelegatingStatement

testGetDelegate 0
testIsWrapperFor 0.004
testExecuteQueryReturnsNull 0
testCheckOpen 0

TestDriverManagerConnectionFactory

testDriverManagerInit 0.106

TestJndi

testBasicDataSourceBind 0.011
testPerUserPoolDataSourceBind 0.001
testSharedPoolDataSourceBind 0

TestPoolableConnection

testPoolableConnectionLeak 0
testFastFailValidationCustomCodes 0.001
testConnectionPool 0
testClosingWrappedInDelegate 0
testFastFailValidation 0.001

TestPoolingDataSource

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

TestPoolingDriver

testLogWriter 0.007
testReportedBug12400 0.002
testReportedBug28912 0.001
test1 0
test2 0.001
testClosePool 0
testInvalidateConnection 0.001
testThreaded 2.991
testCanCloseStatementTwice 0.001
testNoRsetClose 0
testOpening 0.001
testPooling 0.001
testCanCloseConnectionTwice 0
testIsClosed 0
testCanCloseCallableStatementTwice 0.002
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0
testClosing 0.001
testPrepareStatementOptions 0.001
testBackPointers 0.001
testHashCode 0
testConnectionsAreDistinct 0.001
testMaxTotal 0.106
testRepeatedBorrowAndReturn 0.002
testCanCloseResultSetTwice 0.001
testClearWarnings 0.002
testSimple2 0.001
testSimple 0

TestPStmtPooling

testStmtPool 0
testBatchUpdate 0.001
testClosePool 0
testCallableStatementPooling 0.001
testMultipleClose 0

TestPStmtPoolingBasicDataSource

testLRUBehavior 0.211
testPreparedStatementPooling 0.001
testPStmtPoolingAccrossClose 0.001
testPStmtPoolingWithNoClose 0.001
testPStmtCatalog 0.001
testMultipleThreads1 10.124
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0.001
testSetValidationTestProperties 0
testRollbackReadOnly 0.001
testClose 0.001
testPropertyTestOnReturn 0.001
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.106
testPooling 0.003
testMaxConnLifetimeExceeded 0.503
testValidationQueryTimeoutNegative 0.001
testPoolCloseRTE 0.001
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.001
testConcurrentInitBorrow 0.486
testValidationQueryTimeoutZero 0.001
testMaxConnLifetimeExceededMutedLog 0.503
testEmptyInitConnectionSql 0
testDriverClassLoader 0.001
testJmxDisabled 0.001
testInitialSize 0.002
testInvalidValidationQuery 0.001
testNoAccessToUnderlyingConnectionAllowed 0
testPoolCloseCheckedException 0.001
testCreateDataSourceCleanupEvictor 1.001
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0
testDefaultCatalog 0.003
testAccessToUnderlyingConnectionAllowed 0.001
testInvalidateConnection 0.001
testSetProperties 0
testDisconnectSqlCodes 0.001
testIsClosedFailure 0.001
testThreaded 2.985
testCanCloseStatementTwice 0.001
testNoRsetClose 0.001
testOpening 0.002
testCanCloseConnectionTwice 0
testIsClosed 0
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0.001
testHashing 0.001
testCanClosePreparedStatementTwice 0
testClosing 0.002
testPrepareStatementOptions 0
testBackPointers 0.002
testHashCode 0.001
testConnectionsAreDistinct 0.001
testMaxTotal 0.103
testRepeatedBorrowAndReturn 0.001
testCanCloseResultSetTwice 0.001
testClearWarnings 0.003
testSimple2 0.001
testSimple 0.001

TestUtils

testClassLoads 0