From 2f1cf6b00b525090fa77a3c70f23c0b026d65c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Chicchiricc=C3=B2?= Date: Mon, 30 Dec 2024 08:10:34 +0100 Subject: [PATCH] Back to ConnId 1.6.0.0-SNAPSHOT --- pom.xml | 22 ++----------------- .../bundles/db/table/DatabaseTableTests.java | 8 +++---- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index 61fe299..c736315 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ net.tirasa.connid connid - 1.6.0.0-RC3 + 1.6.0.0-SNAPSHOT net.tirasa.connid.bundles.db @@ -82,7 +82,7 @@ - 1.6.0.0-RC3 + 1.6.0.0-SNAPSHOT ${basedir} 21 @@ -201,24 +201,6 @@ - - org.gaul - modernizer-maven-plugin - 2.9.0 - - ${targetJdk} - - - - modernizer-check - verify - - modernizer - - - - - org.apache.maven.plugins diff --git a/table/src/test/java/net/tirasa/connid/bundles/db/table/DatabaseTableTests.java b/table/src/test/java/net/tirasa/connid/bundles/db/table/DatabaseTableTests.java index b7d75b7..3749292 100644 --- a/table/src/test/java/net/tirasa/connid/bundles/db/table/DatabaseTableTests.java +++ b/table/src/test/java/net/tirasa/connid/bundles/db/table/DatabaseTableTests.java @@ -29,8 +29,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import java.io.File; import java.math.BigDecimal; +import java.nio.file.Path; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; @@ -91,9 +91,8 @@ public static void createDatabase() throws Exception { final String url; if (StringUtil.isNotBlank(DRIVER) && DRIVER.contains("derby")) { if (StringUtil.isNotBlank(DB)) { - final File f = new File(DB); // clear out the test database directory.. - IOUtil.delete(f); + IOUtil.delete(Path.of(DB).toFile()); } url = URL + ";create=true"; } else { @@ -129,9 +128,8 @@ public static void deleteDatabase() { if (StringUtil.isNotBlank(DRIVER) && DRIVER.contains("derby")) { DriverManager.getConnection(URL + ";shutdown=true"); if (StringUtil.isNotBlank(DB)) { - final File f = new File(DB); // clear out the test database directory.. - IOUtil.delete(f); + IOUtil.delete(Path.of(DB).toFile()); } } } catch (Exception ex) {