1 package de.spring.example.persistence.repository;
3 import static org.hamcrest.CoreMatchers.is;
4 import static org.hamcrest.CoreMatchers.notNullValue;
5 import static org.junit.Assert.assertThat;
7 import javax.inject.Inject;
10 import org.junit.runner.RunWith;
11 import org.springframework.test.context.ContextConfiguration;
12 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
13 import org.springframework.transaction.annotation.Transactional;
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 find_ad_descriptions_by_ad() {
28 Iterable<AdDescription> adDescriptions = adDescriptionRepository.findAll();
30 for (AdDescription adDescription : adDescriptions) {
31 assertThat(adDescription, is(notNullValue()));