Skip to content

Commit b7ad048

Browse files
committed
fixed tests setup
1 parent 80e99a1 commit b7ad048

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

clickhouse-jdbc/src/test/java/com/clickhouse/jdbc/ClickHouseDatabaseMetaDataTest.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -191,21 +191,6 @@ public void testTableComment() throws SQLException {
191191
}
192192
}
193193

194-
@Test(groups = "integration")
195-
public void testGetCatalogs() throws SQLException {
196-
Properties props = new Properties();
197-
// props.setProperty("databaseTerm", "schema");
198-
props.setProperty("externalDatabase", "false");
199-
try (ClickHouseConnection conn = newConnection(props)) {
200-
try (ResultSet rs = conn.getMetaData().getCatalogs()) {
201-
while (rs.next()) {
202-
log.debug("Catalog: %s", rs.getString("TABLE_CAT"));
203-
}
204-
205-
}
206-
}
207-
}
208-
209194
@Test(groups = "integration")
210195
public void testGetTables() throws SQLException {
211196
if (isCloud()) return; //TODO: testGetTables - Revisit, see: https://github.com/ClickHouse/clickhouse-java/issues/1747

jdbc-v2/src/test/java/com/clickhouse/jdbc/DataSourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
public class DataSourceTest extends JdbcIntegrationTest {
1919
private DataSourceImpl dataSource;
2020

21-
@BeforeTest
21+
@BeforeTest(groups = { "integration" })
2222
public void setUp() {
2323
dataSource = new DataSourceImpl();
2424
dataSource.setUrl(getEndpointString());

jdbc-v2/src/test/java/com/clickhouse/jdbc/DataTypeTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
public class DataTypeTests extends JdbcIntegrationTest {
2828
private static final Logger log = LoggerFactory.getLogger(DataTypeTests.class);
2929

30-
@BeforeClass
31-
public void setUp() throws SQLException {
32-
DriverManager.registerDriver(new Driver());
30+
@BeforeClass(groups = { "integration" })
31+
public static void setUp() throws SQLException {
32+
Driver.load();
3333
}
3434

3535
private Connection getConnection() throws SQLException {

jdbc-v2/src/test/java/com/clickhouse/jdbc/StatementTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.clickhouse.jdbc;
22

3+
import org.testng.annotations.BeforeClass;
34
import org.testng.annotations.Test;
45

56
import java.sql.Connection;

0 commit comments

Comments
 (0)