File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/test/java/org/openrewrite/rewrite Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1616package org .openrewrite .rewrite ;
1717
1818import org .junit .jupiter .api .Test ;
19+ import org .openrewrite .DocumentExample ;
1920import org .openrewrite .marker .SearchResult ;
2021import org .openrewrite .test .RecipeSpec ;
2122import org .openrewrite .test .RewriteTest ;
2223
2324import static org .openrewrite .java .Assertions .java ;
2425import static org .openrewrite .yaml .Assertions .yaml ;
2526
26- public class RecipeTest implements RewriteTest {
27+ class RecipeTest implements RewriteTest {
2728
2829 @ Override
2930 public void defaults (RecipeSpec spec ) {
3031 spec .recipe (RewriteTest .toRecipe (() -> new Recipe .Matcher ().asVisitor (recipe ->
3132 SearchResult .found (recipe .getTree (), recipe .getDisplayName () + "=" + recipe .getDescription ()))));
3233 }
3334
34- @ Test
35- void classDefinedRecipe () {
35+ @ DocumentExample
36+ @ Test
37+ void classDefinedRecipe () {
3638 rewriteRun (
3739 //language=java
3840 java (
You can’t perform that action at this time.
0 commit comments