Skip to content

Instantly share code, notes, and snippets.

Created December 5, 2022 21:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
package org.yourorg.starter;
import org.junit.jupiter.api.Test;
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;
import static;
public class SomeRecipeTest implements RewriteTest {
public void defaults(RecipeSpec spec) {
spec.recipe(new SomeRecipe());
void example() {
package org.openrewrite;
import java.util.ArrayList;
import java.util.List;
public class A {
List<Integer> a = new ArrayList<>();
int foo() {
int a = 1 + 2, b = 3, c;
this.a =
.map(it -> it + 1)
return a;
@interface AnAnnotation {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment