Apache Commons logo Commons DBCP

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
480 0 0 0 100% 64.674

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.cpdsadapter 6 0 0 0 100% 11.415
org.apache.commons.dbcp2 239 0 0 0 100% 27.032
org.apache.commons.dbcp2.managed 160 0 0 0 100% 13.762
org.apache.commons.dbcp2.datasources 75 0 0 0 100% 12.465

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

org.apache.commons.dbcp2.cpdsadapter

Class Tests Errors Failures Skipped Success Rate Time
TestDriverAdapterCPDS 6 0 0 0 100% 11.415

org.apache.commons.dbcp2

Class Tests Errors Failures Skipped Success Rate Time
TestAbandonedBasicDataSource 55 0 0 0 100% 12.778
TestBasicDataSource 46 0 0 0 100% 3.939
TestBasicDataSourceFactory 2 0 0 0 100% 0.013
TestDelegatingCallableStatement 3 0 0 0 100% 0
TestDelegatingConnection 4 0 0 0 100% 0.003
TestDelegatingDatabaseMetaData 2 0 0 0 100% 0.005
TestDelegatingPreparedStatement 3 0 0 0 100% 0
TestDelegatingStatement 4 0 0 0 100% 0.005
TestDriverManagerConnectionFactory 1 0 0 0 100% 0.105
TestJndi 3 0 0 0 100% 0.017
TestPoolableConnection 3 0 0 0 100% 0
TestPoolingDataSource 28 0 0 0 100% 2.819
TestPoolingDriver 29 0 0 0 100% 3.254
TestPStmtPooling 4 0 0 0 100% 0
TestPStmtPoolingBasicDataSource 51 0 0 0 100% 4.094
TestUtils 1 0 0 0 100% 0

org.apache.commons.dbcp2.managed

Class Tests Errors Failures Skipped Success Rate Time
TestBasicManagedDataSource 47 0 0 0 100% 4.006
TestDataSourceXAConnectionFactory 47 0 0 0 100% 3.894
TestManagedDataSource 31 0 0 0 100% 2.856
TestManagedDataSourceInTx 35 0 0 0 100% 3.006

org.apache.commons.dbcp2.datasources

Class Tests Errors Failures Skipped Success Rate Time
TestCPDSConnectionFactory 2 0 0 0 100% 0.082
TestFactory 1 0 0 0 100% 0.002
TestInstanceKeyDataSource 1 0 0 0 100% 0
TestKeyedCPDSConnectionFactory 2 0 0 0 100% 0.002
TestPerUserPoolDataSource 35 0 0 0 100% 4.148
TestSharedPoolDataSource 34 0 0 0 100% 8.231

Test Cases

[Summary] [Package List] [Test Cases]

TestDriverAdapterCPDS

testClosingWithUserName 0.05
testDbcp367 11.36
testSimpleWithUsername 0.004
testSetProperties 0
testSimple 0
testIncorrectPassword 0.001

TestCPDSConnectionFactory

testConnectionErrorCleanup 0.01
testSharedPoolDSDestroyOnReturn 0.072

TestFactory

testJNDI2Pools 0.002

TestInstanceKeyDataSource

testExceptionOnSetupDefaults 0

TestKeyedCPDSConnectionFactory

testConnectionErrorCleanup 0
testSharedPoolDSDestroyOnReturn 0.002

TestPerUserPoolDataSource

testPerUserMethods 0.002
testOpening 0.002
testSerialization 0.019
testClosingWithUserName 0.002
testChangePassword 0.002
testDefaultUser1 0.003
testDefaultUser2 0.004
testClosing 0.002
testTransactionIsolationBehavior 0.001
testMaxTotal 0.103
testSimpleWithUsername 0.002
testMaxWaitMillisZero 0.002
testSimple2 0.003
testSimple 0.002
testMultipleThreads1 0.309
testMultipleThreads2 1.02
testUnregisteredUser 0
testIncorrectPassword 0
testThreaded 2.6
testCanCloseStatementTwice 0.002
testNoRsetClose 0.002
testPooling 0.006
testCanCloseConnectionTwice 0.003
testIsClosed 0.012
testCanCloseCallableStatementTwice 0.01
testAutoCommitBehavior 0.003
testHashing 0.003
testCanClosePreparedStatementTwice 0.003
testPrepareStatementOptions 0.003
testBackPointers 0.004
testHashCode 0.003
testConnectionsAreDistinct 0.003
testRepeatedBorrowAndReturn 0.006
testCanCloseResultSetTwice 0.003
testClearWarnings 0.004

TestSharedPoolDataSource

testPoolPreparedStatements 0.032
testOpening 0.003
testClosingWithUserName 0.003
testChangePassword 0.002
testPoolPrepareStatement 0.007
testMaxWaitMillis 1.02
testClosePool 0
testClosing 0
testTransactionIsolationBehavior 0
testDbcp369 2.86
testMaxTotal 0.103
testSimpleWithUsername 0.005
testSimple2 0.004
testSimple 0.004
testMultipleThreads1 0.307
testMultipleThreads2 1.015
testIncorrectPassword 0
testThreaded 2.802
testCanCloseStatementTwice 0.005
testNoRsetClose 0.004
testPooling 0.004
testCanCloseConnectionTwice 0.003
testIsClosed 0.004
testCanCloseCallableStatementTwice 0.004
testAutoCommitBehavior 0.003
testHashing 0.003
testCanClosePreparedStatementTwice 0.003
testPrepareStatementOptions 0.003
testBackPointers 0.004
testHashCode 0.005
testConnectionsAreDistinct 0.004
testRepeatedBorrowAndReturn 0.007
testCanCloseResultSetTwice 0.004
testClearWarnings 0.004

TestBasicManagedDataSource

testReallyClose 0.049
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0.003
testSetValidationTestProperties 0
testRollbackReadOnly 0.001
testClose 0.001
testPropertyTestOnReturn 0.001
testValidationQueryTimeoutSucceed 0
testMaxTotalZero 0.102
testPooling 0.002
testValidationQueryTimeoutNegative 0
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.001
testValidationQueryTimeoutZero 0.001
testEmptyInitConnectionSql 0.001
testDriverClassLoader 0.001
testInitialSize 0.001
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0.001
testCreateDataSourceCleanupEvictor 1.003
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.001
testAccessToUnderlyingConnectionAllowed 0.001
testSetProperties 0.001
testIsClosedFailure 0.001
testThreaded 2.705
testCanCloseStatementTwice 0.001
testNoRsetClose 0.001
testOpening 0.001
testCanCloseConnectionTwice 0.001
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0.001
testHashing 0
testCanClosePreparedStatementTwice 0.001
testClosing 0.001
testPrepareStatementOptions 0
testBackPointers 0.002
testHashCode 0
testConnectionsAreDistinct 0.002
testMaxTotal 0.101
testRepeatedBorrowAndReturn 0.006
testCanCloseResultSetTwice 0.001
testClearWarnings 0.002
testSimple2 0.002
testSimple 0.001

TestDataSourceXAConnectionFactory

testPhysicalClose 0.032
testEmptyValidationQuery 0
testValidationQueryTimoutFail 0.001
testSetValidationTestProperties 0
testRollbackReadOnly 0
testClose 0.001
testPropertyTestOnReturn 0
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.101
testPooling 0.003
testValidationQueryTimeoutNegative 0.001
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.001
testValidationQueryTimeoutZero 0.001
testEmptyInitConnectionSql 0
testDriverClassLoader 0.002
testInitialSize 0.002
testInvalidValidationQuery 0.001
testNoAccessToUnderlyingConnectionAllowed 0.001
testCreateDataSourceCleanupEvictor 1.001
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0.001
testSetProperties 0
testIsClosedFailure 0.002
testThreaded 2.602
testCanCloseStatementTwice 0.002
testNoRsetClose 0.001
testOpening 0.002
testCanCloseConnectionTwice 0.001
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.002
testAutoCommitBehavior 0.001
testHashing 0.001
testCanClosePreparedStatementTwice 0.001
testClosing 0.002
testPrepareStatementOptions 0.001
testBackPointers 0.003
testHashCode 0.001
testConnectionsAreDistinct 0.002
testMaxTotal 0.103
testRepeatedBorrowAndReturn 0.006
testCanCloseResultSetTwice 0.001
testClearWarnings 0.002
testSimple2 0.001
testSimple 0.001

TestManagedDataSource

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

TestManagedDataSourceInTx

testSharedConnection 0.01
testReadOnly 0.003
testAutoCommitBehavior 0.002
testCloseInTransaction 0.002
testManagedConnectionEqualsFail 0.002
testHashCode 0.002
testConnectionsAreDistinct 0.002
testMaxTotal 0.104
testCommit 0.002
testClearWarnings 0.015
testSharedTransactionConversion 0
testManagedConnectionEqualsSameDelegateNoUnderlyingAccess 0
testManagedConnectionEqualsSameDelegate 0
testManagedConnectionEqualsNull 0
testManagedConnectionEqualsType 0.001
testManagedConnectionEqualInnermost 0.003
testManagedConnectionEqualsReflexive 0.002
testAccessToUnderlyingConnectionAllowed 0.002
testThreaded 2.805
testCanCloseStatementTwice 0.003
testNoRsetClose 0.002
testOpening 0.007
testPooling 0.003
testCanCloseConnectionTwice 0.003
testIsClosed 0.003
testCanCloseCallableStatementTwice 0.002
testHashing 0.002
testCanClosePreparedStatementTwice 0.003
testClosing 0.002
testPrepareStatementOptions 0.005
testBackPointers 0.001
testRepeatedBorrowAndReturn 0.006
testCanCloseResultSetTwice 0.002
testSimple2 0.002
testSimple 0.003

TestAbandonedBasicDataSource

testAbandonedCloseWithExceptions 0.014
testlastUsed 2.601
testAbandoned 0.002
testGarbageCollectorCleanUp01 0.557
testGarbageCollectorCleanUp02 0.334
testLastUsedUpdate 0.001
testAbandonedClose 0.001
testLastUsedPreparedStatementUse 2.602
testlastUsedPrepareCall 2.601
testEmptyValidationQuery 0.001
testValidationQueryTimoutFail 0.001
testSetValidationTestProperties 0
testRollbackReadOnly 0
testClose 0.001
testPropertyTestOnReturn 0.001
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.109
testPooling 0.002
testValidationQueryTimeoutNegative 0.001
testInvalidConnectionInitSql 0.001
testSetAutoCommitTrueOnClose 0
testValidationQueryTimeoutZero 0.001
testEmptyInitConnectionSql 0
testDriverClassLoader 0.001
testInitialSize 0.002
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0.001
testCreateDataSourceCleanupEvictor 1
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0.001
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0.001
testSetProperties 0.001
testIsClosedFailure 0.001
testThreaded 2.802
testCanCloseStatementTwice 0.001
testNoRsetClose 0.001
testOpening 0.002
testCanCloseConnectionTwice 0.001
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.001
testAutoCommitBehavior 0.001
testHashing 0.001
testCanClosePreparedStatementTwice 0.001
testClosing 0.002
testPrepareStatementOptions 0.001
testBackPointers 0.002
testHashCode 0.001
testConnectionsAreDistinct 0.002
testMaxTotal 0.102
testRepeatedBorrowAndReturn 0.006
testCanCloseResultSetTwice 0.001
testClearWarnings 0.003
testSimple2 0.001
testSimple 0.001

TestBasicDataSource

testEmptyValidationQuery 0
testValidationQueryTimoutFail 0
testSetValidationTestProperties 0
testRollbackReadOnly 0
testClose 0
testPropertyTestOnReturn 0
testValidationQueryTimeoutSucceed 0
testMaxTotalZero 0.05
testPooling 0.002
testValidationQueryTimeoutNegative 0.001
testInvalidConnectionInitSql 0.001
testSetAutoCommitTrueOnClose 0
testValidationQueryTimeoutZero 0.001
testEmptyInitConnectionSql 0
testDriverClassLoader 0
testInitialSize 0.002
testInvalidValidationQuery 0
testNoAccessToUnderlyingConnectionAllowed 0.001
testCreateDataSourceCleanupEvictor 1.001
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0
testDefaultCatalog 0.002
testAccessToUnderlyingConnectionAllowed 0.001
testSetProperties 0
testIsClosedFailure 0.004
testThreaded 2.702
testCanCloseStatementTwice 0.001
testNoRsetClose 0.001
testOpening 0.002
testCanCloseConnectionTwice 0.001
testIsClosed 0.001
testCanCloseCallableStatementTwice 0.01
testAutoCommitBehavior 0
testHashing 0.001
testCanClosePreparedStatementTwice 0.001
testClosing 0.002
testPrepareStatementOptions 0.001
testBackPointers 0.002
testHashCode 0.001
testConnectionsAreDistinct 0.002
testMaxTotal 0.102
testRepeatedBorrowAndReturn 0.037
testCanCloseResultSetTwice 0.001
testClearWarnings 0.003
testSimple2 0
testSimple 0

TestBasicDataSourceFactory

testProperties 0.013
testNoProperties 0

TestDelegatingCallableStatement

testGetDelegate 0
testExecuteQueryReturnsNotNull 0
testExecuteQueryReturnsNull 0

TestDelegatingConnection

testGetDelegate 0
testCheckOpenNull 0.002
testCheckOpen 0.001
testConnectionToString 0

TestDelegatingDatabaseMetaData

testGetDelegate 0.005
testCheckOpen 0

TestDelegatingPreparedStatement

testGetDelegate 0
testExecuteQueryReturnsNotNull 0
testExecuteQueryReturnsNull 0

TestDelegatingStatement

testGetDelegate 0
testIsWrapperFor 0.005
testExecuteQueryReturnsNull 0
testCheckOpen 0

TestDriverManagerConnectionFactory

testDriverManagerInit 0.105

TestJndi

testBasicDataSourceBind 0.016
testPerUserPoolDataSourceBind 0.001
testSharedPoolDataSourceBind 0

TestPoolableConnection

testPoolableConnectionLeak 0
testConnectionPool 0
testClosingWrappedInDelegate 0

TestPoolingDataSource

testPoolGuardConnectionWrapperEqualsSameDelegate 0
testestPoolGuardConnectionWrapperEqualInnermost 0
testPoolGuardConnectionWrapperEqualsReflexive 0
testPoolGuardConnectionWrapperEqualsFail 0
testPoolGuardConnectionWrapperEqualsNull 0
testPoolGuardConnectionWrapperEqualsType 0
testThreaded 2.648
testCanCloseStatementTwice 0.017
testNoRsetClose 0.002
testOpening 0.003
testPooling 0.003
testCanCloseConnectionTwice 0.002
testIsClosed 0.003
testCanCloseCallableStatementTwice 0.002
testAutoCommitBehavior 0.003
testHashing 0.002
testCanClosePreparedStatementTwice 0.002
testClosing 0.003
testPrepareStatementOptions 0.002
testBackPointers 0.003
testHashCode 0.002
testConnectionsAreDistinct 0.002
testMaxTotal 0.103
testRepeatedBorrowAndReturn 0.006
testCanCloseResultSetTwice 0.003
testClearWarnings 0.003
testSimple2 0.003
testSimple 0.002

TestPoolingDriver

testLogWriter 0.026
testReportedBug12400 0.008
testReportedBug28912 0.005
test1 0.004
test2 0.004
testClosePool 0.005
testInvalidateConnection 0.005
testThreaded 2.833
testCanCloseStatementTwice 0.005
testNoRsetClose 0.005
testOpening 0.032
testPooling 0.034
testCanCloseConnectionTwice 0.005
testIsClosed 0.006
testCanCloseCallableStatementTwice 0.008
testAutoCommitBehavior 0.007
testHashing 0.005
testCanClosePreparedStatementTwice 0.004
testClosing 0.029
testPrepareStatementOptions 0.004
testBackPointers 0.006
testHashCode 0.006
testConnectionsAreDistinct 0.025
testMaxTotal 0.123
testRepeatedBorrowAndReturn 0.015
testCanCloseResultSetTwice 0.004
testClearWarnings 0.033
testSimple2 0.004
testSimple 0.004

TestPStmtPooling

testStmtPool 0
testBatchUpdate 0
testClosePool 0
testCallableStatementPooling 0

TestPStmtPoolingBasicDataSource

testLRUBehavior 0.189
testPreparedStatementPooling 0.002
testPStmtPoolingAccrossClose 0.002
testPStmtPoolingWithNoClose 0.001
testPStmtCatalog 0.002
testEmptyValidationQuery 0.001
testValidationQueryTimoutFail 0.007
testSetValidationTestProperties 0
testRollbackReadOnly 0
testClose 0
testPropertyTestOnReturn 0
testValidationQueryTimeoutSucceed 0.001
testMaxTotalZero 0.1
testPooling 0.005
testValidationQueryTimeoutNegative 0.001
testInvalidConnectionInitSql 0
testSetAutoCommitTrueOnClose 0.001
testValidationQueryTimeoutZero 0.001
testEmptyInitConnectionSql 0
testDriverClassLoader 0.001
testInitialSize 0.004
testInvalidValidationQuery 0.001
testNoAccessToUnderlyingConnectionAllowed 0.001
testCreateDataSourceCleanupEvictor 1.001
testTransactionIsolationBehavior 0.002
testCreateDataSourceCleanupThreads 0
testDefaultCatalog 0.006
testAccessToUnderlyingConnectionAllowed 0.001
testSetProperties 0.001
testIsClosedFailure 0.001
testThreaded 2.602
testCanCloseStatementTwice 0.002
testNoRsetClose 0.002
testOpening 0.005
testCanCloseConnectionTwice 0.001
testIsClosed 0.002
testCanCloseCallableStatementTwice 0.002
testAutoCommitBehavior 0.002
testHashing 0.003
testCanClosePreparedStatementTwice 0
testClosing 0.004
testPrepareStatementOptions 0.002
testBackPointers 0.003
testHashCode 0.002
testConnectionsAreDistinct 0.004
testMaxTotal 0.104
testRepeatedBorrowAndReturn 0.01
testCanCloseResultSetTwice 0.002
testClearWarnings 0.006
testSimple2 0.002
testSimple 0.002

TestUtils

testClassLoads 0