Skip to content

Commit

Permalink
refactor: OpenRewrite best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Mar 14, 2024
1 parent 20216fa commit 0648a33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import static org.openrewrite.java.Assertions.java;

public class ConstantFoldTest implements RewriteTest {
class ConstantFoldTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
Expand All @@ -51,7 +51,7 @@ public Expression visitExpression(Expression expression, P p) {
}

@Test
public void constantFoldSingleElementString() {
void constantFoldSingleElementString() {
rewriteRun(
java(
"""
Expand Down Expand Up @@ -84,7 +84,7 @@ void any(Object arg) {

@Test
@DocumentExample
public void constantFoldTagsElements() {
void constantFoldTagsElements() {
rewriteRun(
java(
"""
Expand Down Expand Up @@ -122,7 +122,7 @@ void any(Object arg) {
}

@Test
public void constantFoldTagsArray() {
void constantFoldTagsArray() {
rewriteRun(
java(
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.openrewrite.java.Assertions.java;

public class CursorUtilTest implements RewriteTest {
class CursorUtilTest implements RewriteTest {

private static final class FindCursorForTreeTestVisitor extends JavaVisitor<ExecutionContext> {

Expand All @@ -45,7 +45,7 @@ public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext execu
}

@Test
public void findCursorForTreeTest() {
void findCursorForTreeTest() {
rewriteRun(
spec -> spec.recipe(RewriteTest.toRecipe(FindCursorForTreeTestVisitor::new)),
java(
Expand Down

0 comments on commit 0648a33

Please sign in to comment.