File tree 2 files changed +19
-0
lines changed
documentation/src/docs/asciidoc/release-notes
junit-platform-launcher/src/main/java/org/junit/platform/launcher
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ repository on GitHub.
63
63
- `LegacyReportingUtils` class
64
64
- `TestPlan.add(TestIdentifier)`, `TestPlan.getChildren(String)`, and
65
65
`TestPlan.getTestIdentifier(String)` methods
66
+ - `TestPlan.add(TestIdentifier)` and `TestPlan.getChildren(String)` methods
66
67
- `@UseTechnicalNames` annotation
67
68
- `EngineTestKit.execute(String, EngineDiscoveryRequest)`,
68
69
`EngineTestKit.execute(TestEngine, EngineDiscoveryRequest)`, and
Original file line number Diff line number Diff line change 13
13
import static java .util .Collections .emptySet ;
14
14
import static java .util .Collections .synchronizedSet ;
15
15
import static java .util .Collections .unmodifiableSet ;
16
+ import static org .apiguardian .api .API .Status .DEPRECATED ;
16
17
import static org .apiguardian .api .API .Status .EXPERIMENTAL ;
17
18
import static org .apiguardian .api .API .Status .INTERNAL ;
18
19
import static org .apiguardian .api .API .Status .MAINTAINED ;
@@ -172,6 +173,23 @@ public Set<TestIdentifier> getChildren(UniqueId parentId) {
172
173
return children .containsKey (parentId ) ? unmodifiableSet (children .get (parentId )) : emptySet ();
173
174
}
174
175
176
+ /**
177
+ * Get the {@link TestIdentifier} with the supplied unique ID.
178
+ *
179
+ * @param uniqueId the unique ID to look up the identifier for; never
180
+ * {@code null} or blank
181
+ * @return the identifier with the supplied unique ID; never {@code null}
182
+ * @throws PreconditionViolationException if no {@code TestIdentifier}
183
+ * with the supplied unique ID is present in this test plan
184
+ * @deprecated Use {@link #getTestIdentifier(UniqueId)}
185
+ */
186
+ @ API (status = DEPRECATED , since = "1.10" , consumers = "Gradle" )
187
+ @ Deprecated
188
+ public TestIdentifier getTestIdentifier (String uniqueId ) throws PreconditionViolationException {
189
+ Preconditions .notBlank (uniqueId , "unique ID must not be null or blank" );
190
+ return getTestIdentifier (UniqueId .parse (uniqueId ));
191
+ }
192
+
175
193
/**
176
194
* Get the {@link TestIdentifier} with the supplied unique ID.
177
195
*
You can’t perform that action at this time.
0 commit comments