diff --git a/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CodeGenerationIntegrationTest.java b/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CodeGenerationIntegrationTest.java index 3ca0919eaa..72b6ab710a 100644 --- a/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CodeGenerationIntegrationTest.java +++ b/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CodeGenerationIntegrationTest.java @@ -34,7 +34,7 @@ public class CodeGenerationIntegrationTest { Connection conn = DriverManager.getConnection("jdbc:h2:mem:tes;INIT=CREATE SCHEMA IF NOT EXISTS \"public\""); context = DSL.using(conn, SQLDialect.H2); - context.createTable(Author.AUTHOR) + context.createTableIfNotExists(Author.AUTHOR) .columns( Author.AUTHOR.ID, Author.AUTHOR.FIRST_NAME, @@ -42,7 +42,7 @@ public class CodeGenerationIntegrationTest { Author.AUTHOR.AGE ) .execute(); - context.createTable(Article.ARTICLE) + context.createTableIfNotExists(Article.ARTICLE) .columns( Article.ARTICLE.ID, Article.ARTICLE.TITLE, diff --git a/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CrudIntegrationTest.java b/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CrudIntegrationTest.java index 0d8df27ccc..74c75dfeea 100644 --- a/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CrudIntegrationTest.java +++ b/persistence-modules/jooq/src/test/java/com/baeldung/jooq/CrudIntegrationTest.java @@ -37,7 +37,7 @@ public class CrudIntegrationTest { Connection conn = DriverManager.getConnection("jdbc:h2:mem:tes;INIT=CREATE SCHEMA IF NOT EXISTS \"public\""); context = DSL.using(conn, SQLDialect.H2); - context.createTable(Author.AUTHOR) + context.createTableIfNotExists(Author.AUTHOR) .columns( Author.AUTHOR.ID, Author.AUTHOR.FIRST_NAME, @@ -45,7 +45,7 @@ public class CrudIntegrationTest { Author.AUTHOR.AGE ) .execute(); - context.createTable(Article.ARTICLE) + context.createTableIfNotExists(Article.ARTICLE) .columns( Article.ARTICLE.ID, Article.ARTICLE.TITLE,