File tree Expand file tree Collapse file tree
src/test/java/com/baeldung/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545
4646 </dependencies >
4747
48+
49+ <build >
50+ <plugins >
51+ <plugin >
52+ <groupId >org.apache.maven.plugins</groupId >
53+ <artifactId >maven-surefire-plugin</artifactId >
54+ <version >${maven-surefire-plugin.version} </version >
55+ <configuration >
56+ <excludes >
57+ <exclude >**/*IntegrationTest.java</exclude >
58+ <exclude >**/*LiveTest.java</exclude >
59+ </excludes >
60+ </configuration >
61+ </plugin >
62+ </plugins >
63+ </build >
64+
65+ <profiles >
66+ <profile >
67+ <id >integration</id >
68+ <build >
69+ <plugins >
70+ <plugin >
71+ <groupId >org.apache.maven.plugins</groupId >
72+ <artifactId >maven-surefire-plugin</artifactId >
73+ <executions >
74+ <execution >
75+ <phase >integration-test</phase >
76+ <goals >
77+ <goal >test</goal >
78+ </goals >
79+ <configuration >
80+ <excludes >
81+ <exclude >**/*LiveTest.java</exclude >
82+ </excludes >
83+ <includes >
84+ <include >**/*IntegrationTest.java</include >
85+ </includes >
86+ </configuration >
87+ </execution >
88+ </executions >
89+ <configuration >
90+ <systemPropertyVariables >
91+ <test .mime>json</test .mime>
92+ </systemPropertyVariables >
93+ </configuration >
94+ </plugin >
95+ </plugins >
96+ </build >
97+ </profile >
98+ </profiles >
4899 <properties >
49100 <spring .version>4.3.1.RELEASE</spring .version>
101+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
50102 </properties >
51103
52104</project >
Original file line number Diff line number Diff line change 1616
1717@ RunWith (SpringRunner .class )
1818@ ContextConfiguration (classes = { AppConfig .class })
19- public class TestSpringInterceptor {
19+ public class SpringInterceptorIntegrationTest {
2020 @ Autowired
2121 SpringSuperService springSuperService ;
2222
You can’t perform that action at this time.
0 commit comments