From 8e8986545b51541417ddf2b659e5a61f167912b1 Mon Sep 17 00:00:00 2001 From: Christoph Pirkl Date: Fri, 8 Mar 2024 13:07:29 +0100 Subject: [PATCH] Fix tests for Windows --- .../githuboutput/GitHubWorkflowOutputPublisherTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project-keeper/src/test/java/com/exasol/projectkeeper/githuboutput/GitHubWorkflowOutputPublisherTest.java b/project-keeper/src/test/java/com/exasol/projectkeeper/githuboutput/GitHubWorkflowOutputPublisherTest.java index 5fd5521b..4024714a 100644 --- a/project-keeper/src/test/java/com/exasol/projectkeeper/githuboutput/GitHubWorkflowOutputPublisherTest.java +++ b/project-keeper/src/test/java/com/exasol/projectkeeper/githuboutput/GitHubWorkflowOutputPublisherTest.java @@ -105,10 +105,10 @@ void releaseArtifactsMultipleArtifact() { publish(ProjectKeeperConfig.builder(), ChangesFile.builder(), AnalyzedMavenSource.builder().releaseArtifactName("my-project1.jar").isRootProject(true).build(), AnalyzedMavenSource.builder().releaseArtifactName("my-project2.jar").build()); - verify(publisherMock).publish("release-artifacts", """ - $project-dir/target/my-project1.jar - $project-dir/target/my-project2.jar - $project-dir/target/error_code_report.json""".replace("$project-dir", projectDir.toString())); + verify(publisherMock).publish("release-artifacts", + projectDir.resolve("target/my-project1.jar").toString() + "\n" + + projectDir.resolve("target/my-project2.jar").toString() + "\n" + + projectDir.resolve("target/error_code_report.json").toString()); } @Test