Apache Commons logo Commons Pool

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
361 0 0 11 97.0% 385.4 s

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.pool2 41 0 0 0 100% 46.47 s
org.apache.commons.pool2.proxy 24 0 0 0 100% 20.09 s
org.apache.commons.pool2.impl 284 0 0 1 99.6% 318.8 s
org.apache.commons.pool2.pool407 12 0 0 10 16.7% 0.015 s

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

org.apache.commons.pool2

- Class Tests Errors Failures Skipped Success Rate Time
TestBaseObjectPool 17 0 0 0 100% 0.013 s
TestBasePoolableObjectFactory 2 0 0 0 100% 0.002 s
TestPoolUtils 19 0 0 0 100% 35.35 s
TestTrackedUse 1 0 0 0 100% 0.001 s
TestBaseKeyedPooledObjectFactory 1 0 0 0 100% 0.001 s
PoolTest 1 0 0 0 100% 11.10 s

org.apache.commons.pool2.proxy

- Class Tests Errors Failures Skipped Success Rate Time
TestProxiedKeyedObjectPoolWithJdkProxy 6 0 0 0 100% 5.014 s
TestProxiedObjectPoolWithCglibProxy 6 0 0 0 100% 5.010 s
TestProxiedKeyedObjectPoolWithCglibProxy 6 0 0 0 100% 5.055 s
TestProxiedObjectPoolWithJdkProxy 6 0 0 0 100% 5.008 s

org.apache.commons.pool2.impl

- Class Tests Errors Failures Skipped Success Rate Time
TestGenericKeyedObjectPool 83 0 0 0 100% 174.1 s
TestGenericObjectPoolFactoryCreateFailure 1 0 0 0 100% 1.008 s
TestAbandonedKeyedObjectPool 6 0 0 0 100% 10.78 s
TestLinkedBlockingDeque 40 0 0 0 100% 0.417 s
TestPooledSoftReference 2 0 0 0 100% 0.004 s
TestBaseGenericObjectPool 4 0 0 0 100% 11.68 s
TestSoftReferenceObjectPool 17 0 0 0 100% 0.268 s
TestPoolImplUtils 6 0 0 0 100% 0.002 s
TestAbandonedObjectPool 6 0 0 0 100% 10.88 s
TestGenericObjectPool 96 0 0 1 99.0% 106.9 s
CallStackTest 8 0 0 0 100% 0.010 s
TestEvictionConfig 3 0 0 0 100% 0.002 s
TestDefaultPooledObjectInfo 4 0 0 0 100% 0.324 s
NoOpCallStackTest 1 0 0 0 100% 0.001 s
TestDefaultPooledObject 5 0 0 0 100% 2.133 s
TestEvictionTimer 1 0 0 0 100% 0.003 s
TestGenericObjectPoolClassLoaders 1 0 0 0 100% 0.410 s

org.apache.commons.pool2.pool407

- Class Tests Errors Failures Skipped Success Rate Time
Pool407Test 6 0 0 5 16.7% 0.007 s
KeyedPool407Test 6 0 0 5 16.7% 0.008 s

Test Cases

[Summary] [Package List] [Test Cases]

TestBaseObjectPool

testPOFInvalidateObjectUsages 0 s
testPOFAddObjectUsage 0.001 s
testPOFCloseUsages 0 s
testToString 0 s
testClosedPoolBehavior 0.001 s
testPOFBorrowObjectUsages 0 s
testPOFReturnObjectUsages 0.001 s
testPOFClearUsages 0 s
testBaseBorrow 0 s
testClose 0 s
testBaseClear 0 s
testBaseNumActiveNumIdle 0 s
testUnsupportedOperations 0.001 s
testBaseInvalidateObject 0 s
testBaseBorrowReturn 0 s
testBaseClosePool 0.001 s
testBaseAddObject 0 s

TestGenericKeyedObjectPool

testKPOFInvalidateObjectUsages 0.262 s
testBaseBorrow 0.003 s
testKPOFBorrowObjectUsages 0.002 s
testBaseClear 0.001 s
testToString 0.001 s
testKPOFAddObjectUsage 0.001 s
testKPOFReturnObjectUsages 0.001 s
testBaseNumActiveNumIdle 0.001 s
testKPOFClearUsages 0.001 s
testClosedPoolBehavior 0.001 s
testBaseInvalidateObject 0.001 s
testKPOFCloseUsages 0 s
testBaseBorrowReturn 0.001 s
testBaseNumActiveNumIdle2 0.001 s
testBaseAddObject 0 s
testLivenessPerKey 0.001 s
testNegativeMaxTotalPerKey 0 s
testValidationFailureOnReturnFreesCapacity 0.502 s
testWaiterCounts 0.318 s
testConcurrentInvalidate 12.38 s
testMaxTotalWithThreads 4.403 s
testConcurrentBorrowAndClear 0.224 s
testClear 0 s
testGetStatsString 0 s
testFIFO 0 s
testLIFO 0.001 s
testValidateOnCreate 0 s
testClientWaitStats 0.202 s
testMaxTotalZero 0.003 s
testConstructors 0.003 s
testThreaded1 5.507 s
testInvalidateWaiting 0.505 s
testValidationOnCreateOnly 3.001 s
testSettersAndGetters 0.002 s
testJmxRegistration 0.001 s
testMaxTotalInvariant 1.704 s
testGetKeys 0.002 s
testEviction2 7.111 s
testMultipleReturn 0.003 s
testContructorEvictionConfig 0.603 s
testConstructorNullFactory 0.002 s
testNPEOnFactoryNull 0.007 s
testBlockedKeyDoesNotBlockPool 1.002 s
testClearReuseCapacity 0.266 s
testReturnObjectWithoutBlockWhenExhausted 0.001 s
testMaxTotalPerKey 0.002 s
testMinIdleMaxTotalPerKey 0.905 s
testMaxActivePerKeyExceeded 110.7 s
testValidateOnCreateFailure 0.002 s
testMaxIdle 0.003 s
testEvictionOrder 2.007 s
testMaxTotalPerKeyZero 0.002 s
testMaxTotalLRU 0.130 s
testEvictorVisiting 0.033 s
testConcurrentBorrowAndClear_JiraComment17741156 0.084 s
testExceptionOnDestroyDuringBorrow 0.001 s
testExceptionOnActivateDuringBorrow 0.001 s
testMinIdle 0.603 s
testWhenExhaustedBlockClosePool 0.403 s
testEvictorClearOldestRace 2.605 s
testExceptionOnDestroyDuringReturn 0.002 s
testMutable 0.002 s
testReturnObjectWithBlockWhenExhausted 0.503 s
testEviction 8.010 s
testMaxTotal 0.003 s
testReturnObjectThrowsIllegalStateException 0.002 s
testBorrowObjectFairness 2.437 s
testNumActiveNumIdle2 0.002 s
testInvalidateMissingKeyForDestroyMode(DestroyMode)[1] 0.018 s
testInvalidateMissingKeyForDestroyMode(DestroyMode)[2] 0.001 s
testClearUnblocksWaiters 2.035 s
testExceptionOnPassivateDuringReturn 0.001 s
testMinIdleNoPreparePool 0.303 s
testEqualsIndiscernible 0.002 s
testMaxWaitMultiThreaded 2.006 s
testInvalidateFreesCapacity 0.622 s
testAppendStats 0.002 s
testExceptionInValidationDuringEviction 0.002 s
testMakeObjectException 0.001 s
testReturnToHead 1.052 s
testClearOldest 1.324 s
testInvalidateFreesCapacityForOtherKeys 0.123 s
testInvalidateMissingKey 0.001 s

TestGenericObjectPoolFactoryCreateFailure

testBorrowObjectStuck 1.008 s

TestAbandonedKeyedObjectPool

testAbandonedInvalidate 3.104 s
testAbandonedReturn 3.605 s
testStackTrace 2.004 s
testWhenExhaustedBlock 1.003 s
testRemoveAbandonedWhileReturning 1.053 s
testConcurrentInvalidation 0.004 s

TestLinkedBlockingDeque

testElement 0.002 s
testPossibleBug 0.002 s
testPutFirst 0.002 s
testPeekFirst 0.001 s
testOfferLast 0.001 s
testGetFirst 0.001 s
testToArray 0.001 s
testAddLast 0.001 s
testAdd 0.002 s
testPop 0.001 s
testPut 0.001 s
testClear 0 s
testOffer 0.001 s
testPeek 0.001 s
testPush 0.001 s
testTake 0.001 s
testOfferLastWithTimeout 0.051 s
testRemoveFirst 0.001 s
testConstructors 0.001 s
testPutLast 0.001 s
testOfferFirst 0.001 s
testDescendingIterator 0.001 s
testAddFirst 0.001 s
testGetLast 0 s
testTakeLast 0.001 s
testContains 0 s
testRemoveLast 0.001 s
testPollFirst 0 s
testPollFirstWithTimeout 0.051 s
testOfferWithTimeout 0.051 s
testPollLastWithTimeout 0.051 s
testPeekLast 0.001 s
testOfferFirstWithTimeout 0.051 s
testRemoveLastOccurrence 0.001 s
testPollLast 0.001 s
testPollWithTimeout 0.102 s
testDrainTo 0.001 s
testRemove 0.001 s
testIterator 0.001 s
testTakeFirst 0 s

TestPooledSoftReference

testPooledSoftReference 0.001 s
testToString 0.001 s

TestBasePoolableObjectFactory

testDestroyModes 0 s
testDefaultMethods 0.001 s

TestBaseGenericObjectPool

testBorrowWaitStatistics 0.066 s
testEvictionTimerMultiplePools 11.10 s
testActiveTimeStatistics 0.002 s
testJMXRegistrationLatency 0.496 s

TestSoftReferenceObjectPool

testPOFInvalidateObjectUsages 0.251 s
testPOFAddObjectUsage 0.002 s
testPOFCloseUsages 0.001 s
testToString 0.001 s
testClosedPoolBehavior 0.002 s
testPOFBorrowObjectUsages 0.002 s
testPOFReturnObjectUsages 0 s
testPOFClearUsages 0 s
testBaseBorrow 0 s
testClose 0 s
testBaseClear 0 s
testBaseNumActiveNumIdle 0.001 s
testUnsupportedOperations 0.001 s
testBaseInvalidateObject 0 s
testBaseBorrowReturn 0 s
testBaseClosePool 0.001 s
testBaseAddObject 0 s

Pool407Test

testNormalFactoryNonNullFixtureWaitMax 0.005 s
testNullObjectFactoryWaitShort 0 s
- public void org.apache.commons.pool2.pool407.Pool407Test.testNullObjectFactoryWaitShort() throws java.lang.Exception is @Disabled -
testNullObjectFactoryWaitMax 0 s
- public void org.apache.commons.pool2.pool407.Pool407Test.testNullObjectFactoryWaitMax() throws java.lang.Exception is @Disabled -
testNormalFactoryNullFixtureWaitMax 0 s
- public void org.apache.commons.pool2.pool407.Pool407Test.testNormalFactoryNullFixtureWaitMax() throws java.lang.Exception is @Disabled -
testNullPoolableFactoryWaitMax 0 s
- public void org.apache.commons.pool2.pool407.Pool407Test.testNullPoolableFactoryWaitMax() throws java.lang.Exception is @Disabled -
testNullPoolableFactoryWaitShort 0 s
- public void org.apache.commons.pool2.pool407.Pool407Test.testNullPoolableFactoryWaitShort() throws java.lang.Exception is @Disabled -

TestPoolImplUtils

testFactoryTypeSimple 0.001 s
testFactoryTypeNotSimple 0 s
testMinInstants 0 s
testToDuration 0 s
testToChronoUnit 0.001 s
testMaxInstants 0 s

TestAbandonedObjectPool

testAbandonedInvalidate 3.204 s
testAbandonedReturn 3.605 s
testStackTrace 2.004 s
testWhenExhaustedBlock 1.003 s
testRemoveAbandonedWhileReturning 1.053 s
testConcurrentInvalidation 0.004 s

TestProxiedKeyedObjectPoolWithJdkProxy

testBorrowObject 0.003 s
testPassThroughMethods01 0.001 s
testPassThroughMethods02 0.001 s
testAccessAfterReturn 0.002 s
testAccessAfterInvalidate 0.001 s
testUsageTracking 5.003 s

TestGenericObjectPool

testPOFInvalidateObjectUsages 0.252 s
testPOFAddObjectUsage 0.001 s
testPOFCloseUsages 0.001 s
testToString 0.001 s
testClosedPoolBehavior 0.001 s
testPOFBorrowObjectUsages 0.002 s
testPOFReturnObjectUsages 0.001 s
testPOFClearUsages 0.001 s
testBaseBorrow 0 s
testClose 0 s
testBaseClear 0.001 s
testBaseNumActiveNumIdle 0 s
testUnsupportedOperations 0 s
testBaseInvalidateObject 0.001 s
testBaseBorrowReturn 0 s
testBaseClosePool 0.001 s
testBaseAddObject 0 s
testNoInvalidateNPE 0.202 s
testAbandonedPool 0.118 s
testPreparePool 0.001 s
testMakeConcurrentWithReturn 0.452 s
testSwallowedExceptionListener 0.001 s
testValidationFailureOnReturnFreesCapacity 0.502 s
testConcurrentInvalidate 12.35 s
testEvictWhileEmpty 0.002 s
testConcurrentBorrowAndEvict 0.281 s
testEvictionSoftMinIdle 3.502 s
testTimeoutNoLeak 0.013 s
testGetStatsString 0.003 s
testFIFO 0.002 s
testLIFO 0.001 s
testEvictionInvalid 1.304 s
testValidateOnCreate 0.002 s
testClientWaitStats 0.203 s
testMaxTotalZero 0.001 s
testConstructors 0.003 s
testThreaded1 5.508 s
testCloseMultiplePools1 0.003 s
testCloseMultiplePools2 11.00 s
testMaxIdleZeroUnderLoad 20.17 s
testBrokenFactoryShouldNotBlockPool 0.002 s
testValidationOnCreateOnly 3.003 s
testBorrowTimings 0.202 s
testSettersAndGetters 0.002 s
testJmxRegistration 0.002 s
testMaxTotalInvariant 1.604 s
testEvictFIFO 0.127 s
testEvictLIFO 0.127 s
testMultipleReturn 0.001 s
testConstructorNullFactory 0.002 s
testNPEOnFactoryNull 0.002 s
testLivenessOnTransientFactoryFailure 0 s
- public void org.apache.commons.pool2.impl.TestGenericObjectPool.testLivenessOnTransientFactoryFailure() throws java.lang.Exception is @Disabled -
testGetFactoryType_SynchronizedDefaultPooledObjectFactory 0.002 s
testFailingFactoryDoesNotBlockThreads 1.604 s
testMultipleReturnOfSameObject 0.002 s
testNoInstanceOverlap 0.511 s
testReturnBorrowObjectWithingMaxWaitMillis 1.105 s
testValidateOnCreateFailure 0.001 s
testMaxIdle 0.002 s
testEvictionOrder 2.009 s
testEvictionWithNegativeNumTests 0.403 s
testEvictorVisiting 0.009 s
testMaxTotalUnderLoad 19.91 s
testAddObject 0.001 s
testExceptionOnDestroyDuringBorrow 0.002 s
testDefaultConfiguration 0.001 s
testNegativeMaxTotal 0.001 s
testWhenExhaustedFail 0.001 s
testExceptionOnActivateDuringBorrow 0.001 s
testMinIdle 0.604 s
testGetFactoryType_NullPooledObjectFactory 0.002 s
testGetFactoryType_DefaultPooledObjectFactory 0.002 s
testSetConfig 0.002 s
testWhenExhaustedBlockClosePool 0.402 s
testGetFactoryType_SynchronizedNullPooledObjectFactory 0.001 s
testExceptionOnDestroyDuringReturn 0.001 s
testMutable 0.001 s
testEviction 8.008 s
testMaxTotal 0.002 s
testErrorFactoryDoesNotBlockThreads 1.603 s
testBorrowObjectFairness 2.426 s
testExceptionOnPassivateDuringReturn 0 s
testEvictAddObjects 0.852 s
testEqualsIndiscernible 0.001 s
testEvictionPolicy 3.007 s
testMaxIdleZero 0.002 s
testMaxWaitMultiThreaded 1.004 s
testMinIdleMaxTotal 0.903 s
testInvalidateFreesCapacity 0.623 s
testGetFactoryType_PoolUtilsSynchronizedNullPooledFactory 0.001 s
testStartAndStopEvictor 0.403 s
testAppendStats 0.002 s
testExceptionInValidationDuringEviction 0.002 s
testGetFactoryType_PoolUtilsSynchronizedDefaultPooledFactory 0.002 s
testWhenExhaustedBlockInterrupt 0.402 s
testWhenExhaustedBlock 0.013 s

CallStackTest

testPrintFilledStackTrace(CallStack)[1] 0.001 s
testPrintFilledStackTrace(CallStack)[2] 0 s
testPrintFilledStackTrace(CallStack)[3] 0.001 s
testPrintFilledStackTrace(CallStack)[4] 0 s
testPrintClearedStackTraceIsNoOp(CallStack)[1] 0 s
testPrintClearedStackTraceIsNoOp(CallStack)[2] 0 s
testPrintClearedStackTraceIsNoOp(CallStack)[3] 0 s
testPrintClearedStackTraceIsNoOp(CallStack)[4] 0 s

TestProxiedObjectPoolWithCglibProxy

testBorrowObject 0.004 s
testPassThroughMethods01 0.001 s
testPassThroughMethods02 0 s
testAccessAfterReturn 0.001 s
testAccessAfterInvalidate 0 s
testUsageTracking 5.003 s

TestEvictionConfig

testConstructorZerosMillis 0 s
testConstructor1s 0.001 s
testConstructorZerosDurations 0 s

TestPoolUtils

testErodingObjectPoolDefaultFactor 0.005 s
testJavaBeanInstantiation 0.001 s
testCheckMinIdleKeyedObjectPoolKeysNulls 0.005 s
testTimerHolder 0 s
testPrefillKeyedObjectPool 0.003 s
testPrefillKeyedObjectPoolCollection 0.001 s
testErodingPoolKeyedObjectPool 10.25 s
testCheckMinIdleObjectPool 2.052 s
testSynchronizedPoolObjectPool 0.001 s
testErodingPoolKeyedObjectPoolDefaultFactor 0 s
testErodingPoolObjectPool 10.25 s
testErodingPerKeyKeyedObjectPool 10.25 s
testPrefillObjectPool 0.001 s
testSynchronizedPoolableFactoryKeyedPooledObjectFactory 0.004 s
testCheckMinIdleKeyedObjectPoolKeys 1.051 s
testSynchronizedPoolableFactoryPoolableObjectFactory 0.001 s
testSynchronizedPoolKeyedObjectPool 0.002 s
testCheckRethrow 0.001 s
testCheckMinIdleKeyedObjectPool 1.453 s

TestDefaultPooledObjectInfo

testGetPooledObjectToString 0.002 s
testGetLastBorrowTrace 0.018 s
testGetPooledObjectType 0.001 s
testTiming 0.303 s

NoOpCallStackTest

printStackTraceIsNoOp 0 s

TestDefaultPooledObject

testGetIdleTimeMillis 1.619 s
testInitialStateDuration 0.107 s
testInitialStateCreateInstant 0.001 s
testInitialStateIdleDuration 0.202 s
testInitialStateActiveDuration 0.201 s

TestTrackedUse

testDefaultGetLastUsedInstant 0 s

TestProxiedKeyedObjectPoolWithCglibProxy

testBorrowObject 0.047 s
testPassThroughMethods01 0.001 s
testPassThroughMethods02 0.001 s
testAccessAfterReturn 0 s
testAccessAfterInvalidate 0 s
testUsageTracking 5.003 s

TestProxiedObjectPoolWithJdkProxy

testBorrowObject 0.003 s
testPassThroughMethods01 0 s
testPassThroughMethods02 0.001 s
testAccessAfterReturn 0.001 s
testAccessAfterInvalidate 0 s
testUsageTracking 5.002 s

TestEvictionTimer

testStartStopEvictionTimer 0.003 s

KeyedPool407Test

testNormalFactoryNonNullFixtureWaitMax 0.005 s
testNullObjectFactoryWaitShort 0 s
- public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullObjectFactoryWaitShort() throws java.lang.Exception is @Disabled -
testNullObjectFactoryWaitMax 0 s
- public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullObjectFactoryWaitMax() throws java.lang.Exception is @Disabled -
testNormalFactoryNullFixtureWaitMax 0 s
- public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNormalFactoryNullFixtureWaitMax() throws java.lang.Exception is @Disabled -
testNullPoolableFactoryWaitMax 0 s
- public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullPoolableFactoryWaitMax() throws java.lang.Exception is @Disabled -
testNullPoolableFactoryWaitShort 0 s
- public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullPoolableFactoryWaitShort() throws java.lang.Exception is @Disabled -

TestBaseKeyedPooledObjectFactory

testDefaultMethods 0.001 s

PoolTest

testPool 11.10 s

TestGenericObjectPoolClassLoaders

testContextClassLoader 0.407 s

Failure Details

[Summary] [Package List] [Test Cases]


testNullObjectFactoryWaitShort
- skipped: public void org.apache.commons.pool2.pool407.Pool407Test.testNullObjectFactoryWaitShort() throws java.lang.Exception is @Disabled
testNullObjectFactoryWaitMax
- skipped: public void org.apache.commons.pool2.pool407.Pool407Test.testNullObjectFactoryWaitMax() throws java.lang.Exception is @Disabled
testNormalFactoryNullFixtureWaitMax
- skipped: public void org.apache.commons.pool2.pool407.Pool407Test.testNormalFactoryNullFixtureWaitMax() throws java.lang.Exception is @Disabled
testNullPoolableFactoryWaitMax
- skipped: public void org.apache.commons.pool2.pool407.Pool407Test.testNullPoolableFactoryWaitMax() throws java.lang.Exception is @Disabled
testNullPoolableFactoryWaitShort
- skipped: public void org.apache.commons.pool2.pool407.Pool407Test.testNullPoolableFactoryWaitShort() throws java.lang.Exception is @Disabled
testLivenessOnTransientFactoryFailure
- skipped: public void org.apache.commons.pool2.impl.TestGenericObjectPool.testLivenessOnTransientFactoryFailure() throws java.lang.Exception is @Disabled
testNullObjectFactoryWaitShort
- skipped: public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullObjectFactoryWaitShort() throws java.lang.Exception is @Disabled
testNullObjectFactoryWaitMax
- skipped: public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullObjectFactoryWaitMax() throws java.lang.Exception is @Disabled
testNormalFactoryNullFixtureWaitMax
- skipped: public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNormalFactoryNullFixtureWaitMax() throws java.lang.Exception is @Disabled
testNullPoolableFactoryWaitMax
- skipped: public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullPoolableFactoryWaitMax() throws java.lang.Exception is @Disabled
testNullPoolableFactoryWaitShort
- skipped: public void org.apache.commons.pool2.pool407.KeyedPool407Test.testNullPoolableFactoryWaitShort() throws java.lang.Exception is @Disabled