1 package de.spring.example.persistence.repository;
3 import javax.inject.Inject;
5 import org.junit.ClassRule;
7 import org.junit.runner.RunWith;
8 import org.springframework.test.context.ContextConfiguration;
9 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
10 import org.springframework.transaction.annotation.Transactional;
12 import com.palantir.docker.compose.DockerComposeRule;
13 import com.palantir.docker.compose.connection.waiting.HealthChecks;
15 import de.spring.example.persistence.domain.AdDescription;
17 @RunWith(SpringJUnit4ClassRunner.class)
18 @ContextConfiguration( {"classpath*:spring-configuration/*.xml",
19 "classpath*:spring-configuration-docker-test/*.xml"} )
21 public class AdDescriptionRepositoryShould {
24 AdDescriptionRepository adDescriptionRepository;
27 public static final DockerComposeRule DOCKER = DockerComposeRule.builder()
28 .file("src/integTest/resources/docker/docker-compose.yml")
29 .waitingForService("mysql", HealthChecks.toHaveAllPortsOpen())
30 .saveLogsTo("build/dockerLogs")
34 find_ad_descriptions_by_ad() {
35 Iterable<AdDescription> adDescriptions = adDescriptionRepository.findAll();
37 Iterable<AdDescription> lol = adDescriptions;