Skip to content

Commit d8012d0

Browse files
authored
Merge branch 'main' into 5155-fix-exclusive-resources-for-class-template
2 parents 7542d46 + 94dc7be commit d8012d0

File tree

18 files changed

+135
-59
lines changed

18 files changed

+135
-59
lines changed

.github/workflows/zizmor-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
persist-credentials: false
2727

2828
- name: Run zizmor 🌈
29-
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
29+
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0

documentation/src/docs/asciidoc/link-attributes.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ endif::[]
103103
:Events: {javadoc-root}/org.junit.platform.testkit/org/junit/platform/testkit/engine/Events.html[Events]
104104
:EventStatistics: {javadoc-root}/org.junit.platform.testkit/org/junit/platform/testkit/engine/EventStatistics.html[EventStatistics]
105105
:EventType: {javadoc-root}/org.junit.platform.testkit/org/junit/platform/testkit/engine/EventType.html[EventType]
106-
:Execution: {javadoc-root}/org.junit.platform.testkit/org/junit/platform/testkit/engine/Execution.html[Execution]
107106
:Executions: {javadoc-root}/org.junit.platform.testkit/org/junit/platform/testkit/engine/Executions.html[Executions]
108107
:TerminationInfo: {javadoc-root}/org.junit.platform.testkit/org/junit/platform/testkit/engine/TerminationInfo.html[TerminationInfo]
109108
:TestExecutionResultConditions: {javadoc-root}/org.junit.platform.testkit/org/junit/platform/testkit/engine/TestExecutionResultConditions.html[TestExecutionResultConditions]

documentation/src/docs/asciidoc/release-notes/index.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ include::{basedir}/release-notes-6.1.0-M2.adoc[]
2121

2222
include::{basedir}/release-notes-6.1.0-M1.adoc[]
2323

24+
include::{basedir}/release-notes-6.0.2.adoc[]
25+
2426
include::{basedir}/release-notes-6.0.1.adoc[]
2527

2628
include::{basedir}/release-notes-6.0.0.adoc[]
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[[release-notes-6.0.2]]
2+
== 6.0.2
3+
4+
*Date of Release:* ❓
5+
6+
*Scope:* ❓
7+
8+
For a complete list of all _closed_ issues and pull requests for this release, consult the
9+
link:{junit-framework-repo}+/milestone/113?closed=1+[6.0.2] milestone page in the JUnit
10+
repository on GitHub.
11+
12+
13+
[[release-notes-6.0.2-junit-platform]]
14+
=== JUnit Platform
15+
16+
[[release-notes-6.0.2-junit-platform-bug-fixes]]
17+
==== Bug Fixes
18+
19+
* Make `ConsoleLauncher` compatible with JDK 26 by avoiding final field mutations.
20+
21+
[[release-notes-6.0.2-junit-platform-deprecations-and-breaking-changes]]
22+
==== Deprecations and Breaking Changes
23+
24+
* ❓
25+
26+
[[release-notes-6.0.2-junit-platform-new-features-and-improvements]]
27+
==== New Features and Improvements
28+
29+
* ❓
30+
31+
32+
[[release-notes-6.0.2-junit-jupiter]]
33+
=== JUnit Jupiter
34+
35+
[[release-notes-6.0.2-junit-jupiter-bug-fixes]]
36+
==== Bug Fixes
37+
38+
* ❓
39+
40+
[[release-notes-6.0.2-junit-jupiter-deprecations-and-breaking-changes]]
41+
==== Deprecations and Breaking Changes
42+
43+
* ❓
44+
45+
[[release-notes-6.0.2-junit-jupiter-new-features-and-improvements]]
46+
==== New Features and Improvements
47+
48+
* ❓
49+
50+
51+
[[release-notes-6.0.2-junit-vintage]]
52+
=== JUnit Vintage
53+
54+
[[release-notes-6.0.2-junit-vintage-bug-fixes]]
55+
==== Bug Fixes
56+
57+
* ❓
58+
59+
[[release-notes-6.0.2-junit-vintage-deprecations-and-breaking-changes]]
60+
==== Deprecations and Breaking Changes
61+
62+
* ❓
63+
64+
[[release-notes-6.0.2-junit-vintage-new-features-and-improvements]]
65+
==== New Features and Improvements
66+
67+
* ❓

documentation/src/docs/asciidoc/user-guide/extensions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ code. User-supplied test and lifecycle methods are shown in orange, with callbac
10321032
implemented by extensions shown in blue. The grey box denotes the execution of a single
10331033
test method and will be repeated for every test method in the test class.
10341034

1035-
[#extensions-execution-order-diagram]
1035+
[[extensions-execution-order-diagram]]
10361036
.User code and extension code
10371037
image::extensions_lifecycle.png[]
10381038

documentation/src/docs/asciidoc/user-guide/writing-tests.adoc

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,18 +1493,18 @@ display name can be configured for each repetition via the `name` attribute of t
14931493
combination of static text and dynamic placeholders. The following placeholders are
14941494
currently supported.
14951495

1496-
- `{displayName}`: display name of the `@RepeatedTest` method
1497-
- `{currentRepetition}`: the current repetition count
1498-
- `{totalRepetitions}`: the total number of repetitions
1496+
- `+{displayName}+`: display name of the `@RepeatedTest` method
1497+
- `+{currentRepetition}+`: the current repetition count
1498+
- `+{totalRepetitions}+`: the total number of repetitions
14991499

15001500
The default display name for a given repetition is generated based on the following
1501-
pattern: `"repetition {currentRepetition} of {totalRepetitions}"`. Thus, the display
1501+
pattern: `"repetition +{currentRepetition}+ of +{totalRepetitions}+"`.Thus, the display
15021502
names for individual repetitions of the previous `repeatedTest()` example would be:
1503-
`repetition 1 of 10`, `repetition 2 of 10`, etc. If you would like the display name of
1503+
`repetition 1 of 10`, `repetition 2 of 10`, etc.If you would like the display name of
15041504
the `@RepeatedTest` method included in the name of each repetition, you can define your
1505-
own custom pattern or use the predefined `RepeatedTest.LONG_DISPLAY_NAME` pattern. The
1506-
latter is equal to `"{displayName} :: repetition {currentRepetition} of
1507-
{totalRepetitions}"` which results in display names for individual repetitions like
1505+
own custom pattern or use the predefined `RepeatedTest.LONG_DISPLAY_NAME` pattern.The
1506+
latter is equal to `"+{displayName}+ :: repetition +{currentRepetition}+ of
1507+
+{totalRepetitions}+"` which results in display names for individual repetitions like
15081508
`repeatedTest() :: repetition 1 of 10`, `repeatedTest() :: repetition 2 of 10`, etc.
15091509

15101510
In order to retrieve information about the current repetition, the total number of
@@ -1524,15 +1524,15 @@ The `repeatedTest()` method is identical to the example from the previous sectio
15241524
current repeated test.
15251525

15261526
`repeatedTestWithFailureThreshold()` demonstrates how to set a failure threshold and
1527-
simulates an unexpected failure for every second repetition. The resulting behavior can be
1527+
simulates an unexpected failure for every second repetition.The resulting behavior can be
15281528
viewed in the `ConsoleLauncher` output at the end of this section.
15291529

15301530
The next two methods demonstrate how to include a custom `@DisplayName` for the
15311531
`@RepeatedTest` method in the display name of each repetition. `customDisplayName()`
15321532
combines a custom display name with a custom pattern and then uses `TestInfo` to verify
1533-
the format of the generated display name. `Repeat!` is the `{displayName}` which comes
1533+
the format of the generated display name. `Repeat!` is the `+{displayName}+` which comes
15341534
from the `@DisplayName` declaration, and `1/1` comes from
1535-
`{currentRepetition}/{totalRepetitions}`. In contrast,
1535+
`+{currentRepetition}+/+{totalRepetitions}+`.In contrast,
15361536
`customDisplayNameWithLongPattern()` uses the aforementioned predefined
15371537
`RepeatedTest.LONG_DISPLAY_NAME` pattern.
15381538

@@ -1823,8 +1823,6 @@ Other extensions can access the parameters and resolved arguments of a parameter
18231823
or class by retrieving a `{ParameterInfo}` object from the `{ExtensionContext_Store}`.
18241824
Please refer to the Javadoc of `{ParameterInfo}` for details.
18251825

1826-
[[writing-tests-parameterized-tests-argument-aggregation]]
1827-
18281826
[[writing-tests-parameterized-tests-sources]]
18291827
==== Sources of Arguments
18301828

junit-jupiter-api/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
exports org.junit.jupiter.api.function;
3131
exports org.junit.jupiter.api.io;
3232
exports org.junit.jupiter.api.parallel;
33-
exports org.junit.jupiter.api.util to org.junit.jupiter.engine;
33+
exports org.junit.jupiter.api.timeout to org.junit.jupiter.engine;
3434

3535
opens org.junit.jupiter.api.condition to org.junit.platform.commons;
3636
}

junit-jupiter-api/src/main/java/org/junit/jupiter/api/AssertTimeoutPreemptively.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
package org.junit.jupiter.api;
1212

1313
import static org.junit.jupiter.api.AssertionFailureBuilder.assertionFailure;
14-
import static org.junit.jupiter.api.util.PreemptiveTimeoutUtils.executeWithPreemptiveTimeout;
14+
import static org.junit.jupiter.api.timeout.PreemptiveTimeoutUtils.executeWithPreemptiveTimeout;
1515

1616
import java.time.Duration;
1717
import java.util.function.Supplier;

junit-jupiter-api/src/main/java/org/junit/jupiter/api/util/PreemptiveTimeoutUtils.java renamed to junit-jupiter-api/src/main/java/org/junit/jupiter/api/timeout/PreemptiveTimeoutUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://www.eclipse.org/legal/epl-v20.html
99
*/
1010

11-
package org.junit.jupiter.api.util;
11+
package org.junit.jupiter.api.timeout;
1212

1313
import static java.util.Objects.requireNonNullElse;
1414
import static org.apiguardian.api.API.Status.INTERNAL;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Internal JUnit Jupiter utilities.
2+
* Internal JUnit Jupiter timeout utilities.
33
*
44
* <h2>DISCLAIMER</h2>
55
*
@@ -9,6 +9,6 @@
99
*/
1010

1111
@NullMarked
12-
package org.junit.jupiter.api.util;
12+
package org.junit.jupiter.api.timeout;
1313

1414
import org.jspecify.annotations.NullMarked;

0 commit comments

Comments
 (0)