File tree Expand file tree Collapse file tree
spring-data-elasticsearch
src/test/java/com/baeldung/spring/data/es Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 <org .slf4j.version>1.7.12</org .slf4j.version>
2121 <logback .version>1.1.3</logback .version>
2222 <elasticsearch .version>2.0.1.RELEASE</elasticsearch .version>
23+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
2324 </properties >
2425
2526 <dependencies >
8687 </dependency >
8788 </dependencies >
8889
90+ <build >
91+ <plugins >
92+ <plugin >
93+ <groupId >org.apache.maven.plugins</groupId >
94+ <artifactId >maven-surefire-plugin</artifactId >
95+ <version >${maven-surefire-plugin.version} </version >
96+ <configuration >
97+ <excludes >
98+ <exclude >**/*IntegrationTest.java</exclude >
99+ <exclude >**/*LiveTest.java</exclude >
100+ </excludes >
101+ </configuration >
102+ </plugin >
103+ </plugins >
104+ </build >
105+
106+ <profiles >
107+ <profile >
108+ <id >integration</id >
109+ <build >
110+ <plugins >
111+ <plugin >
112+ <groupId >org.apache.maven.plugins</groupId >
113+ <artifactId >maven-surefire-plugin</artifactId >
114+ <executions >
115+ <execution >
116+ <phase >integration-test</phase >
117+ <goals >
118+ <goal >test</goal >
119+ </goals >
120+ <configuration >
121+ <excludes >
122+ <exclude >**/*LiveTest.java</exclude >
123+ </excludes >
124+ <includes >
125+ <include >**/*IntegrationTest.java</include >
126+ </includes >
127+ </configuration >
128+ </execution >
129+ </executions >
130+ <configuration >
131+ <systemPropertyVariables >
132+ <test .mime>json</test .mime>
133+ </systemPropertyVariables >
134+ </configuration >
135+ </plugin >
136+ </plugins >
137+ </build >
138+ </profile >
139+ </profiles >
89140</project >
Original file line number Diff line number Diff line change 2929
3030@ RunWith (SpringJUnit4ClassRunner .class )
3131@ ContextConfiguration (classes = Config .class )
32- public class ElasticSearchTest {
32+ public class ElasticSearchIntegrationTest {
3333
3434 @ Autowired
3535 private ElasticsearchTemplate elasticsearchTemplate ;
Original file line number Diff line number Diff line change 4242
4343@ RunWith (SpringJUnit4ClassRunner .class )
4444@ ContextConfiguration (classes = Config .class )
45- public class ElasticSearchQueryTest {
45+ public class ElasticSearchQueryIntegrationTest {
4646
4747 @ Autowired
4848 private ElasticsearchTemplate elasticsearchTemplate ;
You can’t perform that action at this time.
0 commit comments