Skip to content

Commit

Permalink
test: ResourceMojoTest works on windows (3152)
Browse files Browse the repository at this point in the history
Issue: 3139 ResourceMojoTest is failing on windows
  • Loading branch information
Jeevananthammoorthy authored Jun 10, 2024
1 parent bf46ef4 commit b6e586b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void execute_generatesResourcesAndAttachesArtifact() throws Exception {
final File generatedArtifact = new File(resourceMojo.targetDir, "kubernetes.yml");
assertThat(generatedArtifact)
.exists()
.content().isEqualTo("---\napiVersion: v1\nkind: List\n");
.content().isEqualTo(String.format("---%napiVersion: v1%nkind: List%n"));
verify(resourceMojo.projectHelper, times(1))
.attachArtifact(resourceMojo.project, "yml", "kubernetes", generatedArtifact);
}
Expand All @@ -116,7 +116,7 @@ void execute_writeResourcesFirstThenValidatesThem() throws Exception {
final File generatedArtifact = new File(resourceMojo.targetDir, "kubernetes.yml");
assertThat(generatedArtifact)
.exists()
.content().isEqualTo("---\napiVersion: v1\nkind: List\n");
.content().isEqualTo(String.format("---%napiVersion: v1%nkind: List%n"));
verify(resourceMojo.projectHelper, times(1))
.attachArtifact(resourceMojo.project, "yml", "kubernetes", generatedArtifact);
InOrder inOrder = inOrder(kitLogger);
Expand Down

0 comments on commit b6e586b

Please sign in to comment.