Skip to content

Commit 4d3b0a5

Browse files
committed
Prune Release Notes for 5.5
Closes #1935
1 parent 571d90b commit 4d3b0a5

File tree

6 files changed

+53
-109
lines changed

6 files changed

+53
-109
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ authors as well as build tool and IDE vendors.
1515

1616
include::../link-attributes.adoc[]
1717

18-
include::release-notes-5.5.0-RC2.adoc[]
19-
20-
include::release-notes-5.5.0-RC1.adoc[]
21-
22-
include::release-notes-5.5.0-M1.adoc[]
18+
include::release-notes-5.5.0.adoc[]
2319

2420
include::release-notes-5.4.2.adoc[]
2521

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ No changes.
2121

2222
==== Bug Fixes
2323

24-
* Parameterized tests no longer throw an `ArrayStoreException` when creating human-readable
25-
test names.
24+
* Parameterized tests no longer throw an `ArrayStoreException` when creating
25+
human-readable display names.
2626

2727

2828
[[release-notes-5.4.2-junit-vintage]]
2929
=== JUnit Vintage
3030

3131
==== Bug Fixes
3232

33-
* Safeguard against `Runners` that only report tests as failed but not as started or
34-
finished such as Spock in case of failures during data-provider preparation.
33+
* Safeguard against a `Runner` that only reports tests as failed but not as started or
34+
finished, such as Spock in case of failures during data-provider preparation.

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

Lines changed: 0 additions & 37 deletions
This file was deleted.

documentation/src/docs/asciidoc/release-notes/release-notes-5.5.0-RC2.adoc

Lines changed: 0 additions & 39 deletions
This file was deleted.

documentation/src/docs/asciidoc/release-notes/release-notes-5.5.0-RC1.adoc renamed to documentation/src/docs/asciidoc/release-notes/release-notes-5.5.0.adoc

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
1-
[[release-notes-5.5.0-RC1]]
2-
== 5.5.0-RC1
1+
[[release-notes-5.5.0]]
2+
== 5.5.0
33

4-
*Date of Release:* June 6, 2019
4+
*Date of Release:* June 30, 2019
55

66
*Scope:*
77

88
* Declarative `@Timeout` support
99
* New `InvocationInterceptor` extension API
1010
* New `LifecycleMethodExecutionExceptionHandler` extension API
11-
* Additional Kotlin friendly assertions
11+
* Deprecation of script-based conditions (`@EnabledIf` and `@DisabledIf`)
12+
* Configurable test discovery implementation for `TestEngine` authors
1213
* Explicit Java module descriptors
13-
* Deprecation of script-based conditions (`@EnabledIf`/`@DisabledIf`)
14+
* Various minor improvements and bug fixes
1415

1516
For a complete list of all _closed_ issues and pull requests for this release, consult the
16-
link:{junit5-repo}+/milestone/37?closed=1+[5.5 RC1] milestone page in the JUnit repository
17+
link:{junit5-repo}+/milestone/34?closed=1+[5.5 M1],
18+
link:{junit5-repo}+/milestone/37?closed=1+[5.5 RC1],
19+
link:{junit5-repo}+/milestone/41?closed=1+[5.5 RC2], and
20+
link:{junit5-repo}+/milestone/40?closed=1+[5.4 GA] milestone pages in the JUnit repository
1721
on GitHub.
1822

1923

20-
[[release-notes-5.5.0-RC1-junit-platform]]
24+
[[release-notes-5.5.0-junit-platform]]
2125
=== JUnit Platform
2226

27+
==== New Features and Improvements
28+
29+
* Configurable test discovery implementation that can be reused by different test engines
30+
(see Javadoc of the `{junit-platform-engine-support-discovery}` package).
31+
* New `isFinal()` and `isNotFinal()` methods in `ModifierSupport`.
32+
2333
==== Bug Fixes
2434

2535
* A custom `ClassLoader` created for additional `--class-path` entries passed to the
@@ -37,13 +47,13 @@ on GitHub.
3747
meta-annotations on other repeatable annotations.
3848
* New `AnnotationSupport.findRepeatableAnnotations()` variant that accepts a
3949
`java.util.Optional<? extends AnnotatedElement>` argument.
40-
* Exceptions thrown by `TestExecutionListeners` no longer cause test execution to abort.
41-
Instead, they will be logged as warnings now.
50+
* An exception thrown by a `TestExecutionListener` no longer causes test execution to
51+
abort. Instead, such exceptions will be logged as warnings now.
4252
* New `MethodSource.from()` variant that accepts `String, String, Class<?>...` as
4353
arguments.
4454

4555

46-
[[release-notes-5.5.0-RC1-junit-jupiter]]
56+
[[release-notes-5.5.0-junit-jupiter]]
4757
=== JUnit Jupiter
4858

4959
==== Bug Fixes
@@ -52,31 +62,46 @@ on GitHub.
5262
an `OutOfMemoryError` if the executables in the dynamic tests retain references to
5363
objects consuming large amounts of memory. Technically speaking, JUnit Jupiter no longer
5464
retains references to instances of `DynamicTest` after they have been executed.
65+
* Extensions registered programmatically using `@RegisterExtension` on fields of test
66+
classes now work correctly for tests in contained `@Nested` test classes. Previously,
67+
such extensions were registered multiple times for each test method in `@Nested` classes.
5568

5669
==== Deprecations and Breaking Changes
5770

58-
* Script-based condition APIs and their supporting implementations are deprecated with
59-
the intent to remove them in JUnit Jupiter 5.6. Users should instead rely on a
60-
combination of other built-in conditions or create and use a custom implementation of
61-
`ExecutionCondition` to evaluate the same conditions.
71+
* Script-based condition APIs and their supporting implementations are deprecated with the
72+
intent to remove them in JUnit Jupiter 5.6. Users should instead rely on a combination
73+
of other built-in conditions or create and use a custom implementation of
74+
`ExecutionCondition` to support the same conditions.
6275

6376
==== New Features and Improvements
6477

6578
* Support for declarative timeouts using `@Timeout` or configuration parameters (see
66-
<<../user-guide/index.adoc#writing-tests-declarative-timeouts, User Guide>> for details)
79+
<<../user-guide/index.adoc#writing-tests-declarative-timeouts, User Guide>> for details).
80+
* The `JRE` enum used with `@EnabledOnJre` and `@DisabledOnJre` now supports Java 14.
81+
* Expected and actual values are now supplied for failed `boolean` assertions for enhanced
82+
IDE and reporting support -- for example, when `assertTrue()` or `assertFalse()` fails.
6783
* New overloaded variants of `Assertions.assertLinesMatch(...)` that accept a `String` or
6884
a `Supplier<String>` for a custom failure message.
6985
* Failure messages for `Assertions.assertLinesMatch(...)` now emit each expected and
7086
actual line in a dedicated line.
71-
* New Kotlin friendly `assertDoesNotThrow`, `assertTimeout`, and `assertTimeoutPreemptively`
72-
assertions have been added as top-level functions in the `org.junit.jupiter.api` package.
87+
* New Kotlin-friendly `assertDoesNotThrow()`, `assertTimeout()`, and
88+
`assertTimeoutPreemptively()` assertions have been added as top-level functions in the
89+
`org.junit.jupiter.api` package.
90+
* Parameterized tests now support implicit conversion from a `String` to the following
91+
`java.time` types: `Duration`, `Period`, `MonthDay`, `ZoneId`, and `ZoneOffset`.
92+
* `@ValueSource` now additionally supports literal values of type `boolean` for
93+
parameterized tests.
7394
* New `emptyValue` attribute in `@CsvSource` and `@CsvFileSource`.
7495
* Display names for test methods generated by the `ReplaceUnderscores`
7596
`DisplayNameGenerator` no longer include empty parentheses for test methods that do not
7697
declare any parameters.
7798
* New `junit.jupiter.displayname.generator.default` configuration parameter to set the
7899
default `DisplayNameGenerator` that will be used unless `@DisplayName` or
79100
`@DisplayNameGeneration` is present.
101+
* New `junit.jupiter.execution.parallel.mode.classes.default` configuration parameter
102+
allows to run top-level classes in parallel but their methods sequentially or vice versa
103+
(see <<../user-guide/index.adoc#writing-tests-parallel-execution, User Guide>> for
104+
details).
80105
* `MethodOrderer.Random` now generates a default random seed only once and prints it to
81106
the log in order to allow reproducible builds.
82107
* Methods ordered with `MethodOrderer.Random` now execute using the `SAME_THREAD`
@@ -89,24 +114,21 @@ on GitHub.
89114
* Private fields annotated with `@RegisterExtension` are no longer silently ignored.
90115
Instead the corresponding test class or test method will now fail with an exception
91116
informing the user of the configuration error.
92-
* All methods in the `TestWatcher` API are now interface `default` methods with empty
93-
implementations.
94117
* New `InvocationInterceptor` extension API (see
95118
<<../user-guide/index.adoc#extensions-intercepting-invocations, User Guide>> for
96119
details).
97120
* New `LifecycleMethodExecutionExceptionHandler` extension API for handling exceptions
98121
thrown during the execution of `@BeforeAll`, `@BeforeEach`, `@AfterEach`, and
99122
`@AfterAll` lifecycle methods (see
100123
<<../user-guide/index.adoc#extensions-exception-handling, User Guide>> for details).
124+
* All methods in the `TestWatcher` API are now interface `default` methods with empty
125+
implementations.
101126
* A custom test source for a `DynamicContainer` or `DynamicTest` may now be a method URI
102127
-- for example, `method:org.example.MyTestClass#myTestMethod()`.
103-
* New `junit.jupiter.execution.parallel.mode.classes.default` configuration parameter
104-
allows to run top-level classes in parallel but their methods sequentially or vice versa
105-
(see <<../user-guide/index.adoc#writing-tests-parallel-execution, User Guide>> for
106-
details).
128+
* A new `getOrDefault()` convenience method has been added to `ExtensionContext.Store`.
107129

108130

109-
[[release-notes-5.5.0-RC1-junit-vintage]]
131+
[[release-notes-5.5.0-junit-vintage]]
110132
=== JUnit Vintage
111133

112134
==== New Features and Improvements

documentation/src/test/java/example/interceptor/SwingEdtInterceptor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public class SwingEdtInterceptor implements InvocationInterceptor {
2727
public void interceptTestMethod(Invocation<Void> invocation,
2828
ReflectiveInvocationContext<Method> invocationContext,
2929
ExtensionContext extensionContext) throws Throwable {
30+
3031
AtomicReference<Throwable> throwable = new AtomicReference<>();
32+
3133
SwingUtilities.invokeAndWait(() -> {
3234
try {
3335
invocation.proceed();

0 commit comments

Comments
 (0)