Apache Commons logo Commons DbUtils

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
307 0 0 0 100% 0.781

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.handlers 51 0 0 0 100% 0.034
org.apache.commons.dbutils 169 0 0 0 100% 0.718
org.apache.commons.dbutils.handlers.columns 30 0 0 0 100% 0.007
org.apache.commons.dbutils.handlers.properties 9 0 0 0 100% 0
org.apache.commons.dbutils.wrappers 48 0 0 0 100% 0.022

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

org.apache.commons.dbutils.handlers

Class Tests Errors Failures Skipped Success Rate Time
ArrayHandlerTest 4 0 0 0 100% 0.005
ArrayListHandlerTest 4 0 0 0 100% 0.001
BeanHandlerTest 6 0 0 0 100% 0.004
BeanListHandlerTest 6 0 0 0 100% 0.01
BeanMapHandlerTest 5 0 0 0 100% 0.009
ColumnListHandlerTest 6 0 0 0 100% 0.001
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

org.apache.commons.dbutils

Class Tests Errors Failures Skipped Success Rate Time
AsyncQueryRunnerTest 32 0 0 0 100% 0.488
BaseResultSetHandlerTest 2 0 0 0 100% 0.029
BasicRowProcessorTest 7 0 0 0 100% 0.024
BeanProcessorTest 6 0 0 0 100% 0.003
DbUtilsTest 33 0 0 0 100% 0.02
GenerousBeanProcessorTest 4 0 0 0 100% 0.008
OutParameterTest 3 0 0 0 100% 0.025
ProxyFactoryTest 9 0 0 0 100% 0.04
QueryLoaderTest 4 0 0 0 100% 0.003
QueryRunnerTest 57 0 0 0 100% 0.073
ResultSetIteratorTest 5 0 0 0 100% 0.001
ServiceLoaderTest 4 0 0 0 100% 0.003
StatementConfigurationTest 3 0 0 0 100% 0.001

org.apache.commons.dbutils.handlers.columns

Class Tests Errors Failures Skipped Success Rate Time
BooleanColumnHandlerTest 3 0 0 0 100% 0.003
ByteColumnHandlerTest 3 0 0 0 100% 0
DoubleColumnHandlerTest 3 0 0 0 100% 0
FloatColumnHandlerTest 3 0 0 0 100% 0.001
IntegerColumnHandlerTest 3 0 0 0 100% 0.001
LongColumnHandlerTest 3 0 0 0 100% 0
ShortColumnHandlerTest 3 0 0 0 100% 0
SQLXMLColumnHandlerTest 3 0 0 0 100% 0.002
StringColumnHandlerTest 3 0 0 0 100% 0
TimestampColumnHandlerTest 3 0 0 0 100% 0

org.apache.commons.dbutils.handlers.properties

Class Tests Errors Failures Skipped Success Rate Time
DatePropertyHandlerTest 5 0 0 0 100% 0
PropertyHandlerTest 2 0 0 0 100% 0
StringEnumPropertyHandlerTest 2 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.022
StringTrimmedResultSetTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

AsyncQueryRunnerTest

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

BaseResultSetHandlerTest

testResultSets 0.021
testCheckDataSizes 0

BasicRowProcessorTest

testToArray 0
testToMap 0.003
testToBeanList 0.019
testToMapOrdering 0.001
testToBean 0
testResultSets 0.001
testCheckDataSizes 0

BeanProcessorTest

testMapColumnToProperties 0.001
testProcessWithToBean 0.001
testProcessWithPopulateBean 0.001
testMapColumnToPropertiesWithOverrides 0
testResultSets 0
testCheckDataSizes 0

DbUtilsTest

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

GenerousBeanProcessorTest

testMapColumnsToPropertiesWithUnderscores 0.005
testMapColumnsToPropertiesMixedCase 0.001
testMapColumnsToPropertiesColumnLabelIsNull 0.001
testMapColumnsToPropertiesWithOutUnderscores 0.001

ArrayHandlerTest

testHandle 0
testEmptyResultSetHandle 0.005
testResultSets 0
testCheckDataSizes 0

ArrayListHandlerTest

testHandle 0
testEmptyResultSetHandle 0.001
testResultSets 0
testCheckDataSizes 0

BeanHandlerTest

testHandleToInterface 0.002
testHandleToSuperClass 0.001
testHandle 0
testEmptyResultSetHandle 0.001
testResultSets 0
testCheckDataSizes 0

BeanListHandlerTest

testHandleToInterface 0.004
testHandleToSuperClass 0.001
testHandle 0.004
testEmptyResultSetHandle 0
testResultSets 0
testCheckDataSizes 0

BeanMapHandlerTest

testEmptyResultSet 0.004
testBeanMapHandlerClassOfV 0.001
testBeanMapHandlerClassOfVRowProcessor 0.001
testBeanMapHandlerClassOfVInt 0
testBeanMapHandlerClassOfVString 0.001

ColumnListHandlerTest

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

BooleanColumnHandlerTest

testApplyType 0
testMatch 0.001
testMatchNegative 0

ByteColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0

DoubleColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0

FloatColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0.001

IntegerColumnHandlerTest

testApplyType 0
testMatchNegative 0
testMatch 0

LongColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0

ShortColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0

SQLXMLColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0

StringColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0

TimestampColumnHandlerTest

testApplyType 0
testMatch 0
testMatchNegative 0

KeyedHandlerTest

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

MapHandlerTest

testHandle 0
testEmptyResultSetHandle 0
testResultSets 0
testCheckDataSizes 0.001

MapListHandlerTest

testHandle 0
testEmptyResultSetHandle 0
testResultSets 0
testCheckDataSizes 0.001

DatePropertyHandlerTest

testMatch 0
testApplyTypeOfDate 0
testApplyTypeOfTime 0
testMatchNegative 0
testApplyTypeOfTimestamp 0

PropertyHandlerTest

testServiceLoaderFindsMultipleRegistries 0
testFoundMoreThanLocal 0

StringEnumPropertyHandlerTest

testMatch 0
testMatchNegative 0

ScalarHandlerTest

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

OutParameterTest

testRegister 0.023
testRegisterAlternateConstructor 0
testSetValue 0.001

ProxyFactoryTest

testCreatePreparedStatement 0.009
testCreateConnection 0.005
testCreateStatement 0.003
testCreateResultSet 0
testCreateCallableStatement 0.021
testCreateResultSetMetaData 0
testCreateDriver 0.002
testResultSets 0
testCheckDataSizes 0

QueryLoaderTest

testLoad 0.002
testLoadThrowsIllegalArgumentException 0
testResultSets 0.001
testCheckDataSizes 0

QueryRunnerTest

testNoParamsUpdate 0.001
testFillStatementWithBean 0.001
testStatementConfiguration 0.001
testNullHandlerQuery 0.001
testNoParamsExecuteWithResultSet 0
testGoodExecute 0.003
testGoodInsert 0.001
testGoodExecuteWithResultSetPmdTrue 0.002
testGoodUpdatePmdTrue 0.001
testExecuteUpdateException 0.001
testNoParamsExecute 0.001
testGoodUpdate 0.001
testGoodBatchInsert 0.001
testBadPrepareConnection 0.001
testFillStatementWithBeanNullNames 0.001
testGoodQueryPmdTrue 0.001
testTooManyParamsExecuteWithResultSet 0
testGoodUpdateDefaultConstructor 0.001
testNullConnectionBatch 0.001
testNullConnectionQuery 0.001
testGoodExecutePmdTrue 0.002
testNullConnectionExecuteWithResultSet 0.001
testTooManyParamsBatch 0.001
testNullSqlBatch 0
testTooManyParamsQuery 0.001
testNullSqlQuery 0
testAddBatchException 0.001
testExecuteBatchException 0.001
testTooFewParamsBatch 0.001
testTooFewParamsQuery 0
testNullSqlExecuteWithResultSet 0.001
testNoParamsQuery 0
testTooManyParamsUpdate 0.001
testNullParamsArgBatch 0.001
testGoodExecuteDefaultConstructor 0.002
testGoodBatchDefaultConstructor 0.002
testTooFewParamsExecuteWithResultSet 0.001
testNullConnectionUpdate 0.003
testNullSqlUpdate 0.002
testNullHandlerExecuteWithResultSet 0.002
testGoodExecuteWithResultSet 0.005
testExecuteWithMultipleResultSets 0.001
testNullHandlerExecute 0.001
testTooManyParamsExecute 0
testTooFewParamsExecute 0.001
testNullConnectionExecute 0
testExecuteQueryException 0.001
testExecuteWithResultSetException 0.001
testTooFewParamsUpdate 0
testNullSqlExecute 0.001
testGoodExecuteWithResultSetDefaultConstructor 0.002
testExecuteException 0
testNullParamsBatch 0.001
testGoodBatch 0.001
testGoodQueryDefaultConstructor 0.003
testGoodQuery 0.001
testGoodBatchPmdTrue 0.001

ResultSetIteratorTest

testNext 0.001
testCreatesResultSetIteratorTakingThreeArgumentsAndCallsRemove 0
testRethrowThrowsRuntimeException 0
testResultSets 0
testCheckDataSizes 0

ServiceLoaderTest

testFindMoreThanLocalColumns 0.001
testFindMoreThanLocalProperties 0
testFindsLocalPropertyHandler 0
testFindsLocalColumnHandler 0.001

StatementConfigurationTest

testBuilder 0.001
testEmptyBuilder 0
testConstructor 0

SqlNullCheckedResultSetTest

testSetNullBoolean 0.003
testGetBytes 0
testGetFloat 0
testGetShort 0.001
testSetNullBigDecimal 0
testURL 0.004
testSetNullBytes 0
testSetNullFloat 0
testSetNullShort 0
testSetNullBinaryStream 0.001
testSetNullBlob 0
testSetNullByte 0
testSetNullClob 0.001
testSetNullDate 0
testSetNullLong 0
testSetNullTime 0
testGetBlob 0
testGetByte 0
testGetClob 0.001
testGetDate 0
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
testGetBigDecimal 0
testGetTimestamp 0
testGetObject 0
testSetNullCharacterStream 0
testGetInt 0
testGetRef 0
testGetBinaryStream 0
testGetString 0.001
testSetNullTimestamp 0
testResultSets 0
testCheckDataSizes 0

StringTrimmedResultSetTest

testMultipleWrappers 0
testGetObject 0
testGetString 0
testResultSets 0
testCheckDataSizes 0