From b68c43002f3b58f76bf141af28060c62f467dfce Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 5 Feb 2024 09:08:45 +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 --- .../java/migrate/UpgradeToJava17Test.java | 2 +- .../java/migrate/UpgradeToJava6Test.java | 2 +- .../java/migrate/UpgradeToJava7Test.java | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/test/java/org/openrewrite/java/migrate/UpgradeToJava17Test.java b/src/test/java/org/openrewrite/java/migrate/UpgradeToJava17Test.java index e48ff81a15..91e69804df 100644 --- a/src/test/java/org/openrewrite/java/migrate/UpgradeToJava17Test.java +++ b/src/test/java/org/openrewrite/java/migrate/UpgradeToJava17Test.java @@ -397,7 +397,7 @@ void notNeedToUpgradeMavenCompilerPluginToSupportReleaseTag() { } @Test - void testAgentMainPreMainPublicApp() { + void agentMainPreMainPublicApp() { rewriteRun( version( //language=java diff --git a/src/test/java/org/openrewrite/java/migrate/UpgradeToJava6Test.java b/src/test/java/org/openrewrite/java/migrate/UpgradeToJava6Test.java index 7bb63fd666..f7cc4504d8 100644 --- a/src/test/java/org/openrewrite/java/migrate/UpgradeToJava6Test.java +++ b/src/test/java/org/openrewrite/java/migrate/UpgradeToJava6Test.java @@ -33,7 +33,7 @@ public void defaults(RecipeSpec spec) { @DocumentExample @Test - void testDataSource() { + void dataSource() { rewriteRun( //language=java java( diff --git a/src/test/java/org/openrewrite/java/migrate/UpgradeToJava7Test.java b/src/test/java/org/openrewrite/java/migrate/UpgradeToJava7Test.java index 44f6bbb0ea..53646a1d19 100644 --- a/src/test/java/org/openrewrite/java/migrate/UpgradeToJava7Test.java +++ b/src/test/java/org/openrewrite/java/migrate/UpgradeToJava7Test.java @@ -37,7 +37,7 @@ public void defaults(RecipeSpec spec) { @DocumentExample @Test - void testCallableStatement() { + void callableStatement() { rewriteRun( //language=java java( @@ -2029,7 +2029,7 @@ public boolean isCloseOnCompletion() { } @Test - void testConnectionPoolDataSource() { + void connectionPoolDataSource() { rewriteRun( //language=java java( @@ -2119,7 +2119,7 @@ public java.util.logging.Logger getParentLogger() { } @Test - void testCommonDataSource() { + void commonDataSource() { rewriteRun( //language=java java( @@ -2195,7 +2195,7 @@ public java.util.logging.Logger getParentLogger() { } @Test - void testCommonDataSourceSub() { + void commonDataSourceSub() { rewriteRun( //language=java java( @@ -2267,7 +2267,7 @@ public java.util.logging.Logger getParentLogger() { } @Test - void testOnAbstractClassWithMissingMethod() { + void onAbstractClassWithMissingMethod() { rewriteRun( //language=java java( @@ -2307,7 +2307,7 @@ public void setLogWriter(PrintWriter out) throws SQLException { } @Test - void testConnection() { + void connection() { rewriteRun( spec -> spec.cycles(1).expectedCyclesThatMakeChanges(1), //language=java @@ -2791,7 +2791,7 @@ public void setSchema(java.lang.String schema) throws java.sql.SQLException { } @Test - void testDataSource() { + void dataSource() { rewriteRun( //language=java java( @@ -2905,7 +2905,7 @@ public java.util.logging.Logger getParentLogger() { } @Test - void testJRE7JdbcDriver() { + void jre7JdbcDriver() { rewriteRun( //language=java java( @@ -2997,7 +2997,7 @@ public java.util.logging.Logger getParentLogger() { } @Test - void testPreparedStatement() { + void preparedStatement() { rewriteRun( //language=java java(