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 Apr 14, 2024
1 parent d2e6e8a commit 2cac1cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import static org.openrewrite.java.Assertions.srcMainResources;
import static org.openrewrite.xml.Assertions.xml;

public class MigrateStruts6ConstantsTest implements RewriteTest {
class MigrateStruts6ConstantsTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@
package org.openrewrite.java.struts;

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

import static org.openrewrite.xml.Assertions.xml;

public class MigrateStrutsDtdTest implements RewriteTest {
class MigrateStrutsDtdTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
spec.recipe(new MigrateStrutsDtd("6.0"));
}

@DocumentExample
@Test
void updateStrutsDtdFrom2_5To6() {
rewriteRun(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static org.openrewrite.java.Assertions.srcMainResources;
import static org.openrewrite.xml.Assertions.xml;

public class FindStrutsActionTest implements RewriteTest {
class FindStrutsActionTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import static org.openrewrite.xml.Assertions.xml;

@SuppressWarnings("TrailingWhitespacesInTextBlock")
public class HelloWorldStrutsTest implements RewriteTest {
class HelloWorldStrutsTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
Expand Down

0 comments on commit 2cac1cb

Please sign in to comment.