Skip to content

Commit 2308620

Browse files
committed
Rename to org.junit.start
1 parent f542616 commit 2308620

File tree

19 files changed

+34
-34
lines changed

19 files changed

+34
-34
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ val vintageProjects by extra(listOf(
4343
dependencyProject(projects.junitVintageEngine)
4444
))
4545

46-
val mavenizedProjects by extra(listOf(dependencyProject(projects.junitOnramp)) + platformProjects + jupiterProjects + vintageProjects)
46+
val mavenizedProjects by extra(listOf(dependencyProject(projects.junitStart)) + platformProjects + jupiterProjects + vintageProjects)
4747
val modularProjects by extra(mavenizedProjects - setOf(dependencyProject(projects.junitPlatformConsoleStandalone)))
4848

4949
dependencies {

junit-onramp/src/main/java/org/junit/onramp/package-info.java

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

junit-platform-commons/src/main/java/org/junit/platform/commons/util/ExceptionUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@API(status = INTERNAL, since = "1.0")
4242
public final class ExceptionUtils {
4343

44-
private static final String JUNIT_ON_RAMP_PACKAGE_PREFIX = "org.junit.onramp.";
44+
private static final String JUNIT_START_PACKAGE_PREFIX = "org.junit.start.";
4545

4646
private static final String JUNIT_PLATFORM_LAUNCHER_PACKAGE_PREFIX = "org.junit.platform.launcher.";
4747

@@ -141,7 +141,7 @@ public static void pruneStackTrace(Throwable throwable, List<String> classNames)
141141
prunedStackTrace.addAll(stackTrace.subList(i, stackTrace.size()));
142142
break;
143143
}
144-
else if (className.startsWith(JUNIT_ON_RAMP_PACKAGE_PREFIX)) {
144+
else if (className.startsWith(JUNIT_START_PACKAGE_PREFIX)) {
145145
prunedStackTrace.clear();
146146
}
147147
else if (className.startsWith(JUNIT_PLATFORM_LAUNCHER_PACKAGE_PREFIX)) {

junit-platform-console/src/main/java/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
requires org.junit.platform.launcher;
2525
requires org.junit.platform.reporting;
2626

27-
exports org.junit.platform.console.output to org.junit.onramp;
27+
exports org.junit.platform.console.output to org.junit.start;
2828

2929
provides java.util.spi.ToolProvider with org.junit.platform.console.ConsoleLauncherToolProvider;
3030
}

junit-onramp/junit-onramp.gradle.kts renamed to junit-start/junit-start.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id("junitbuild.java-library-conventions")
33
}
44

5-
description = "JUnit On-Ramp Module"
5+
description = "JUnit Start Module"
66

77
dependencies {
88
api(platform(projects.junitBom))

junit-onramp/src/main/java/module-info.java renamed to junit-start/src/main/java/module-info.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
*/
1010

1111
/**
12-
* Defines the API of the JUnit On-Ramp module for writing and running tests.
12+
* Defines the API of the JUnit Start module for writing and running tests.
1313
* <p>
1414
* Usage example:
1515
* <pre>{@code
16-
* import module org.junit.onramp;
16+
* import module org.junit.start;
1717
*
1818
* void main() {
1919
* JUnit.run();
@@ -25,13 +25,13 @@
2525
* }
2626
* }</pre>
2727
*/
28-
module org.junit.onramp {
28+
module org.junit.start {
2929
requires static transitive org.apiguardian.api;
3030
requires static transitive org.jspecify;
3131

3232
requires transitive org.junit.jupiter;
3333
requires org.junit.platform.launcher;
3434
requires org.junit.platform.console;
3535

36-
exports org.junit.onramp;
36+
exports org.junit.start;
3737
}

junit-onramp/src/main/java/org/junit/onramp/JUnit.java renamed to junit-start/src/main/java/org/junit/start/JUnit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://www.eclipse.org/legal/epl-v20.html
99
*/
1010

11-
package org.junit.onramp;
11+
package org.junit.start;
1212

1313
import static java.lang.StackWalker.Option.RETAIN_CLASS_REFERENCE;
1414
import static org.apiguardian.api.API.Status.EXPERIMENTAL;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Contains JUnit Start API for writing and running tests.
3+
*/
4+
5+
@NullMarked
6+
package org.junit.start;
7+
8+
import org.jspecify.annotations.NullMarked;

platform-tooling-support-tests/platform-tooling-support-tests.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ javaLibrary {
2020
spotless {
2121
java {
2222
target(files(project.java.sourceSets.map { it.allJava }), "projects/**/*.java")
23-
targetExclude("projects/junit-onramp/**/*.java") // due to compact source files and module imports
23+
targetExclude("projects/junit-start/**/*.java") // due to compact source files and module imports
2424
}
2525
kotlin {
2626
target("projects/**/*.kt")

platform-tooling-support-tests/projects/jar-describe-module/junit-onramp.expected.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
org.junit.onramp@${version} jar:file:.+/junit-onramp-\d.+\.jar..module-info\.class
2-
exports org.junit.onramp
1+
org.junit.start@${version} jar:file:.+/junit-start-\d.+\.jar..module-info\.class
2+
exports org.junit.start
33
requires java.base mandated
44
requires org.apiguardian.api static transitive
55
requires org.jspecify static transitive

0 commit comments

Comments
 (0)