package de.springbootbuch.database_examples.jooq;

import de.springbootbuch.database_examples.Film;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.Matchers.greaterThan;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration;
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
import org.springframework.context.annotation.ComponentScan;
import static org.springframework.context.annotation.FilterType.ASSIGNABLE_TYPE;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@JdbcTest(
	includeFilters =
		@ComponentScan.Filter(value = FilmJOOQRepository.class, type = ASSIGNABLE_TYPE)
)
@ImportAutoConfiguration(JooqAutoConfiguration.class)
public class FilmJOOQRepositoryIT {

	@Autowired
	private FilmJOOQRepository filmJOOQRepository;

	@Test
	public void findAllShouldWork() {
		final List<Film> films = filmJOOQRepository.findAll();
		assertThat(films.size(), is(greaterThan(0)));
	}
}
@@ -407,181 +407,36 @@
 oot.
-autoconfigure.ImportAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration;%0Aimport org.springframework.boot.test.autoconfigure.jdbc.Jdbc
+test.autoconfigure.jooq.Jooq
 Test
@@ -676,11 +676,11 @@
 )%0A@J
-dbc
+ooq
 Test
@@ -787,62 +787,8 @@
 )%0A)%0A
-@ImportAutoConfiguration(JooqAutoConfiguration.class)%0A
 publ

Use new @JooqTest