Skip to content

Commit 47e17c9

Browse files
authored
Merge branch 'junit-team:main' into file_source_reuse
2 parents ac5529c + 4bbe57d commit 47e17c9

File tree

157 files changed

+507
-455
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+507
-455
lines changed

.github/actions/run-gradle/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
id: setup-gradle-jdk
1616
with:
1717
distribution: temurin
18-
java-version: 21
18+
java-version: 24
1919
check-latest: true
2020
- uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
2121
with:

.github/workflows/cross-version.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
jdk:
25-
- version: 24
26-
type: ga
2725
- version: 25
2826
type: ea
2927
name: "OpenJDK ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }})"

.github/workflows/gradle-dependency-submission.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2323
with:
2424
distribution: temurin
25-
java-version: 21
25+
java-version: 24
2626
check-latest: true
2727
- name: Generate and submit dependency graph
2828
uses: gradle/actions/dependency-submission@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
distribution: graalvm-community
3131
version: 'latest'
32-
java-version: '21'
32+
java-version: '24'
3333
github-token: ${{ secrets.GITHUB_TOKEN }}
3434
- name: Build
3535
uses: ./.github/actions/main-build

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- name: Set up JDK
8888
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
8989
with:
90-
java-version: 21
90+
java-version: 24
9191
distribution: temurin
9292
- uses: sbt/setup-sbt@69a46ab4acd4316aa16e68d91a9249a98d7e78d5 # v1.1.8
9393
- name: Update JUnit dependencies in samples
@@ -245,7 +245,7 @@ jobs:
245245
- name: Set up JDK
246246
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
247247
with:
248-
java-version: 21
248+
java-version: 24
249249
distribution: temurin
250250
- uses: sbt/setup-sbt@69a46ab4acd4316aa16e68d91a9249a98d7e78d5 # v1.1.8
251251
- name: Update JUnit dependencies in samples

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ task outputs from previous CI builds.
7070

7171
## Building from Source
7272

73-
You need [JDK 21] to build JUnit. [Gradle toolchains] are used to detect and
73+
You need [JDK 24] to build JUnit. [Gradle toolchains] are used to detect and
7474
potentially download additional JDKs for compilation and test execution.
7575

7676
All modules can be _built_ and _tested_ with the [Gradle Wrapper] using the following command:
@@ -100,7 +100,7 @@ of the JUnit Platform, JUnit Jupiter, and JUnit Vintage.
100100
[Gradle Wrapper]: https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:using_wrapper
101101
[JaCoCo]: https://www.eclemma.org/jacoco/
102102
[Javadoc]: https://junit.org/junit5/docs/current/api/
103-
[JDK 21]: https://javaalmanac.io/jdk/21/
103+
[JDK 24]: https://javaalmanac.io/jdk/24/
104104
[Release Notes]: https://junit.org/junit5/docs/current/release-notes/
105105
[Samples]: https://github.com/junit-team/junit5-samples
106106
[StackOverflow]: https://stackoverflow.com/questions/tagged/junit5

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ on GitHub.
4242
in their enclosing class. This undesired change in behavior has now been reverted so
4343
that tests in `@Nested` test classes are always executed _after_ tests in enclosing test
4444
classes again.
45+
* Fix support for `AnnotationBasedArgumentsProvider` implementations that override the
46+
deprecated `provideArguments(ExtensionContext, Annotation)` method.
4547

4648
[[release-notes-5.13.1-junit-jupiter-deprecations-and-breaking-changes]]
4749
==== Deprecations and Breaking Changes

documentation/src/docs/asciidoc/release-notes/release-notes-6.0.0-M1.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ repository on GitHub.
7676
property has been removed. JUnit now always adheres to standard Java semantics regarding
7777
whether a given field or method is visible or overridden according to the rules of the
7878
Java language.
79+
* The type bounds of the following methods have been changed to be more flexible and allow
80+
nullable and non-nullable types:
81+
- `ConfigurationParameters.get(String, Function)`
82+
- `NamespacedHierarchicalStore.getOrComputeIfAbsent(N, K, Function)`
83+
- `NamespacedHierarchicalStore.getOrComputeIfAbsent(N, K, Function, Class)`
7984

8085
[[release-notes-6.0.0-M1-junit-platform-new-features-and-improvements]]
8186
==== New Features and Improvements
@@ -112,6 +117,11 @@ repository on GitHub.
112117
`callsInPlace(executable, AT_MOST_ONCE)` which might result in compilation errors.
113118
* The `junit-jupiter-migrationsupport` artifact and its contained classes are now
114119
deprecated and will be removed in the next major version.
120+
* The type bounds of the following methods have been changed to be more flexible and allow
121+
nullable and non-nullable types:
122+
- `ExtensionContext.getConfigurationParameter(String, Function)`
123+
- `ExtensionContext.getOrComputeIfAbsent(K, Function)`
124+
- `ExtensionContext.getOrComputeIfAbsent(K, Function, Class)`
115125

116126
[[release-notes-6.0.0-M1-junit-jupiter-new-features-and-improvements]]
117127
==== New Features and Improvements

documentation/src/javadoc/junit-stylesheet.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
/* Text colors for links */
3131
--link-color: #dc524a;
3232
--link-color-active: #b62b23;
33+
/* Table of contents */
34+
--toc-background-color: var(--section-background-color);
35+
--toc-link-color: #000;
3336
/* Snippet colors */
3437
--snippet-background-color: #ebecee;
3538
--snippet-text-color: var(--block-text-color);
@@ -39,10 +42,6 @@
3942
--table-border-color: #999;
4043
/* Highlight color for active search tag target */
4144
--search-tag-highlight-color: #ffff00;
42-
/* Adjustments for icon and active background colors of copy-to-clipboard buttons */
43-
--copy-button-background-color-active: rgba(168, 168, 168, 0.3);
44-
/* Colors for invalid tag notifications */
45-
--invalid-tag-background-color: #ffe6e6;
4645
}
4746

4847
.title {

documentation/src/test/java/example/FirstCustomEngine.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public TestDescriptor discover(EngineDiscoveryRequest discoveryRequest, UniqueId
4848
return new EngineDescriptor(uniqueId, "First Custom Test Engine");
4949
}
5050

51+
//end::user_guide[]
52+
@SuppressWarnings("NullAway")
53+
//tag::user_guide[]
5154
@Override
5255
public void execute(ExecutionRequest request) {
5356
request.getEngineExecutionListener()

0 commit comments

Comments
 (0)