From 74af2bb78af42a300292c51f9884c58f1b599f5b Mon Sep 17 00:00:00 2001 From: gounthar Date: Tue, 29 Oct 2024 18:38:24 +0100 Subject: [PATCH] fix(jelly): Fix DocumentExample content to match the test. --- .../jenkins/AddJellyXmlDeclarationTest.java | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/openrewrite/jenkins/AddJellyXmlDeclarationTest.java b/src/test/java/org/openrewrite/jenkins/AddJellyXmlDeclarationTest.java index 644a3b3..9f5876c 100644 --- a/src/test/java/org/openrewrite/jenkins/AddJellyXmlDeclarationTest.java +++ b/src/test/java/org/openrewrite/jenkins/AddJellyXmlDeclarationTest.java @@ -49,14 +49,33 @@ public void defaults(RecipeSpec spec) { /** * Test to verify that the XML declaration is added to a simple Jelly file. */ - @DocumentExample("\n\n\n") + @DocumentExample( + "Input:\n" + + "\n" + + "

Simple Example

\n" + + "
\n\n" + + "Output:\n" + + "\n" + + "\n" + + "

Simple Example

\n" + + "
" + ) @Test void addJellyXmlDeclaration() { rewriteRun( spec -> spec.expectedCyclesThatMakeChanges(1), text( - "\n

Simple Example

\n
", - "\n\n

Simple Example

\n
", + """ + +

Simple Example

+
+ """, + """ + + +

Simple Example

+
+ """, spec -> spec.path("example.jelly") ) );