Skip to content

Commit f912b00

Browse files
committed
Revert "Add JUnitStartTests.java to documentation project"
This reverts commit 49bf8ea.
1 parent 49bf8ea commit f912b00

File tree

3 files changed

+1
-31
lines changed

3 files changed

+1
-31
lines changed

documentation/documentation.gradle.kts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ modularProjects.forEach { evaluationDependsOn(it.path) }
2828

2929
javaLibrary {
3030
mainJavaVersion = JavaVersion.VERSION_17
31-
testJavaVersion = JavaVersion.VERSION_25
32-
}
33-
34-
spotless {
35-
java {
36-
targetExclude("src/test/java/JUnitStartTests.java") // due to compact source files and module imports
37-
}
31+
testJavaVersion = JavaVersion.VERSION_17
3832
}
3933

4034
val apiReport = configurations.dependencyScope("apiReport")
@@ -74,7 +68,6 @@ dependencies {
7468
testImplementation(projects.junitPlatformConsole)
7569
testImplementation(projects.junitPlatformSuite)
7670
testImplementation(projects.junitPlatformTestkit)
77-
testImplementation(projects.junitStart)
7871
testImplementation(projects.junitVintageEngine)
7972
testImplementation(kotlin("stdlib"))
8073
testRuntimeOnly(libs.kotlinx.coroutines)

documentation/src/test/java/JUnitStartTests.java

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

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class ModularUserGuideTests {
4848
open module documentation {
4949
exports example.testkit; // just here to ensure documentation example sources are compiled
5050
51-
requires org.junit.start;
5251
requires org.junit.jupiter.api;
5352
requires org.junit.jupiter.migrationsupport;
5453
requires org.junit.jupiter.params;
@@ -103,8 +102,6 @@ private static List<String> compile(Path temp, Writer out, Writer err) throws Ex
103102
.filter(s -> s.endsWith(".java")) //
104103
// TypeError: systemProperty.get is not a function ?!?!
105104
.filter(s -> !s.endsWith("ConditionalTestExecutionDemo.java")) //
106-
// InvalidModuleDescriptorException: Unnamed package not allowed in module
107-
.filter(s -> !s.endsWith("JUnitStartTests.java")) //
108105
// Don't include command-line tools that "require io.github.classgraph"
109106
.filter(s -> !s.contains("tools")).forEach(args::add);
110107
}

0 commit comments

Comments
 (0)