|
1 | 1 | package com.clickhouse.jdbc; |
2 | 2 |
|
3 | | -import java.nio.charset.StandardCharsets; |
4 | | -import java.sql.*; |
5 | | -import java.util.*; |
6 | | - |
7 | | -import java.util.Properties; |
8 | | - |
9 | 3 | import com.clickhouse.client.ClickHouseNode; |
10 | 4 | import com.clickhouse.client.ClickHouseProtocol; |
11 | 5 | import com.clickhouse.client.ClickHouseServerForTest; |
|
23 | 17 | import org.testng.annotations.DataProvider; |
24 | 18 | import org.testng.annotations.Test; |
25 | 19 |
|
| 20 | +import java.nio.charset.StandardCharsets; |
| 21 | +import java.sql.Array; |
| 22 | +import java.sql.Connection; |
| 23 | +import java.sql.DatabaseMetaData; |
| 24 | +import java.sql.PreparedStatement; |
| 25 | +import java.sql.ResultSet; |
| 26 | +import java.sql.SQLException; |
| 27 | +import java.sql.SQLFeatureNotSupportedException; |
| 28 | +import java.sql.Statement; |
| 29 | +import java.util.Arrays; |
| 30 | +import java.util.Base64; |
| 31 | +import java.util.Properties; |
| 32 | +import java.util.UUID; |
| 33 | + |
26 | 34 | import static org.testng.Assert.assertThrows; |
27 | 35 | import static org.testng.Assert.fail; |
28 | 36 |
|
@@ -347,32 +355,6 @@ public void getNetworkTimeoutTest() throws SQLException { |
347 | 355 | assertThrows(SQLFeatureNotSupportedException.class, () -> localConnection.getNetworkTimeout()); |
348 | 356 | } |
349 | 357 |
|
350 | | - @Test(groups = { "integration" }) |
351 | | - public void beginRequestTest() throws SQLException { |
352 | | - Connection localConnection = this.getJdbcConnection(); |
353 | | - localConnection.beginRequest();//No-op |
354 | | - } |
355 | | - |
356 | | - @Test(groups = { "integration" }) |
357 | | - public void endRequestTest() throws SQLException { |
358 | | - Connection localConnection = this.getJdbcConnection(); |
359 | | - localConnection.endRequest();//No-op |
360 | | - } |
361 | | - |
362 | | - @Test(groups = { "integration" }) |
363 | | - public void setShardingKeyIfValidTest() throws SQLException { |
364 | | - Connection localConnection = this.getJdbcConnection(); |
365 | | - assertThrows(SQLFeatureNotSupportedException.class, () -> localConnection.setShardingKeyIfValid(null, 0)); |
366 | | - assertThrows(SQLFeatureNotSupportedException.class, () -> localConnection.setShardingKeyIfValid(null, null, 0)); |
367 | | - } |
368 | | - |
369 | | - @Test(groups = { "integration" }) |
370 | | - public void setShardingKeyTest() throws SQLException { |
371 | | - Connection localConnection = this.getJdbcConnection(); |
372 | | - assertThrows(SQLFeatureNotSupportedException.class, () -> localConnection.setShardingKey(null)); |
373 | | - assertThrows(SQLFeatureNotSupportedException.class, () -> localConnection.setShardingKey(null, null)); |
374 | | - } |
375 | | - |
376 | 358 | @Test(groups = { "integration" }) |
377 | 359 | public void testMaxResultRowsProperty() throws Exception { |
378 | 360 | Properties properties = new Properties(); |
|
0 commit comments