Skip to content

Commit 91bbd4d

Browse files
refactor: Automatically select recipe examples from the unit test cases of a recipe
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.SelectRecipeExamples?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne <[email protected]>
1 parent 50bd494 commit 91bbd4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/org/openrewrite/java/testing/hamcrest/HamcrestNotMatcherToAssertJTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.openrewrite.java.testing.hamcrest;
1717

1818
import org.junit.jupiter.api.Test;
19+
import org.openrewrite.DocumentExample;
1920
import org.openrewrite.InMemoryExecutionContext;
2021
import org.openrewrite.java.JavaParser;
2122
import org.openrewrite.test.RecipeSpec;
@@ -34,6 +35,7 @@ public void defaults(RecipeSpec spec) {
3435
"assertj-core-3.24"));
3536
}
3637

38+
@DocumentExample
3739
@Test
3840
void notMatcher() {
3941
rewriteRun(

0 commit comments

Comments
 (0)