GeezerVison is showing github.com — Deprecate @UseTechnicalNames · junit-team/junit-framework@155a25f
File tree
Expand file treeCollapse file tree
Open diff view settings
documentation/src/docs/asciidoc junit-platform-runner/src/main/java/org/junit/platform/runner junit-platform-suite-api/src/main/java/org/junit/platform/suite/api
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: documentation/src/docs/asciidoc/release-notes/release-notes-5.8.1.adoc +4-1Lines changed: 4 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,10 @@ GitHub. |
19 | 19 |
|
20 | 20 | ==== Deprecations and Breaking Changes |
21 | 21 |
|
22 | | -* ❓ |
| 22 | +* `@UseTechnicalNames` has been deprecated in favor of the new `@Suite` support which does |
| 23 | + not require the use of technical names. See the warning in |
| 24 | + <<../user-guide/index.adoc#running-tests-junit-platform-runner, Using JUnit 4 to run the |
| 25 | + JUnit Platform>> for details. |
23 | 26 |
|
24 | 27 | ==== New Features and Improvements |
25 | 28 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: documentation/src/docs/asciidoc/user-guide/running-tests.adoc +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -617,8 +617,8 @@ In addition, the introduction of `@Suite` support provided by the |
617 | 617 | `junit-platform-suite-engine` module makes the `JUnitPlatform` runner obsolete. See |
618 | 618 | <<junit-platform-suite-engine>> for details. |
619 | 619 |
|
620 | | -The `JUnitPlatform` runner has therefore been deprecated in JUnit Platform 1.8 and will be |
621 | | -removed in JUnit Platform 2.0. |
| 620 | +The `JUnitPlatform` runner and `@UseTechnicalNames` annotation have therefore been |
| 621 | +deprecated in JUnit Platform 1.8 and will be removed in JUnit Platform 2.0. |
622 | 622 |
|
623 | 623 | If you are using the `JUnitPlatform` runner, please migrate to the `@Suite` support. |
624 | 624 | ==== |
|
Collapse file
Copy file name to clipboardExpand all lines: junit-platform-runner/src/main/java/org/junit/platform/runner/JUnitPlatform.java +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
47 | 47 | import org.junit.platform.suite.api.SelectUris; |
48 | 48 | import org.junit.platform.suite.api.Suite; |
49 | 49 | import org.junit.platform.suite.api.SuiteDisplayName; |
50 | | -import org.junit.platform.suite.api.UseTechnicalNames; |
51 | 50 | import org.junit.platform.suite.commons.SuiteLauncherDiscoveryRequestBuilder; |
52 | 51 | import org.junit.runner.Description; |
53 | 52 | import org.junit.runner.Runner; |
|
104 | 103 | * @see IncludeTags |
105 | 104 | * @see ExcludeTags |
106 | 105 | * @see SuiteDisplayName |
107 | | - * @see UseTechnicalNames |
| 106 | + * @see org.junit.platform.suite.api.UseTechnicalNames UseTechnicalNames |
108 | 107 | * @see ConfigurationParameter |
109 | 108 | * @deprecated since 1.8, in favor of the {@link Suite @Suite} support provided by |
110 | 109 | * the {@code junit-platform-suite-engine} module; to be removed in JUnit Platform 2.0 |
|
Collapse file
Copy file name to clipboardExpand all lines: junit-platform-runner/src/main/java/org/junit/platform/runner/JUnitPlatformTestTree.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
30 | 30 | import org.junit.platform.launcher.TestIdentifier; |
31 | 31 | import org.junit.platform.launcher.TestPlan; |
32 | 32 | import org.junit.platform.suite.api.SuiteDisplayName; |
33 | | -import org.junit.platform.suite.api.UseTechnicalNames; |
34 | 33 | import org.junit.runner.Description; |
35 | 34 | import org.junit.runner.manipulation.Filter; |
36 | 35 |
|
@@ -54,8 +53,9 @@ public TestPlan getTestPlan() { |
54 | 53 | return testPlan; |
55 | 54 | } |
56 | 55 |
|
| 56 | + @SuppressWarnings("deprecation") |
57 | 57 | private static boolean useTechnicalNames(Class<?> testClass) { |
58 | | - return testClass.isAnnotationPresent(UseTechnicalNames.class); |
| 58 | + return testClass.isAnnotationPresent(org.junit.platform.suite.api.UseTechnicalNames.class); |
59 | 59 | } |
60 | 60 |
|
61 | 61 | Description getSuiteDescription() { |
|
Collapse file
Copy file name to clipboardExpand all lines: junit-platform-suite-api/src/main/java/org/junit/platform/suite/api/UseTechnicalNames.java +5-2Lines changed: 5 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 |
|
11 | 11 | package org.junit.platform.suite.api; |
12 | 12 |
|
13 | | -import static org.apiguardian.api.API.Status.MAINTAINED; |
| 13 | +import static org.apiguardian.api.API.Status.DEPRECATED; |
14 | 14 |
|
15 | 15 | import java.lang.annotation.Documented; |
16 | 16 | import java.lang.annotation.ElementType; |
|
43 | 43 | * |
44 | 44 | * @since 1.0 |
45 | 45 | * @see org.junit.platform.runner.JUnitPlatform |
| 46 | + * @deprecated since 1.8, in favor of the {@link Suite @Suite} support provided by |
| 47 | + * the {@code junit-platform-suite-engine} module; to be removed in JUnit Platform 2.0 |
46 | 48 | */ |
47 | 49 | @Retention(RetentionPolicy.RUNTIME) |
48 | 50 | @Target(ElementType.TYPE) |
49 | 51 | @Inherited |
50 | 52 | @Documented |
51 | | -@API(status = MAINTAINED, since = "1.0") |
| 53 | +@API(status = DEPRECATED, since = "1.8") |
| 54 | +@Deprecated |
52 | 55 | public @interface UseTechnicalNames { |
53 | 56 | } |