@@ -13,105 +13,5 @@ link:{junit-framework-repo}+/milestone/108?closed=1+[5.14.0-RC1] and
1313link:{junit-framework-repo}+/milestone/109?closed=1+[5.14.0] milestone pages in the JUnit
1414repository on GitHub.
1515
16- [TIP]
17- .Migration Guide
18- ====
19- Please refer to the
20- https://github.com/junit-team/junit-framework/wiki/Upgrading-to-JUnit-5.14[wiki] for
21- guidance on upgrading to JUnit 5.14.
22- ====
23-
24-
25- [[release-notes-5.14.0-junit-platform]]
26- === JUnit Platform
27-
28- [[release-notes-5.14.0-junit-platform-bug-fixes]]
29- ==== Bug Fixes
30-
31- * The `Launcher` (specifically `LauncherDiscoveryResult`) now retains the original
32- `TestEngine` registration order after pruning test engines without tests, thereby
33- ensuring reliable test execution order of multiple test engines.
34-
35- [[release-notes-5.14.0-junit-platform-deprecations-and-breaking-changes]]
36- ==== Deprecations and Breaking Changes
37-
38- * Deprecate `OutputDirectoryProvider` interface in favor of the new
39- `OutputDirectoryCreator` interface to resolve a cyclic package dependency along
40- with the following APIs (which all have replacements working with
41- `OutputDirectoryCreator`):
42- - `EngineDiscoveryRequest.getOutputDirectoryProvider()`
43- - `ExecutionRequest.getOutputDirectoryProvider()`
44- - `LauncherDiscoveryRequestBuilder.outputDirectoryProvider(OutputDirectoryProvider)`
45- - `TestPlan.getOutputDirectoryProvider()`
46- - `EngineTestKit.Builder.outputDirectoryProvider(OutputDirectoryProvider)`
47- * Deprecate `org.junit.platform.commons.support.Resource` interface in favor of the new
48- `org.junit.platform.commons.io.Resource` interface.
49- * Deprecate `Resource`-related methods in `ReflectionSupport` in favor of corresponding
50- methods in the new `ResourceSupport` class:
51- - `findAllResourcesInClasspathRoot(URI, Predicate)`
52- - `findAllResourcesInModule(String, Predicate)`
53- - `findAllResourcesInPackage(String, Predicate)`
54- - `streamAllResourcesInClasspathRoot(URI, Predicate)`
55- - `streamAllResourcesInModule(String, Predicate)`
56- - `streamAllResourcesInPackage(String, Predicate)`
57- - `tryToGetResources(String)`
58- - `tryToGetResources(String, ClassLoader)`
59- * Deprecate `DiscoverySelectors.selectClasspathResource(Set)` method in favor of
60- `selectClasspathResourceByName(Set)`.
61- * Deprecate `ClasspathResourceSelector.getClasspathResources()` method in favor of
62- `getResources()`.
63- * Deprecate the
64- `EngineDiscoveryRequestResolver.Builder.addResourceContainerSelectorResolver(Predicate)`
65- method in favor of `addResourceContainerSelectorResolver(ResourceFilter)`.
66- * Deprecate `Resource`-related methods in `ClasspathScanner` in favor of new methods using
67- `org.junit.platform.commons.io.Resource` and `ResourceFilter`:
68- - `scanForResourcesInPackage(String, Predicate)`
69- - `scanForResourcesInClasspathRoot(URI, Predicate)`
70-
71- [[release-notes-5.14.0-junit-platform-new-features-and-improvements]]
72- ==== New Features and Improvements
73-
74- * Emit discovery warning when `@SuiteDisplayName` is used with a blank string.
75- * To help diagnosing potentially invalid invocations, the Console Launcher now logs
76- warnings for nonexistent classpath roots added via `--classpath` or `--scan-classpath`
77- rather than silently ignoring them.
78- * New `FileSource.withPosition(FilePosition)` method to avoid the overhead of redundant
79- canonicalization of files when using `FileSource.from(File, FilePosition)` with many
80- different `FilePosition` instances for the same `File`.
81- * New classpath resource abstraction in `org.junit.platform.commons.io.Resource` with
82- support for loading resources or finding them on the classpath via static utility
83- methods in the new `org.junit.platform.commons.support.ResourceSupport` class.
84-
85-
86- [[release-notes-5.14.0-junit-jupiter]]
87- === JUnit Jupiter
88-
89- [[release-notes-5.14.0-junit-jupiter-deprecations-and-breaking-changes]]
90- ==== Deprecations and Breaking Changes
91-
92- * `MediaType.APPLICATION_JSON_UTF_8` is now deprecated in favor of using
93- `MediaType.APPLICATION_JSON`, since the industry considers UTF-8 to be the implicit
94- default encoding for the `application/json` media type.
95- * `org.junit.jupiter.api.extension.MediaType` is now deprecated in favor of the new
96- `org.junit.jupiter.api.MediaType`.
97- * The `publishFile(...)` methods in `TestReporter` which accept an
98- `org.junit.jupiter.api.extension.MediaType` are now deprecated in favor of new variants
99- which accept an `org.junit.jupiter.api.MediaType`.
100- * The `publishFile(...)` method in `ExtensionContext` which accepts an
101- `org.junit.jupiter.api.extension.MediaType` is now deprecated in favor of a new variant
102- which accepts an `org.junit.jupiter.api.MediaType`.
103- * `org.junit.jupiter.params.support.ParameterInfo` is now deprecated in favor of the new
104- `org.junit.jupiter.params.ParameterInfo`.
105-
106- [[release-notes-5.14.0-junit-jupiter-new-features-and-improvements]]
107- ==== New Features and Improvements
108-
109- * `MediaType` now trims leading and trailing whitespace from a supplied `value`, `type`,
110- or `subtype`.
111- * `MediaType` now eagerly rejects a _blank_ `value`, `type`, or `subtype`.
112-
113-
114- [[release-notes-5.14.0-junit-vintage]]
115- === JUnit Vintage
116-
117- No changes.
16+ For complete details consult the
17+ https://docs.junit.org/5.14.0/release-notes/[5.14.0 Release Notes] online.
0 commit comments