|
59 | 59 | <metrics.version>3.2.5</metrics.version> |
60 | 60 | <logback.version>1.2.3</logback.version> |
61 | 61 | <jetty.version>9.4.7.v20170914</jetty.version> |
62 | | - <junit.version>4.12</junit.version> |
| 62 | + <junit.jupiter.version>5.0.2</junit.jupiter.version> |
| 63 | + <junit.platform.version>1.0.2</junit.platform.version> |
| 64 | + <mockito.version>2.13.0</mockito.version> |
| 65 | + <hamcrest.version>2.0.0.0</hamcrest.version> |
63 | 66 |
|
64 | 67 | <!-- to sign artifacts when releasing --> |
65 | 68 | <gpg.keyname>6026DFCA</gpg.keyname> |
|
75 | 78 | <checksum.maven.plugin.version>1.6</checksum.maven.plugin.version> |
76 | 79 | <maven.jar.plugin.version>3.0.2</maven.jar.plugin.version> |
77 | 80 | <buildnumber.plugin.version>1.4</buildnumber.plugin.version> |
| 81 | + <maven.surefire.plugin.version>2.19.1</maven.surefire.plugin.version> |
78 | 82 |
|
79 | 83 | <!-- because of https://issues.apache.org/jira/browse/MRESOURCES-99 --> |
80 | 84 | <build.timestamp>${maven.build.timestamp}</build.timestamp> |
|
104 | 108 | </dependency> |
105 | 109 |
|
106 | 110 | <dependency> |
107 | | - <groupId>junit</groupId> |
108 | | - <artifactId>junit</artifactId> |
109 | | - <version>${junit.version}</version> |
| 111 | + <groupId>org.junit.jupiter</groupId> |
| 112 | + <artifactId>junit-jupiter-engine</artifactId> |
| 113 | + <version>${junit.jupiter.version}</version> |
110 | 114 | <scope>test</scope> |
111 | 115 | </dependency> |
| 116 | + <!-- To avoid compiler warnings about @API annotations in JUnit code --> |
| 117 | + <dependency> |
| 118 | + <groupId>org.apiguardian</groupId> |
| 119 | + <artifactId>apiguardian-api</artifactId> |
| 120 | + <version>1.0.0</version> |
| 121 | + <scope>test</scope> |
| 122 | + </dependency> |
| 123 | + |
| 124 | + <!-- to support JUnit 4 rules --> |
| 125 | + <dependency> |
| 126 | + <groupId>org.junit.jupiter</groupId> |
| 127 | + <artifactId>junit-jupiter-migrationsupport</artifactId> |
| 128 | + <version>${junit.jupiter.version}</version> |
| 129 | + <scope>test</scope> |
| 130 | + </dependency> |
| 131 | + |
| 132 | + <!-- for parameterized tests --> |
| 133 | + <dependency> |
| 134 | + <groupId>org.junit.jupiter</groupId> |
| 135 | + <artifactId>junit-jupiter-params</artifactId> |
| 136 | + <version>${junit.jupiter.version}</version> |
| 137 | + <scope>test</scope> |
| 138 | + </dependency> |
| 139 | + |
| 140 | + <dependency> |
| 141 | + <groupId>org.mockito</groupId> |
| 142 | + <artifactId>mockito-core</artifactId> |
| 143 | + <version>${mockito.version}</version> |
| 144 | + <scope>test</scope> |
| 145 | + </dependency> |
| 146 | + |
| 147 | + <dependency> |
| 148 | + <groupId>org.hamcrest</groupId> |
| 149 | + <artifactId>hamcrest-junit</artifactId> |
| 150 | + <version>${hamcrest.version}</version> |
| 151 | + <scope>test</scope> |
| 152 | + </dependency> |
| 153 | + |
| 154 | + <dependency> |
| 155 | + <groupId>ch.qos.logback</groupId> |
| 156 | + <artifactId>logback-classic</artifactId> |
| 157 | + <version>${logback.version}</version> |
| 158 | + <scope>test</scope> |
| 159 | + </dependency> |
| 160 | + |
112 | 161 | </dependencies> |
113 | 162 |
|
114 | 163 | <build> |
|
145 | 194 | </configuration> |
146 | 195 | </plugin> |
147 | 196 |
|
| 197 | + <plugin> |
| 198 | + <groupId>org.apache.maven.plugins</groupId> |
| 199 | + <artifactId>maven-surefire-plugin</artifactId> |
| 200 | + <version>${maven.surefire.plugin.version}</version> |
| 201 | + <dependencies> |
| 202 | + <dependency> |
| 203 | + <groupId>org.junit.platform</groupId> |
| 204 | + <artifactId>junit-platform-surefire-provider</artifactId> |
| 205 | + <version>${junit.platform.version}</version> |
| 206 | + </dependency> |
| 207 | + </dependencies> |
| 208 | + </plugin> |
| 209 | + |
148 | 210 | <plugin> |
149 | 211 | <groupId>org.codehaus.mojo</groupId> |
150 | 212 | <artifactId>versions-maven-plugin</artifactId> |
|
0 commit comments