diff --git a/kubernetes-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/build/ResourceMojoTest.java b/kubernetes-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/build/ResourceMojoTest.java index 3f05436ba8..1cc84f473c 100644 --- a/kubernetes-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/build/ResourceMojoTest.java +++ b/kubernetes-maven-plugin/plugin/src/test/java/org/eclipse/jkube/maven/plugin/mojo/build/ResourceMojoTest.java @@ -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); } @@ -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);