Skip to content

Commit

Permalink
refactor: Automatically select recipe examples from the unit test cas…
Browse files Browse the repository at this point in the history
…es of a recipe (#7)

Issue #4

Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.SelectRecipeExamples

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
sghill-rewrite and TeamModerne authored Jul 8, 2023
1 parent 594a4a3 commit 20565ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.openrewrite.jenkins;

import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;

Expand All @@ -26,7 +27,8 @@ public class UpgradeVersionPropertyTest implements RewriteTest {
public void defaults(RecipeSpec spec) {
spec.recipe(new UpgradeVersionProperty("jenkins.version", "2.364.1"));
}


@DocumentExample
@Test
void shouldUpgrade() {
rewriteRun(pomXml(
Expand Down

0 comments on commit 20565ff

Please sign in to comment.