File tree Expand file tree Collapse file tree
src/test/java/com/baeldung/jooq Expand file tree Collapse file tree Original file line number Diff line number Diff line change 161161 </configuration >
162162 </plugin >
163163
164+ <plugin >
165+ <groupId >org.apache.maven.plugins</groupId >
166+ <artifactId >maven-surefire-plugin</artifactId >
167+ <configuration >
168+ <excludes >
169+ <exclude >**/*IntegrationTest.java</exclude >
170+ <exclude >**/*LiveTest.java</exclude >
171+ </excludes >
172+ </configuration >
173+ </plugin >
174+
164175 </plugins >
165176 </build >
166177
178+ <profiles >
179+ <profile >
180+ <id >integration</id >
181+ <build >
182+ <plugins >
183+ <plugin >
184+ <groupId >org.apache.maven.plugins</groupId >
185+ <artifactId >maven-surefire-plugin</artifactId >
186+ <executions >
187+ <execution >
188+ <phase >integration-test</phase >
189+ <goals >
190+ <goal >test</goal >
191+ </goals >
192+ <configuration >
193+ <excludes >
194+ <exclude >**/*LiveTest.java</exclude >
195+ </excludes >
196+ <includes >
197+ <include >**/*IntegrationTest.java</include >
198+ </includes >
199+ </configuration >
200+ </execution >
201+ </executions >
202+ <configuration >
203+ <systemPropertyVariables >
204+ <test .mime>json</test .mime>
205+ </systemPropertyVariables >
206+ </configuration >
207+ </plugin >
208+ </plugins >
209+ </build >
210+ </profile >
211+ </profiles >
212+
167213 <properties >
168214 <org .jooq.version>3.7.3</org .jooq.version>
169215 <com .h2database.version>1.4.191</com .h2database.version>
173219 <junit .version>4.12</junit .version>
174220
175221 <maven-compiler-plugin .version>3.5.1</maven-compiler-plugin .version>
222+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
176223 </properties >
177224
178225</project >
Original file line number Diff line number Diff line change 2222@ ComponentScan ({ "com.baeldung.jooq.introduction.db.public_.tables" })
2323@ EnableTransactionManagement
2424@ PropertySource ("classpath:intro_config.properties" )
25- public class PersistenceContext {
25+ public class PersistenceContextIntegrationTest {
2626
2727 @ Autowired
2828 private Environment environment ;
Original file line number Diff line number Diff line change 1717import static com .baeldung .jooq .introduction .db .public_ .tables .Book .BOOK ;
1818import static org .junit .Assert .assertEquals ;
1919
20- @ ContextConfiguration (classes = PersistenceContext .class )
20+ @ ContextConfiguration (classes = PersistenceContextIntegrationTest .class )
2121@ Transactional (transactionManager = "transactionManager" )
2222@ RunWith (SpringJUnit4ClassRunner .class )
23- public class QueryTest {
23+ public class QueryIntegrationTest {
2424
2525 @ Autowired
2626 private DSLContext dsl ;
Original file line number Diff line number Diff line change 2020@ SpringApplicationConfiguration (Application .class )
2121@ Transactional ("transactionManager" )
2222@ RunWith (SpringJUnit4ClassRunner .class )
23- public class SpringBootTest {
23+ public class SpringBootIntegrationTest {
2424
2525 @ Autowired
2626 private DSLContext dsl ;
You can’t perform that action at this time.
0 commit comments