Skip to content

Commit 69184c6

Browse files
committed
Move release note entry for #4983
1 parent de0b8d6 commit 69184c6

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.14.0-RC1.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,29 @@ repository on GitHub.
3232
- `LauncherDiscoveryRequestBuilder.outputDirectoryProvider(OutputDirectoryProvider)`
3333
- `TestPlan.getOutputDirectoryProvider()`
3434
- `EngineTestKit.Builder.outputDirectoryProvider(OutputDirectoryProvider)`
35+
* Deprecate `org.junit.platform.commons.support.Resource` interface in favor of the new
36+
`org.junit.platform.commons.io.Resource` one.
37+
* Deprecate `Resource`-related methods in `ReflectionSupport` in favor of corresponding
38+
methods in new `ResourceSupport` class:
39+
- `findAllResourcesInClasspathRoot(URI, Predicate)`
40+
- `findAllResourcesInModule(String, Predicate)`
41+
- `findAllResourcesInPackage(String, Predicate)`
42+
- `streamAllResourcesInClasspathRoot(URI, Predicate)`
43+
- `streamAllResourcesInModule(String, Predicate)`
44+
- `streamAllResourcesInPackage(String, Predicate)`
45+
- `tryToGetResources(String)`
46+
- `tryToGetResources(String, ClassLoader)`
47+
* Deprecate `DiscoverySelectors.selectClasspathResource(Set)` method in favor of
48+
`selectClasspathResourceByName(Set)`.
49+
* Deprecate `ClasspathResourceSelector.getClasspathResources()` method in favor of
50+
`getResources()`.
51+
* Deprecate
52+
`EngineDiscoveryRequestResolver.Builder.addResourceContainerSelectorResolver(Predicate)`
53+
method in favor of `addResourceContainerSelectorResolver(ResourceFilter)`.
54+
* Deprecate `Resource`-related methods in `ClasspathScanner` in favor of new methods using
55+
`org.junit.platform.commons.io.Resource` and `ResourceFilter`:
56+
- `scanForResourcesInPackage(String, Predicate)`
57+
- `scanForResourcesInClasspathRoot(URI, Predicate)`
3558

3659
[[release-notes-5.14.0-RC1-junit-platform-new-features-and-improvements]]
3760
==== New Features and Improvements
@@ -43,6 +66,9 @@ repository on GitHub.
4366
* New `FileSource.withPosition(FilePosition)` method to avoid the overhead of redundant
4467
canonicalization of files when using `FileSource.from(File, FilePosition)` with many
4568
different `FilePosition` instances for the same `File`.
69+
* New classpath resource abstraction in `org.junit.platform.commons.io.Resource` with
70+
support for loading resources or finding them on the classpath via static utility
71+
methods in the new `org.junit.platform.commons.support.ResourceSupport` class.
4672

4773

4874
[[release-notes-5.14.0-RC1-junit-jupiter]]

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -122,29 +122,6 @@ guidance on upgrading from JUnit 5.x.y to 6.0.0.
122122
deterministic but intentionally nonobvious way.
123123
* Serialization support for `TestIdentifier` has been changed in a backwards-incompatible
124124
way in order to simplify the implementation.
125-
* Deprecate `org.junit.platform.commons.support.Resource` interface in favor of the new
126-
`org.junit.platform.commons.io.Resource` one.
127-
* Deprecate `Resource`-related methods in `ReflectionSupport` in favor of corresponding
128-
methods in new `ResourceSupport` class:
129-
- `findAllResourcesInClasspathRoot(URI, Predicate)`
130-
- `findAllResourcesInModule(String, Predicate)`
131-
- `findAllResourcesInPackage(String, Predicate)`
132-
- `streamAllResourcesInClasspathRoot(URI, Predicate)`
133-
- `streamAllResourcesInModule(String, Predicate)`
134-
- `streamAllResourcesInPackage(String, Predicate)`
135-
- `tryToGetResources(String)`
136-
- `tryToGetResources(String, ClassLoader)`
137-
* Deprecate `DiscoverySelectors.selectClasspathResource(Set)` method in favor of
138-
`selectClasspathResourceByName(Set)`.
139-
* Deprecate `ClasspathResourceSelector.getClasspathResources()` method in favor of
140-
`getResources()`.
141-
* Deprecate
142-
`EngineDiscoveryRequestResolver.Builder.addResourceContainerSelectorResolver(Predicate)`
143-
method in favor of `addResourceContainerSelectorResolver(ResourceFilter)`.
144-
* Deprecate `Resource`-related methods in `ClasspathScanner` in favor of new methods using
145-
`org.junit.platform.commons.io.Resource` and `ResourceFilter`:
146-
- `scanForResourcesInPackage(String, Predicate)`
147-
- `scanForResourcesInClasspathRoot(URI, Predicate)`
148125

149126
[[release-notes-6.0.0-junit-platform-new-features-and-improvements]]
150127
==== New Features and Improvements
@@ -187,9 +164,6 @@ guidance on upgrading from JUnit 5.x.y to 6.0.0.
187164
* New `selectors(List)` builder method for `{EngineTestKit}` which can be used in
188165
conjunction with the new `selectClasses(...)` and `selectClassesByName(...)` factory
189166
methods in `DiscoverySelectors`.
190-
* New classpath resource abstraction in `org.junit.platform.commons.io.Resource` with
191-
support for loading resources or finding them on the classpath via static utility
192-
methods in the new `org.junit.platform.commons.support.ResourceSupport` class.
193167

194168

195169
[[release-notes-6.0.0-junit-jupiter]]

0 commit comments

Comments
 (0)