ConnectionWrapperTest

45

tests

0

failures

0

ignored

1.847s

duration

100%

successful

Tests

Test Method name Duration Result
batchInsert() batchInsert() 0.013s passed
close() close() 0.002s passed
closeFails() closeFails() 1.296s passed
commit() commit() 0.009s passed
commitFails() commitFails() 0.002s passed
[1] executeScriptEmptyString(String)[1] 0.003s passed
[2] executeScriptEmptyString(String)[2] 0.002s passed
[3] executeScriptEmptyString(String)[3] 0.001s passed
[4] executeScriptEmptyString(String)[4] 0.002s passed
[5] executeScriptEmptyString(String)[5] 0.002s passed
[6] ; executeScriptEmptyString(String)[6] 0.002s passed
executeScriptRunsMultipleCommands() executeScriptRunsMultipleCommands() 0.005s passed
[10] sql script;; executeScriptWithoutTrailingSemicolon(String)[10] 0.005s passed
[11] sql script;; executeScriptWithoutTrailingSemicolon(String)[11] 0.004s passed
[12] ;sql script executeScriptWithoutTrailingSemicolon(String)[12] 0.008s passed
[13] ; ; sql script executeScriptWithoutTrailingSemicolon(String)[13] 0.006s passed
[1] sql script executeScriptWithoutTrailingSemicolon(String)[1] 0.011s passed
[2] sql script; executeScriptWithoutTrailingSemicolon(String)[2] 0.004s passed
[3] sql script executeScriptWithoutTrailingSemicolon(String)[3] 0.003s passed
[4] sql script executeScriptWithoutTrailingSemicolon(String)[4] 0.004s passed
[5] sql script executeScriptWithoutTrailingSemicolon(String)[5] 0.004s passed
[6] sql script executeScriptWithoutTrailingSemicolon(String)[6] 0.005s passed
[7] sql script; executeScriptWithoutTrailingSemicolon(String)[7] 0.008s passed
[8] sql script; executeScriptWithoutTrailingSemicolon(String)[8] 0.005s passed
[9] sql script ; executeScriptWithoutTrailingSemicolon(String)[9] 0.005s passed
executeStatement() executeStatement() 0.008s passed
executeStatementCloseFails() executeStatementCloseFails() 0.002s passed
executeStatementExecuteFails() executeStatementExecuteFails() 0.009s passed
executeStatementPrepareFails() executeStatementPrepareFails() 0.005s passed
executeStatementWithPreparedStatementSetter() executeStatementWithPreparedStatementSetter() 0.005s passed
getMetaData() getMetaData() 0.002s passed
getMetaDataFails() getMetaDataFails() 0.003s passed
getOriginalConnection() getOriginalConnection() 0.002s passed
isAutoCommitEnabled() isAutoCommitEnabled() 0.002s passed
isAutoCommitEnabledFails() isAutoCommitEnabledFails() 0.007s passed
isClosed() isClosed() 0.003s passed
isClosedFails() isClosedFails() 0.003s passed
preparedStatementFails() preparedStatementFails() 0.003s passed
query() query() 0.005s passed
queryWithPreparedStatementSetterAndRowMapper() queryWithPreparedStatementSetterAndRowMapper() 0.338s passed
rollback() rollback() 0.006s passed
rollbackFails() rollbackFails() 0.003s passed
rowBatchInsert() rowBatchInsert() 0.022s passed
setAutoCommit() setAutoCommit() 0.002s passed
setAutoCommitFails() setAutoCommitFails() 0.006s passed

Standard error

2025-01-18 18:22:15.595 [FINEST ] org.itsallcode.jdbc.ConnectionWrapper query Executing query 'sql'... 
2025-01-18 18:22:15.707 [FINEST ] org.itsallcode.jdbc.batch.PreparedStatementBatchBuilder build Running insert statement 'insert into "tab" ("c1","c2") values (?,?)'... 
2025-01-18 18:22:15.711 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.712 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 4 completed in PT0.00275595S 
2025-01-18 18:22:15.712 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch No items added to batch, skip 
2025-01-18 18:22:15.713 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 4 completed in PT0.004049613S 
2025-01-18 18:22:15.729 [FINEST ] org.itsallcode.jdbc.batch.PreparedStatementBatchBuilder build Running insert statement 'insert into "tab" ("c1","c2") values (?,?)'... 
2025-01-18 18:22:15.731 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.731 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 4 completed in PT0.001176526S 
2025-01-18 18:22:15.763 [FINEST ] org.itsallcode.jdbc.ConnectionWrapper query Executing query 'sql'... 
2025-01-18 18:22:15.806 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.807 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.000969391S 
2025-01-18 18:22:15.813 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.814 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.000794846S 
2025-01-18 18:22:15.818 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.818 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.000726119S 
2025-01-18 18:22:15.822 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.823 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.000768488S 
2025-01-18 18:22:15.827 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.828 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.00085026S 
2025-01-18 18:22:15.832 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.833 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.001703044S 
2025-01-18 18:22:15.841 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.842 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.001640247S 
2025-01-18 18:22:15.848 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.849 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.001282352S 
2025-01-18 18:22:15.854 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.856 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.002198113S 
2025-01-18 18:22:15.860 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.861 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.00114629S 
2025-01-18 18:22:15.866 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.867 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.000886497S 
2025-01-18 18:22:15.872 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.875 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.003276697S 
2025-01-18 18:22:15.881 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 1 after 1 took 0 ms 
2025-01-18 18:22:15.882 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 1 items with batch size 200000 completed in PT0.001245494S 
2025-01-18 18:22:15.914 [FINEST ] org.itsallcode.jdbc.batch.Batch executeBatch Execute batch of 3 after 3 took 0 ms 
2025-01-18 18:22:15.915 [FINE   ] org.itsallcode.jdbc.batch.Batch close Batch processing of 3 items with batch size 200000 completed in PT0.001056523S