File tree Expand file tree Collapse file tree
src/test/java/com/baeldung/spring/data/neo4j Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
1414 <neo4j .version>3.0.1</neo4j .version>
1515 <spring-data-neo4j .version>4.1.1.RELEASE</spring-data-neo4j .version>
16+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
1617 </properties >
1718
1819 <dependencies >
8384
8485 </dependencies >
8586
86- <build >
87- <plugins >
88- <plugin >
89- <artifactId >maven-compiler-plugin</artifactId >
90- </plugin >
91- </plugins >
92- </build >
87+ <build >
88+ <plugins >
89+ <plugin >
90+ <artifactId >maven-compiler-plugin</artifactId >
91+ </plugin >
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 >
93105
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 >
94140</project >
Original file line number Diff line number Diff line change 2424@ RunWith (SpringJUnit4ClassRunner .class )
2525@ ContextConfiguration (classes = MovieDatabaseNeo4jTestConfiguration .class )
2626@ ActiveProfiles (profiles = "test" )
27- public class MovieRepositoryTest {
27+ public class MovieRepositoryIntegrationTest {
2828
2929 @ Autowired
3030 private MovieRepository movieRepository ;
3131
3232 @ Autowired
3333 private PersonRepository personRepository ;
3434
35- public MovieRepositoryTest () {
35+ public MovieRepositoryIntegrationTest () {
3636 }
3737
3838 @ Before
You can’t perform that action at this time.
0 commit comments