Skip to content

Commit 522599f

Browse files
author
eugenp
committed
testing cleanup
1 parent 61fa5ff commit 522599f

1 file changed

Lines changed: 95 additions & 41 deletions

File tree

‎java-mongodb/pom.xml‎

Lines changed: 95 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,98 @@
11
<?xml version="1.0"?>
2-
<project
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4-
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5-
<modelVersion>4.0.0</modelVersion>
6-
7-
<groupId>com.baeldung</groupId>
8-
<artifactId>java-mongodb</artifactId>
9-
<version>1.0-SNAPSHOT</version>
10-
11-
<properties>
12-
<maven.compiler.source>1.8</maven.compiler.source>
13-
<maven.compiler.target>1.8</maven.compiler.target>
14-
<junit.version>4.12</junit.version>
15-
<mongo.version>3.4.1</mongo.version>
16-
<flapdoodle.version>1.11</flapdoodle.version>
17-
</properties>
18-
19-
<dependencies>
20-
21-
<dependency>
22-
<groupId>junit</groupId>
23-
<artifactId>junit</artifactId>
24-
<version>${junit.version}</version>
25-
<scope>test</scope>
26-
</dependency>
27-
28-
<dependency>
29-
<groupId>de.flapdoodle.embedmongo</groupId>
30-
<artifactId>de.flapdoodle.embedmongo</artifactId>
31-
<version>${flapdoodle.version}</version>
32-
<scope>test</scope>
33-
</dependency>
34-
35-
36-
<dependency>
37-
<groupId>org.mongodb</groupId>
38-
<artifactId>mongo-java-driver</artifactId>
39-
<version>${mongo.version}</version>
40-
</dependency>
41-
42-
</dependencies>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.baeldung</groupId>
7+
<artifactId>java-mongodb</artifactId>
8+
<version>1.0-SNAPSHOT</version>
9+
10+
<dependencies>
11+
12+
<dependency>
13+
<groupId>junit</groupId>
14+
<artifactId>junit</artifactId>
15+
<version>${junit.version}</version>
16+
<scope>test</scope>
17+
</dependency>
18+
19+
<dependency>
20+
<groupId>de.flapdoodle.embedmongo</groupId>
21+
<artifactId>de.flapdoodle.embedmongo</artifactId>
22+
<version>${flapdoodle.version}</version>
23+
<scope>test</scope>
24+
</dependency>
25+
26+
27+
<dependency>
28+
<groupId>org.mongodb</groupId>
29+
<artifactId>mongo-java-driver</artifactId>
30+
<version>${mongo.version}</version>
31+
</dependency>
32+
33+
</dependencies>
34+
35+
<build>
36+
<plugins>
37+
<plugin>
38+
<groupId>org.apache.maven.plugins</groupId>
39+
<artifactId>maven-surefire-plugin</artifactId>
40+
<version>${maven-surefire-plugin.version}</version>
41+
<configuration>
42+
<excludes>
43+
<exclude>**/*IntegrationTest.java</exclude>
44+
<exclude>**/*LongRunningUnitTest.java</exclude>
45+
<exclude>**/*ManualTest.java</exclude>
46+
</excludes>
47+
<testFailureIgnore>true</testFailureIgnore>
48+
</configuration>
49+
</plugin>
50+
</plugins>
51+
</build>
52+
53+
<profiles>
54+
<profile>
55+
<id>integration</id>
56+
<build>
57+
<plugins>
58+
<plugin>
59+
<groupId>org.apache.maven.plugins</groupId>
60+
<artifactId>maven-surefire-plugin</artifactId>
61+
<executions>
62+
<execution>
63+
<phase>integration-test</phase>
64+
<goals>
65+
<goal>test</goal>
66+
</goals>
67+
<configuration>
68+
<excludes>
69+
<exclude>**/*ManualTest.java</exclude>
70+
</excludes>
71+
<includes>
72+
<include>**/*IntegrationTest.java</include>
73+
</includes>
74+
</configuration>
75+
</execution>
76+
</executions>
77+
<configuration>
78+
<systemPropertyVariables>
79+
<test.mime>json</test.mime>
80+
</systemPropertyVariables>
81+
</configuration>
82+
</plugin>
83+
</plugins>
84+
</build>
85+
</profile>
86+
</profiles>
87+
88+
<properties>
89+
<maven.compiler.source>1.8</maven.compiler.source>
90+
<maven.compiler.target>1.8</maven.compiler.target>
91+
<junit.version>4.12</junit.version>
92+
<mongo.version>3.4.1</mongo.version>
93+
<flapdoodle.version>1.11</flapdoodle.version>
94+
95+
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
96+
</properties>
4397

4498
</project>

0 commit comments

Comments
 (0)