File tree Expand file tree Collapse file tree
src/test/java/org/baeldung/dao Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 <hibernate .version>5.2.1.Final</hibernate .version>
2121 <querydsl .version>4.1.3</querydsl .version>
2222 <slf4j .version>1.7.21</slf4j .version>
23+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
2324 </properties >
2425
2526 <dependencies >
166167 </execution >
167168 </executions >
168169 </plugin >
170+
171+ <plugin >
172+ <groupId >org.apache.maven.plugins</groupId >
173+ <artifactId >maven-surefire-plugin</artifactId >
174+ <version >${maven-surefire-plugin.version} </version >
175+ <configuration >
176+ <excludes >
177+ <exclude >**/*IntegrationTest.java</exclude >
178+ <exclude >**/*LiveTest.java</exclude >
179+ </excludes >
180+ </configuration >
181+ </plugin >
182+
169183 </plugins >
170184 </build >
171185
186+ <profiles >
187+ <profile >
188+ <id >integration</id >
189+ <build >
190+ <plugins >
191+ <plugin >
192+ <groupId >org.apache.maven.plugins</groupId >
193+ <artifactId >maven-surefire-plugin</artifactId >
194+ <executions >
195+ <execution >
196+ <phase >integration-test</phase >
197+ <goals >
198+ <goal >test</goal >
199+ </goals >
200+ <configuration >
201+ <excludes >
202+ <exclude >**/*LiveTest.java</exclude >
203+ </excludes >
204+ <includes >
205+ <include >**/*IntegrationTest.java</include >
206+ </includes >
207+ </configuration >
208+ </execution >
209+ </executions >
210+ <configuration >
211+ <systemPropertyVariables >
212+ <test .mime>json</test .mime>
213+ </systemPropertyVariables >
214+ </configuration >
215+ </plugin >
216+ </plugins >
217+ </build >
218+ </profile >
219+ </profiles >
220+
172221</project >
Original file line number Diff line number Diff line change 1717@ RunWith (SpringJUnit4ClassRunner .class )
1818@ Transactional
1919@ TransactionConfiguration (defaultRollback = true )
20- public class PersonDaoTest {
20+ public class PersonDaoIntegrationTest {
2121
2222 @ Autowired
2323 private PersonDao personDao ;
You can’t perform that action at this time.
0 commit comments