Loading sharding-jdbc/src/test/java/io/shardingsphere/core/jdbc/core/datasource/ShardingDataSourceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import io.shardingsphere.core.api.MasterSlaveDataSourceFactory; import io.shardingsphere.core.api.config.MasterSlaveRuleConfiguration; import io.shardingsphere.core.api.config.ShardingRuleConfiguration; import io.shardingsphere.core.api.config.TableRuleConfiguration; import io.shardingsphere.core.constant.DatabaseType; import io.shardingsphere.core.constant.properties.ShardingPropertiesConstant; import io.shardingsphere.core.executor.ExecutorEngine; import io.shardingsphere.core.rule.ShardingRule; Loading Loading @@ -108,7 +109,7 @@ public final class ShardingDataSourceTest { private void assertDatabaseProductName(final Map<String, DataSource> dataSourceMap, final Connection... connections) throws SQLException { try { createShardingDataSource(dataSourceMap).getDatabaseType(); assertThat(createShardingDataSource(dataSourceMap).getDatabaseType(), is(DatabaseType.H2)); } finally { for (Connection each : connections) { verify(each, atLeast(1)).close(); Loading Loading
sharding-jdbc/src/test/java/io/shardingsphere/core/jdbc/core/datasource/ShardingDataSourceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import io.shardingsphere.core.api.MasterSlaveDataSourceFactory; import io.shardingsphere.core.api.config.MasterSlaveRuleConfiguration; import io.shardingsphere.core.api.config.ShardingRuleConfiguration; import io.shardingsphere.core.api.config.TableRuleConfiguration; import io.shardingsphere.core.constant.DatabaseType; import io.shardingsphere.core.constant.properties.ShardingPropertiesConstant; import io.shardingsphere.core.executor.ExecutorEngine; import io.shardingsphere.core.rule.ShardingRule; Loading Loading @@ -108,7 +109,7 @@ public final class ShardingDataSourceTest { private void assertDatabaseProductName(final Map<String, DataSource> dataSourceMap, final Connection... connections) throws SQLException { try { createShardingDataSource(dataSourceMap).getDatabaseType(); assertThat(createShardingDataSource(dataSourceMap).getDatabaseType(), is(DatabaseType.H2)); } finally { for (Connection each : connections) { verify(each, atLeast(1)).close(); Loading