diff --git a/spring-jooq/pom.xml b/spring-jooq/pom.xml
index bf60acd6f6..bf0dffd68c 100644
--- a/spring-jooq/pom.xml
+++ b/spring-jooq/pom.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-dependencies
- 1.3.5.RELEASE
+ 1.4.2.RELEASE
pom
import
@@ -23,14 +23,12 @@
org.jooq
jooq
- ${org.jooq.version}
com.h2database
h2
- ${com.h2database.version}
@@ -70,6 +68,11 @@
spring-test
test
+
+ org.springframework.boot
+ spring-boot-starter-test
+
+
@@ -77,7 +80,7 @@
org.codehaus.mojo
properties-maven-plugin
- 1.0.0
+ ${properties-maven-plugin.version}
initialize
@@ -96,7 +99,7 @@
org.codehaus.mojo
sql-maven-plugin
- 1.5
+ ${sql-maven-plugin.version}
initialize
@@ -179,7 +182,7 @@
org.eclipse.m2e
lifecycle-mapping
- 1.0.0
+ ${lifecycle-mapping.version}
@@ -244,15 +247,19 @@
- 3.7.3
- 1.4.191
- 4.2.5.RELEASE
- 1.7.18
- 1.1.3
+ 3.8.6
+ 1.4.193
+ 4.3.4.RELEASE
+ 1.7.21
+ 1.1.7
4.12
- 3.5.1
- 2.19.1
+ 3.6.0
+ 2.19.1
+ 1.0.0
+ 1.5
+ 1.0.0
+
\ No newline at end of file
diff --git a/spring-jooq/src/test/java/com/baeldung/jooq/springboot/SpringBootIntegrationTest.java b/spring-jooq/src/test/java/com/baeldung/jooq/springboot/SpringBootIntegrationTest.java
index fa3f342ecd..25317309ee 100644
--- a/spring-jooq/src/test/java/com/baeldung/jooq/springboot/SpringBootIntegrationTest.java
+++ b/spring-jooq/src/test/java/com/baeldung/jooq/springboot/SpringBootIntegrationTest.java
@@ -1,5 +1,10 @@
package com.baeldung.jooq.springboot;
+import static com.baeldung.jooq.introduction.db.public_.tables.Author.AUTHOR;
+import static com.baeldung.jooq.introduction.db.public_.tables.AuthorBook.AUTHOR_BOOK;
+import static com.baeldung.jooq.introduction.db.public_.tables.Book.BOOK;
+import static org.junit.Assert.assertEquals;
+
import org.jooq.DSLContext;
import org.jooq.Record3;
import org.jooq.Result;
@@ -7,19 +12,14 @@ import org.jooq.impl.DSL;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.SpringApplicationConfiguration;
+import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.dao.DataAccessException;
-import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
-import static com.baeldung.jooq.introduction.db.public_.tables.Author.AUTHOR;
-import static com.baeldung.jooq.introduction.db.public_.tables.AuthorBook.AUTHOR_BOOK;
-import static com.baeldung.jooq.introduction.db.public_.tables.Book.BOOK;
-import static org.junit.Assert.assertEquals;
-
-@SpringApplicationConfiguration(Application.class)
+@RunWith(SpringRunner.class)
+@SpringBootTest(classes = Application.class)
@Transactional("transactionManager")
-@RunWith(SpringJUnit4ClassRunner.class)
public class SpringBootIntegrationTest {
@Autowired