From 4533f2a39c703d9d9f8c30a1b7c0a9040951f51c Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 25 Apr 2024 12:23:04 +0000 Subject: [PATCH] refactor: OpenRewrite best practices 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/testing/junit5/AddParameterizedTestAnnotation.java | 2 +- .../java/testing/junit5/RemoveTryCatchFailBlocks.java | 2 +- .../java/testing/assertj/MigrateChainedAssertToAssertJTest.java | 2 +- .../testing/jmockit/JMockitMockedVariableToMockitoTest.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/openrewrite/java/testing/junit5/AddParameterizedTestAnnotation.java b/src/main/java/org/openrewrite/java/testing/junit5/AddParameterizedTestAnnotation.java index 83980e591..1682b68db 100644 --- a/src/main/java/org/openrewrite/java/testing/junit5/AddParameterizedTestAnnotation.java +++ b/src/main/java/org/openrewrite/java/testing/junit5/AddParameterizedTestAnnotation.java @@ -85,4 +85,4 @@ public J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration md, Execut return new RemoveAnnotationVisitor(TEST_ANNOTATION_MATCHER).visitMethodDeclaration(m, ctx); } } -} \ No newline at end of file +} diff --git a/src/main/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocks.java b/src/main/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocks.java index 471b5753f..7e17762f6 100644 --- a/src/main/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocks.java +++ b/src/main/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocks.java @@ -150,4 +150,4 @@ private J.MethodInvocation replaceWithAssertDoesNotThrowWithStringExpression(Exe .apply(getCursor(), try_.getCoordinates().replace(), try_.getBody(), failCallArgument); } } -} \ No newline at end of file +} diff --git a/src/test/java/org/openrewrite/java/testing/assertj/MigrateChainedAssertToAssertJTest.java b/src/test/java/org/openrewrite/java/testing/assertj/MigrateChainedAssertToAssertJTest.java index 4d7740ae0..0f54f4f47 100644 --- a/src/test/java/org/openrewrite/java/testing/assertj/MigrateChainedAssertToAssertJTest.java +++ b/src/test/java/org/openrewrite/java/testing/assertj/MigrateChainedAssertToAssertJTest.java @@ -414,4 +414,4 @@ void test() { rewriteRun(java(before, after)); } } -} \ No newline at end of file +} diff --git a/src/test/java/org/openrewrite/java/testing/jmockit/JMockitMockedVariableToMockitoTest.java b/src/test/java/org/openrewrite/java/testing/jmockit/JMockitMockedVariableToMockitoTest.java index 3a9e8be92..89293f3ef 100644 --- a/src/test/java/org/openrewrite/java/testing/jmockit/JMockitMockedVariableToMockitoTest.java +++ b/src/test/java/org/openrewrite/java/testing/jmockit/JMockitMockedVariableToMockitoTest.java @@ -121,4 +121,4 @@ void test() { ) ); } -} \ No newline at end of file +}