From e6c00ea51bdabfca852ddff80ce0a4386781660a Mon Sep 17 00:00:00 2001 From: Gert-Jan Paulissen Date: Tue, 17 Sep 2024 11:40:37 +0200 Subject: [PATCH] Unit test OK. --- .../pato/jdbc/CheckConfigurationHikariUnitTest.java | 8 ++++---- .../pato/jdbc/CheckConfigurationOracleUnitTest.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationHikariUnitTest.java b/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationHikariUnitTest.java index a6bf9300..3afa7b4f 100644 --- a/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationHikariUnitTest.java +++ b/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationHikariUnitTest.java @@ -63,8 +63,8 @@ void testPoolDataSourceConfigurationDomain() { assertEquals("PoolDataSourceConfigurationHikari(super=PoolDataSourceConfiguration(driverClassName=oracle.jdbc.OracleDriver, " + "url=jdbc:oracle:thin:@//127.0.0.1:1521/freepdb1, username=bodomain, password=null, " + "type=class com.paulissoft.pato.jdbc.SimplePoolDataSourceHikari), poolName=null, " + - "maximumPoolSize=14, minimumIdle=0, dataSourceClassName=null, autoCommit=true, connectionTimeout=2750, " + - "idleTimeout=10000, maxLifetime=30000, connectionTestQuery=select 1 from dual, initializationFailTimeout=1, " + + "maximumPoolSize=14, minimumIdle=7, dataSourceClassName=null, autoCommit=true, connectionTimeout=2750, " + + "idleTimeout=600000, maxLifetime=1800000, connectionTestQuery=select 1 from dual, initializationFailTimeout=1, " + "isolateInternalQueries=false, allowPoolSuspension=false, readOnly=false, registerMbeans=false, " + "validationTimeout=5000, leakDetectionThreshold=0)", poolDataSourceConfiguration.toString()); @@ -113,8 +113,8 @@ void testPoolDataSourceConfigurationOperator() { assertEquals("PoolDataSourceConfigurationHikari(super=PoolDataSourceConfiguration(driverClassName=oracle.jdbc.OracleDriver, " + "url=jdbc:oracle:thin:@//127.0.0.1:1521/freepdb1, username=bodomain, password=null, " + "type=class com.paulissoft.pato.jdbc.SimplePoolDataSourceHikari), poolName=null, " + - "maximumPoolSize=14, minimumIdle=0, dataSourceClassName=null, autoCommit=true, connectionTimeout=2750, " + - "idleTimeout=10000, maxLifetime=30000, connectionTestQuery=select 1 from dual, initializationFailTimeout=1, " + + "maximumPoolSize=14, minimumIdle=7, dataSourceClassName=null, autoCommit=true, connectionTimeout=2750, " + + "idleTimeout=600000, maxLifetime=1800000, connectionTestQuery=select 1 from dual, initializationFailTimeout=1, " + "isolateInternalQueries=false, allowPoolSuspension=false, readOnly=false, registerMbeans=false, " + "validationTimeout=5000, leakDetectionThreshold=0)", poolDataSourceConfiguration.toString()); diff --git a/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationOracleUnitTest.java b/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationOracleUnitTest.java index 9a1eabf4..14e8793b 100644 --- a/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationOracleUnitTest.java +++ b/jdbc/smart-pool-data-source/src/test/java/com/paulissoft/pato/jdbc/CheckConfigurationOracleUnitTest.java @@ -63,7 +63,7 @@ void testPoolDataSourceConfigurationDomain() { assertEquals("PoolDataSourceConfigurationOracle(super=PoolDataSourceConfiguration(driverClassName=null, " + "url=jdbc:oracle:thin:@//127.0.0.1:1521/freepdb1, username=bodomain, password=null, " + "type=class com.paulissoft.pato.jdbc.SimplePoolDataSourceOracle), connectionPoolName=null, " + - "initialPoolSize=0, minPoolSize=0, maxPoolSize=14, connectionFactoryClassName=oracle.jdbc.pool.OracleDataSource, " + + "initialPoolSize=0, minPoolSize=7, maxPoolSize=14, connectionFactoryClassName=oracle.jdbc.pool.OracleDataSource, " + "validateConnectionOnBorrow=false, abandonedConnectionTimeout=0, timeToLiveConnectionTimeout=0, " + "inactiveConnectionTimeout=0, timeoutCheckInterval=30, maxStatements=10, connectionWaitDurationInMillis=0, " + "maxConnectionReuseTime=0, secondsToTrustIdleConnection=0, connectionValidationTimeout=15)", @@ -113,7 +113,7 @@ void testPoolDataSourceConfigurationOperator() { assertEquals("PoolDataSourceConfigurationOracle(super=PoolDataSourceConfiguration(driverClassName=null, " + "url=jdbc:oracle:thin:@//127.0.0.1:1521/freepdb1, username=bodomain, password=null, " + "type=class com.paulissoft.pato.jdbc.SimplePoolDataSourceOracle), connectionPoolName=null, " + - "initialPoolSize=0, minPoolSize=0, maxPoolSize=14, connectionFactoryClassName=oracle.jdbc.pool.OracleDataSource, " + + "initialPoolSize=0, minPoolSize=7, maxPoolSize=14, connectionFactoryClassName=oracle.jdbc.pool.OracleDataSource, " + "validateConnectionOnBorrow=false, abandonedConnectionTimeout=0, timeToLiveConnectionTimeout=0, " + "inactiveConnectionTimeout=0, timeoutCheckInterval=30, maxStatements=10, connectionWaitDurationInMillis=0, " + "maxConnectionReuseTime=0, secondsToTrustIdleConnection=0, connectionValidationTimeout=15)",