Skip to content

Commit 21c24ae

Browse files
committed
Polishing
1 parent e2f5a43 commit 21c24ae

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private static List<String> compile(Path temp, Writer out, Writer err) throws Ex
122122
}
123123

124124
private static void junit(Path temp) throws Exception {
125-
var projectDir = Path.of("../documentation");
125+
var projectDir = Path.of("../documentation").toAbsolutePath();
126126

127127
var result = ProcessStarters.java() //
128128
.workingDir(projectDir) //
@@ -133,8 +133,7 @@ private static void junit(Path temp) throws Exception {
133133
temp.resolve("lib").toString() //
134134
)) //
135135
.addArguments("--add-modules", "documentation") //
136-
.addArguments("--patch-module",
137-
"documentation=" + projectDir.resolve("src/test/resources").toAbsolutePath()) //
136+
.addArguments("--patch-module", "documentation=" + projectDir.resolve("src/test/resources")) //
138137
.addArguments("--module", "org.junit.platform.console") //
139138
.addArguments("execute") //
140139
.addArguments("--scan-modules") //

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ToolProviderTests {
5757
@BeforeAll
5858
static void prepareLocalLibraryDirectoryWithJUnitPlatformModules() {
5959
try {
60-
var lib = Files.createDirectories(ToolProviderTests.lib);
60+
Files.createDirectories(lib);
6161
try (var directoryStream = Files.newDirectoryStream(lib, "*.jar")) {
6262
for (Path jarFile : directoryStream) {
6363
Files.delete(jarFile);

0 commit comments

Comments
 (0)