From 702ac625b9279899b480f29233365e16b7a84f09 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 5 Feb 2024 09:09:05 +0000 Subject: [PATCH] refactor: Remove `test` prefix from JUnit 5 tests Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.testing.cleanup.RemoveTestPrefix?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .../analysis/trait/variable/LocalVariableDeclTest.java | 6 +++--- .../openrewrite/analysis/trait/variable/ParameterTest.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/openrewrite/analysis/trait/variable/LocalVariableDeclTest.java b/src/test/java/org/openrewrite/analysis/trait/variable/LocalVariableDeclTest.java index 1bb01cfea..80518bc6c 100644 --- a/src/test/java/org/openrewrite/analysis/trait/variable/LocalVariableDeclTest.java +++ b/src/test/java/org/openrewrite/analysis/trait/variable/LocalVariableDeclTest.java @@ -59,7 +59,7 @@ public void defaults(RecipeSpec spec) { } @Test - void testVariableVisit() { + void variableVisit() { rewriteRun( spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> { LocalVariableDecl p = LocalVariableDecl.viewOf(cursor).on(TraitErrors::doThrow); @@ -77,7 +77,7 @@ void testVariableVisit() { @Test @SuppressWarnings("ClassInitializerMayBeStatic") - void testVariableInInitBlock() { + void variableInInitBlock() { rewriteRun( spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> { LocalVariableDecl p = LocalVariableDecl.viewOf(cursor).on(TraitErrors::doThrow); @@ -94,7 +94,7 @@ void testVariableInInitBlock() { } @Test - void testVariableInStaticInitBlock() { + void variableInStaticInitBlock() { rewriteRun( spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> { LocalVariableDecl p = LocalVariableDecl.viewOf(cursor).on(TraitErrors::doThrow); diff --git a/src/test/java/org/openrewrite/analysis/trait/variable/ParameterTest.java b/src/test/java/org/openrewrite/analysis/trait/variable/ParameterTest.java index 6543b2b67..8b26271df 100644 --- a/src/test/java/org/openrewrite/analysis/trait/variable/ParameterTest.java +++ b/src/test/java/org/openrewrite/analysis/trait/variable/ParameterTest.java @@ -51,7 +51,7 @@ public J.VariableDeclarations.NamedVariable visitVariable( } @Test - void testVariableVisit() { + void variableVisit() { rewriteRun( spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> { Parameter p = Parameter.viewOf(cursor).on(TraitErrors::doThrow); @@ -73,7 +73,7 @@ void testVariableVisit() { } @Test - void testVariableVisitVarargs() { + void variableVisitVarargs() { rewriteRun( spec -> spec.recipe(toRecipe(visitVariable((variable, cursor) -> { Parameter p = Parameter.viewOf(cursor).on(TraitErrors::doThrow);