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
  • Loading branch information
timtebeek and TeamModerne committed Jul 8, 2023
1 parent c29537c commit f26901c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.openrewrite.java.migrate.lang;

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

Expand All @@ -30,6 +31,7 @@ public void defaults(RecipeSpec spec) {
spec.recipe(new RemoveThreadDestroyMethod());//.allSources(s -> s.markers(javaVersion(8)));
}

@DocumentExample
@Test
void removeDestroyCall() {
//language=java
Expand Down

0 comments on commit f26901c

Please sign in to comment.