Apache Commons logo Commons DbUtils

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
224 0 0 0 100% 0.748

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.dbutils 129 0 0 0 100% 0.692
org.apache.commons.dbutils.wrappers 48 0 0 0 100% 0.021
org.apache.commons.dbutils.handlers 47 0 0 0 100% 0.035

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

org.apache.commons.dbutils

Class Tests Errors Failures Skipped Success Rate Time
AsyncQueryRunnerTest 32 0 0 0 100% 0.464
BaseResultSetHandlerTestCase 2 0 0 0 100% 0.037
BasicRowProcessorTest 7 0 0 0 100% 0.017
BeanProcessorTest 5 0 0 0 100% 0.003
DbUtilsTest 31 0 0 0 100% 0.021
GenerousBeanProcessorTest 2 0 0 0 100% 0.009
ProxyFactoryTest 9 0 0 0 100% 0.053
QueryLoaderTest 3 0 0 0 100% 0.002
QueryRunnerTest 35 0 0 0 100% 0.086
ResultSetIteratorTest 3 0 0 0 100% 0

org.apache.commons.dbutils.wrappers

Class Tests Errors Failures Skipped Success Rate Time
SqlNullCheckedResultSetTest 43 0 0 0 100% 0.021
StringTrimmedResultSetTest 5 0 0 0 100% 0

org.apache.commons.dbutils.handlers

Class Tests Errors Failures Skipped Success Rate Time
ArrayHandlerTest 4 0 0 0 100% 0.006
ArrayListHandlerTest 4 0 0 0 100% 0.002
BeanHandlerTest 4 0 0 0 100% 0.002
BeanListHandlerTest 4 0 0 0 100% 0.003
BeanMapHandlerTest 5 0 0 0 100% 0.014
ColumnListHandlerTest 6 0 0 0 100% 0.002
KeyedHandlerTest 6 0 0 0 100% 0.002
MapHandlerTest 4 0 0 0 100% 0.001
MapListHandlerTest 4 0 0 0 100% 0.001
ScalarHandlerTest 6 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

AsyncQueryRunnerTest

testNoParamsUpdate 0.272
testNullHandlerQuery 0.005
testGoodUpdatePmdTrue 0.012
testExecuteUpdateException 0.005
testGoodUpdate 0.006
testBadPrepareConnection 0.002
testGoodQueryPmdTrue 0.005
testGoodUpdateDefaultConstructor 0.005
testNullConnectionBatch 0.003
testNullConnectionQuery 0.003
testTooManyParamsBatch 0.003
testNullSqlBatch 0.003
testTooManyParamsQuery 0.003
testNullSqlQuery 0.003
testAddBatchException 0.003
testExecuteBatchException 0.003
testTooFewParamsBatch 0.003
testTooFewParamsQuery 0.003
testNoParamsQuery 0.003
testTooManyParamsUpdate 0.004
testNullParamsArgBatch 0.002
testGoodBatchDefaultConstructor 0.004
testNullConnectionUpdate 0.004
testNullSqlUpdate 0.003
testInsertUsesGivenQueryRunner 0.071
testExecuteQueryException 0.003
testTooFewParamsUpdate 0.003
testNullParamsBatch 0.009
testGoodBatch 0.003
testGoodQueryDefaultConstructor 0.004
testGoodQuery 0.005
testGoodBatchPmdTrue 0.004

BaseResultSetHandlerTestCase

testResultSets 0.036
testCheckDataSizes 0.001

BasicRowProcessorTest

testToArray 0
testToMap 0.002
testToBeanList 0.013
testToMapOrdering 0
testToBean 0.001
testResultSets 0.001
testCheckDataSizes 0

BeanProcessorTest

testMapColumnToProperties 0.002
testProcess 0.001
testMapColumnToPropertiesWithOverrides 0
testResultSets 0
testCheckDataSizes 0

DbUtilsTest

closeStatement 0.011
commitAndClose 0.001
closeResultSet 0
closeQuietlyNullStatement 0
closeQuietlyNullResultSet 0
closeQuietlyResultSetThrowingException 0.002
commitAndCloseQuietly 0
closeQuietlyConnectionResultSetStatementThrowingException 0.001
closeQuietlyStatement 0
closeQuietlyResultSet 0.001
rollbackAndClose 0
closeConnection 0.001
rollback 0
closeQuietlyStatementThrowingException 0
rollbackAndCloseQuietlyNull 0
rollbackAndCloseQuietly 0
rollbackNull 0
rollbackAndCloseQuietlyWithException 0
closeQuietlyNullConnection 0
closeQuietlyConnection 0
closeQuietlyConnectionThrowingException 0
rollbackAndCloseWithException 0.001
closeNullStatement 0
closeNullConnection 0
commitAndCloseQuietlyWithException 0.001
rollbackAndCloseNull 0
closeNullResultSet 0
closeQuietlyConnectionThrowingExceptionResultSetStatement 0.001
closeQuietlyConnectionResultSetStatement 0
closeQuietlyConnectionResultSetThrowingExceptionStatement 0
commitAndCloseWithException 0.001

GenerousBeanProcessorTest

testMapColumnsToPropertiesWithUnderscores 0.008
testMapColumnsToPropertiesWithOutUnderscores 0.001

ArrayHandlerTest

testHandle 0
testEmptyResultSetHandle 0.006
testResultSets 0
testCheckDataSizes 0

ArrayListHandlerTest

testHandle 0.001
testEmptyResultSetHandle 0.001
testResultSets 0
testCheckDataSizes 0

BeanHandlerTest

testHandle 0.001
testEmptyResultSetHandle 0.001
testResultSets 0
testCheckDataSizes 0

BeanListHandlerTest

testHandle 0.002
testEmptyResultSetHandle 0
testResultSets 0
testCheckDataSizes 0.001

BeanMapHandlerTest

testEmptyResultSet 0.007
testBeanMapHandlerClassOfV 0.002
testBeanMapHandlerClassOfVRowProcessor 0.002
testBeanMapHandlerClassOfVInt 0.001
testBeanMapHandlerClassOfVString 0.002

ColumnListHandlerTest

testColumnNameHandle 0.001
testColumnIndexHandle 0
testHandle 0
testEmptyResultSetHandle 0
testResultSets 0.001
testCheckDataSizes 0

KeyedHandlerTest

testColumnNameHandle 0.001
testColumnIndexHandle 0
testHandle 0.001
testEmptyResultSetHandle 0
testResultSets 0
testCheckDataSizes 0

MapHandlerTest

testHandle 0
testEmptyResultSetHandle 0
testResultSets 0.001
testCheckDataSizes 0

MapListHandlerTest

testHandle 0.001
testEmptyResultSetHandle 0
testResultSets 0
testCheckDataSizes 0

ScalarHandlerTest

testColumnNameHandle 0.001
testColumnIndexHandle 0
testHandle 0
testEmptyResultSetHandle 0.001
testResultSets 0
testCheckDataSizes 0

ProxyFactoryTest

testCreatePreparedStatement 0.018
testCreateConnection 0.006
testCreateStatement 0.004
testCreateResultSet 0
testCreateCallableStatement 0.023
testCreateResultSetMetaData 0
testCreateDriver 0.001
testResultSets 0.001
testCheckDataSizes 0

QueryLoaderTest

testLoad 0.001
testResultSets 0.001
testCheckDataSizes 0

QueryRunnerTest

testNoParamsUpdate 0.002
testFillStatementWithBean 0.004
testNullHandlerQuery 0.002
testGoodInsert 0.003
testGoodUpdatePmdTrue 0.003
testExecuteUpdateException 0.002
testGoodUpdate 0.004
testGoodBatchInsert 0.004
testBadPrepareConnection 0.002
testFillStatementWithBeanNullNames 0.002
testGoodQueryPmdTrue 0.003
testGoodUpdateDefaultConstructor 0.003
testNullConnectionBatch 0.003
testNullConnectionQuery 0.002
testTooManyParamsBatch 0.002
testNullSqlBatch 0.002
testTooManyParamsQuery 0.002
testNullSqlQuery 0.002
testAddBatchException 0.002
testExecuteBatchException 0.002
testTooFewParamsBatch 0.002
testTooFewParamsQuery 0.002
testNoParamsQuery 0.002
testTooManyParamsUpdate 0.002
testNullParamsArgBatch 0.002
testGoodBatchDefaultConstructor 0.003
testNullConnectionUpdate 0.002
testNullSqlUpdate 0.002
testExecuteQueryException 0.002
testTooFewParamsUpdate 0.002
testNullParamsBatch 0.003
testGoodBatch 0.003
testGoodQueryDefaultConstructor 0.003
testGoodQuery 0.003
testGoodBatchPmdTrue 0.002

ResultSetIteratorTest

testNext 0
testResultSets 0
testCheckDataSizes 0

SqlNullCheckedResultSetTest

testSetNullBoolean 0.002
testGetBytes 0
testGetFloat 0
testGetShort 0.001
testSetNullBigDecimal 0
testURL 0.006
testSetNullBytes 0
testSetNullFloat 0.001
testSetNullShort 0
testSetNullBinaryStream 0
testSetNullBlob 0.001
testSetNullByte 0
testSetNullClob 0.001
testSetNullDate 0
testSetNullLong 0.001
testSetNullTime 0
testGetBlob 0
testGetByte 0.001
testGetClob 0
testGetDate 0.001
testGetLong 0
testGetTime 0.001
testSetNullDouble 0
testGetAsciiStream 0
testSetNullObject 0
testGetCharacterStream 0.001
testSetNullString 0
testSetNullInt 0
testSetNullRef 0.001
testGetBoolean 0
testSetNullAsciiStream 0
testGetDouble 0.001
testGetBigDecimal 0
testGetTimestamp 0
testGetObject 0
testSetNullCharacterStream 0
testGetInt 0
testGetRef 0
testGetBinaryStream 0
testGetString 0
testSetNullTimestamp 0.001
testResultSets 0
testCheckDataSizes 0.001

StringTrimmedResultSetTest

testMultipleWrappers 0
testGetObject 0
testGetString 0
testResultSets 0
testCheckDataSizes 0