Skip to content

Commit dd70772

Browse files
andpabslawekjaranowski
authored andcommitted
[SUREFIRE-2138] Update JUnit4/JUnit5 versions in docs
Update JUnit versions referenced in configuration examples to 4.13.2 and 5.9.1, the respective latest versions
1 parent 6420f7c commit dd70772

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed

maven-surefire-plugin/src/site/apt/examples/jpms.apt.vm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ module test
108108
<dependency>
109109
<groupId>junit</groupId>
110110
<artifactId>junit</artifactId>
111-
<version>4.13</version>
111+
<version>4.13.2</version>
112112
<scope>test</scope>
113113
<exclusions>
114114
<exclusion>
@@ -154,7 +154,7 @@ module test
154154
demonstrating the Java Modularity (JPMS) in Maven multi-module project.
155155

156156
The JDK version must be 9 or higher. The POM contains the dependency
157-
<<<org.junit.jupiter:junit-jupiter-engine:5.6.2>>> which is named module. It activates the internal provider
157+
<<<org.junit.jupiter:junit-jupiter-engine:5.9.1>>> which is named module. It activates the internal provider
158158
<<<surefire-junit-platform>>> in the plugin.
159159

160160
+---+

maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Using JUnit 5 Platform
4040
<dependency>
4141
<groupId>org.junit.jupiter</groupId>
4242
<artifactId>junit-jupiter-engine</artifactId>
43-
<version>5.4.0</version>
43+
<version>5.9.1</version>
4444
<scope>test</scope>
4545
</dependency>
4646
[...]
@@ -55,15 +55,15 @@ Using JUnit 5 Platform
5555
(e.g., <<<src/test/java>>>).
5656

5757
If you want to write and execute JUnit 3 or 4 tests via the JUnit Platform add the Vintage Engine to the
58-
dependencies, which transitively pulls in (and requires) <<<junit:junit:4.12>>>:
58+
dependencies, which transitively pulls in (and requires) <<<junit:junit:4.13.2>>>:
5959

6060
+---+
6161
<dependencies>
6262
[...]
6363
<dependency>
6464
<groupId>org.junit.vintage</groupId>
6565
<artifactId>junit-vintage-engine</artifactId>
66-
<version>5.4.0</version>
66+
<version>5.9.1</version>
6767
<scope>test</scope>
6868
</dependency>
6969
[...]
@@ -85,7 +85,7 @@ Using JUnit 5 Platform
8585

8686
** How to run only one API
8787

88-
Normally, the developer does not want to access internal classes of JUnit5 engine (e.g. <<<5.4.0>>>).
88+
Normally, the developer does not want to access internal classes of JUnit5 engine (e.g. <<<5.9.1>>>).
8989
In the next chapters you can find your way to use the Jupiter or JUnit5 API where the plugin would resolve the engine.
9090

9191
*** Jupiter API in test dependencies
@@ -100,7 +100,7 @@ Using JUnit 5 Platform
100100
<dependency>
101101
<groupId>org.junit.jupiter</groupId>
102102
<artifactId>junit-jupiter-api</artifactId>
103-
<version>5.4.0</version>
103+
<version>5.9.1</version>
104104
<scope>test</scope>
105105
</dependency>
106106
[...]
@@ -125,15 +125,15 @@ Using JUnit 5 Platform
125125

126126
In the following example the engine artifact appears in plugin dependencies and the engine is resolved by the plugin
127127
and downloaded from a remote repository for plugins. You may want to update the version of engine with fixed bugs in
128-
<<<5.3.2>>> but the API version <<<5.3.0>>> stays intact!
128+
<<<5.9.1>>> but the API version <<<5.9.0>>> stays intact!
129129

130130
+---+
131131
<dependencies>
132132
[...]
133133
<dependency>
134134
<groupId>org.junit.jupiter</groupId>
135135
<artifactId>junit-jupiter-api</artifactId>
136-
<version>5.3.0</version>
136+
<version>5.9.0</version>
137137
<scope>test</scope>
138138
</dependency>
139139
[...]
@@ -150,7 +150,7 @@ Using JUnit 5 Platform
150150
<dependency>
151151
<groupId>org.junit.jupiter</groupId>
152152
<artifactId>junit-jupiter-engine</artifactId>
153-
<version>5.3.2</version>
153+
<version>5.9.1</version>
154154
</dependency>
155155
</dependencies>
156156
</plugin>
@@ -172,7 +172,7 @@ Using JUnit 5 Platform
172172
<dependency>
173173
<groupId>junit</groupId>
174174
<artifactId>junit</artifactId>
175-
<version>4.13</version>
175+
<version>4.13.2</version>
176176
<scope>test</scope>
177177
</dependency>
178178
[...]
@@ -189,7 +189,7 @@ Using JUnit 5 Platform
189189
<dependency>
190190
<groupId>org.junit.vintage</groupId>
191191
<artifactId>junit-vintage-engine</artifactId>
192-
<version>5.4.0</version>
192+
<version>5.9.1</version>
193193
</dependency>
194194
</dependencies>
195195
</plugin>
@@ -212,13 +212,13 @@ Using JUnit 5 Platform
212212
<dependency>
213213
<groupId>org.junit.jupiter</groupId>
214214
<artifactId>junit-jupiter-api</artifactId>
215-
<version>5.6.2</version>
215+
<version>5.9.1</version>
216216
<scope>test</scope>
217217
</dependency>
218218
<dependency>
219219
<groupId>junit</groupId>
220220
<artifactId>junit</artifactId>
221-
<version>4.13</version>
221+
<version>4.13.2</version>
222222
<scope>test</scope>
223223
</dependency>
224224
</dependencies>
@@ -231,13 +231,13 @@ Using JUnit 5 Platform
231231
<dependency>
232232
<groupId>org.junit.jupiter</groupId>
233233
<artifactId>junit-jupiter-api</artifactId>
234-
<version>5.6.2</version>
234+
<version>5.9.1</version>
235235
<scope>test</scope>
236236
</dependency>
237237
<dependency>
238238
<groupId>org.junit.vintage</groupId>
239239
<artifactId>junit-vintage-engine</artifactId>
240-
<version>5.6.2</version>
240+
<version>5.9.1</version>
241241
<scope>test</scope>
242242
</dependency>
243243
</dependencies>
@@ -250,13 +250,13 @@ Using JUnit 5 Platform
250250
<dependency>
251251
<groupId>org.junit.jupiter</groupId>
252252
<artifactId>junit-jupiter-engine</artifactId>
253-
<version>5.6.2</version>
253+
<version>5.9.1</version>
254254
<scope>test</scope>
255255
</dependency>
256256
<dependency>
257257
<groupId>org.junit.vintage</groupId>
258258
<artifactId>junit-vintage-engine</artifactId>
259-
<version>5.6.2</version>
259+
<version>5.9.1</version>
260260
<scope>test</scope>
261261
</dependency>
262262
</dependencies>
@@ -277,13 +277,13 @@ Using JUnit 5 Platform
277277
<dependency>
278278
<groupId>org.junit.jupiter</groupId>
279279
<artifactId>junit-jupiter-api</artifactId>
280-
<version>5.6.2</version>
280+
<version>5.9.1</version>
281281
<scope>test</scope>
282282
</dependency>
283283
<dependency>
284284
<groupId>junit</groupId>
285285
<artifactId>junit</artifactId>
286-
<version>4.13</version>
286+
<version>4.13.2</version>
287287
<scope>test</scope>
288288
</dependency>
289289
</dependencies>
@@ -299,7 +299,7 @@ Using JUnit 5 Platform
299299
<dependency>
300300
<groupId>org.junit.jupiter</groupId>
301301
<artifactId>junit-jupiter-engine</artifactId>
302-
<version>5.6.2</version>
302+
<version>5.9.1</version>
303303
</dependency>
304304
</dependencies>
305305
</plugin>
@@ -318,13 +318,13 @@ Using JUnit 5 Platform
318318
<dependency>
319319
<groupId>org.junit.jupiter</groupId>
320320
<artifactId>junit-jupiter-api</artifactId>
321-
<version>5.6.2</version>
321+
<version>5.9.1</version>
322322
<scope>test</scope>
323323
</dependency>
324324
<dependency>
325325
<groupId>junit</groupId>
326326
<artifactId>junit</artifactId>
327-
<version>4.13</version>
327+
<version>4.13.2</version>
328328
<scope>test</scope>
329329
</dependency>
330330
</dependencies>
@@ -340,7 +340,7 @@ Using JUnit 5 Platform
340340
<dependency>
341341
<groupId>org.junit.vintage</groupId>
342342
<artifactId>junit-vintage-engine</artifactId>
343-
<version>5.6.2</version>
343+
<version>5.9.1</version>
344344
</dependency>
345345
</dependencies>
346346
</plugin>
@@ -390,13 +390,13 @@ Using JUnit 5 Platform
390390
<dependency>
391391
<groupId>org.junit.jupiter</groupId>
392392
<artifactId>junit-jupiter-engine</artifactId>
393-
<version>5.6.2</version>
393+
<version>5.9.1</version>
394394
<scope>test</scope>
395395
</dependency>
396396
<dependency>
397397
<groupId>org.junit.platform</groupId>
398398
<artifactId>junit-platform-runner</artifactId>
399-
<version>1.6.2</version>
399+
<version>1.9.1</version>
400400
<scope>test</scope>
401401
</dependency>
402402
</dependencies>
@@ -413,13 +413,13 @@ Using JUnit 5 Platform
413413
<dependency>
414414
<groupId>org.junit.jupiter</groupId>
415415
<artifactId>junit-jupiter-engine</artifactId>
416-
<version>5.8.2</version>
416+
<version>5.9.1</version>
417417
<scope>test</scope>
418418
</dependency>
419419
<dependency>
420420
<groupId>org.junit.platform</groupId>
421421
<artifactId>junit-platform-suite-engine</artifactId>
422-
<version>1.8.2</version>
422+
<version>1.9.1</version>
423423
<scope>test</scope>
424424
</dependency>
425425
</dependencies>

maven-surefire-plugin/src/site/apt/examples/junit.apt.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Using JUnit
3838
<dependency>
3939
<groupId>junit</groupId>
4040
<artifactId>junit</artifactId>
41-
<version>4.11</version>
41+
<version>4.13.2</version>
4242
<scope>test</scope>
4343
</dependency>
4444
[...]

maven-surefire-plugin/src/site/apt/examples/spock.apt.vm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class CalculatorTest extends Specification
8282
<dependency>
8383
<groupId>org.junit.jupiter</groupId>
8484
<artifactId>junit-jupiter-engine</artifactId>
85-
<version>5.6.2</version>
85+
<version>5.9.1</version>
8686
<scope>test</scope>
8787
</dependency>
8888
[...]
@@ -140,7 +140,7 @@ class CalculatorTest extends Specification
140140
<dependency>
141141
<groupId>org.junit.jupiter</groupId>
142142
<artifactId>junit-jupiter-engine</artifactId>
143-
<version>5.6.2</version>
143+
<version>5.9.1</version>
144144
<scope>test</scope>
145145
</dependency>
146146
[...]

maven-surefire-plugin/src/site/apt/examples/testng.apt.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Using TestNG
446446
<dependency>
447447
<groupId>junit</groupId>
448448
<artifactId>junit</artifactId>
449-
<version>4.10</version>
449+
<version>4.13.2</version>
450450
<scope>test</scope>
451451
</dependency>
452452
[...]

maven-surefire-plugin/src/site/markdown/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The `pom.xml`:
8080
<dependency>
8181
<groupId>junit</groupId>
8282
<artifactId>junit</artifactId>
83-
<version>4.13</version>
83+
<version>4.13.2</version>
8484
</dependency>
8585
</dependencies>
8686

0 commit comments

Comments
 (0)