From 4c4b0b0c364541914a5734fe1b5755846fdbc312 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Sun, 11 Feb 2024 13:13:08 +0000 Subject: [PATCH] refactor: Remove public modifiers from RewriteTest classes Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.OpenRewriteBestPractices?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .../java/migrate/jakarta/EhcacheJavaxtoJakartaTest.java | 2 +- .../java/migrate/jakarta/FacesJNDINamesChangedTest.java | 2 +- .../java/migrate/jakarta/JohnzonJavaxtoJakartaTest.java | 2 +- .../migrate/jakarta/RemovedIsParmetersProvidedMethodTest.java | 2 +- .../RemovedJakartaFacesExpressionLanguageClassesTest.java | 2 +- .../jakarta/RemovedJakartaFacesResourceResolverTest.java | 2 +- .../java/migrate/jakarta/RemovedSOAPElementFactoryTest.java | 2 +- .../java/migrate/jakarta/RemovedStateManagerMethodsTest.java | 2 +- .../migrate/jakarta/ServletCookieBehaviorChangeRFC6265Test.java | 2 +- .../migrate/lang/var/UseVarForGenericMethodInvocationsTest.java | 2 +- .../migrate/lang/var/UseVarForGenericsConstructorsTest.java | 2 +- .../openrewrite/java/migrate/search/FindJavaVersionTest.java | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/EhcacheJavaxtoJakartaTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/EhcacheJavaxtoJakartaTest.java index bec89c0ea3..3adca67c3f 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/EhcacheJavaxtoJakartaTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/EhcacheJavaxtoJakartaTest.java @@ -23,7 +23,7 @@ import static org.openrewrite.maven.Assertions.pomXml; -public class EhcacheJavaxtoJakartaTest implements RewriteTest { +class EhcacheJavaxtoJakartaTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/FacesJNDINamesChangedTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/FacesJNDINamesChangedTest.java index 758866e8c9..fa150446e3 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/FacesJNDINamesChangedTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/FacesJNDINamesChangedTest.java @@ -23,7 +23,7 @@ import static org.openrewrite.xml.Assertions.xml; -public class FacesJNDINamesChangedTest implements RewriteTest { +class FacesJNDINamesChangedTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec.recipe( diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/JohnzonJavaxtoJakartaTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/JohnzonJavaxtoJakartaTest.java index 724a240ed3..296477a504 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/JohnzonJavaxtoJakartaTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/JohnzonJavaxtoJakartaTest.java @@ -26,7 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.openrewrite.maven.Assertions.pomXml; -public class JohnzonJavaxtoJakartaTest implements RewriteTest { +class JohnzonJavaxtoJakartaTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedIsParmetersProvidedMethodTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedIsParmetersProvidedMethodTest.java index 4c4935c580..96b46ecacb 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedIsParmetersProvidedMethodTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedIsParmetersProvidedMethodTest.java @@ -26,7 +26,7 @@ import static org.openrewrite.java.Assertions.java; -public class RemovedIsParmetersProvidedMethodTest implements RewriteTest { +class RemovedIsParmetersProvidedMethodTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesExpressionLanguageClassesTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesExpressionLanguageClassesTest.java index c068311c7d..5e08fa0344 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesExpressionLanguageClassesTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesExpressionLanguageClassesTest.java @@ -25,7 +25,7 @@ import static org.openrewrite.java.Assertions.java; -public class RemovedJakartaFacesExpressionLanguageClassesTest implements RewriteTest { +class RemovedJakartaFacesExpressionLanguageClassesTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesResourceResolverTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesResourceResolverTest.java index 5d1feae315..0b59754951 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesResourceResolverTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedJakartaFacesResourceResolverTest.java @@ -25,7 +25,7 @@ import static org.openrewrite.java.Assertions.java; -public class RemovedJakartaFacesResourceResolverTest implements RewriteTest { +class RemovedJakartaFacesResourceResolverTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec.parser(JavaParser.fromJavaVersion(). diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedSOAPElementFactoryTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedSOAPElementFactoryTest.java index d7a7e18e00..33e0d69a31 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedSOAPElementFactoryTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedSOAPElementFactoryTest.java @@ -26,7 +26,7 @@ import static org.openrewrite.java.Assertions.java; -public class RemovedSOAPElementFactoryTest implements RewriteTest { +class RemovedSOAPElementFactoryTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedStateManagerMethodsTest.java b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedStateManagerMethodsTest.java index 3d51e85b2a..2dfa05a196 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedStateManagerMethodsTest.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/RemovedStateManagerMethodsTest.java @@ -26,7 +26,7 @@ import static org.openrewrite.java.Assertions.java; -public class RemovedStateManagerMethodsTest implements RewriteTest { +class RemovedStateManagerMethodsTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec.parser(JavaParser.fromJavaVersion() diff --git a/src/test/java/org/openrewrite/java/migrate/jakarta/ServletCookieBehaviorChangeRFC6265Test.java b/src/test/java/org/openrewrite/java/migrate/jakarta/ServletCookieBehaviorChangeRFC6265Test.java index 88a7de2cbf..c7dff30cf1 100644 --- a/src/test/java/org/openrewrite/java/migrate/jakarta/ServletCookieBehaviorChangeRFC6265Test.java +++ b/src/test/java/org/openrewrite/java/migrate/jakarta/ServletCookieBehaviorChangeRFC6265Test.java @@ -25,7 +25,7 @@ import static org.openrewrite.java.Assertions.java; -public class ServletCookieBehaviorChangeRFC6265Test implements RewriteTest { +class ServletCookieBehaviorChangeRFC6265Test implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec.parser(JavaParser.fromJavaVersion(). diff --git a/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericMethodInvocationsTest.java b/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericMethodInvocationsTest.java index 392a471047..a956d41d04 100644 --- a/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericMethodInvocationsTest.java +++ b/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericMethodInvocationsTest.java @@ -23,7 +23,7 @@ import static org.openrewrite.java.Assertions.*; -public class UseVarForGenericMethodInvocationsTest implements RewriteTest { +class UseVarForGenericMethodInvocationsTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec.recipe(new UseVarForGenericMethodInvocations()) diff --git a/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericsConstructorsTest.java b/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericsConstructorsTest.java index 1f5096943f..bd832659b4 100644 --- a/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericsConstructorsTest.java +++ b/src/test/java/org/openrewrite/java/migrate/lang/var/UseVarForGenericsConstructorsTest.java @@ -24,7 +24,7 @@ import static org.openrewrite.java.Assertions.*; -public class UseVarForGenericsConstructorsTest implements RewriteTest { +class UseVarForGenericsConstructorsTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec.recipe(new UseVarForGenericsConstructors()) diff --git a/src/test/java/org/openrewrite/java/migrate/search/FindJavaVersionTest.java b/src/test/java/org/openrewrite/java/migrate/search/FindJavaVersionTest.java index 985c25713c..d83e2760b3 100644 --- a/src/test/java/org/openrewrite/java/migrate/search/FindJavaVersionTest.java +++ b/src/test/java/org/openrewrite/java/migrate/search/FindJavaVersionTest.java @@ -25,7 +25,7 @@ import static org.openrewrite.Tree.randomId; import static org.openrewrite.java.Assertions.java; -public class FindJavaVersionTest implements RewriteTest { +class FindJavaVersionTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) {