diff --git a/recipes-tests/src/test/java/io/quarkus/updates/core/CoreUpdate313Test.java b/recipes-tests/src/test/java/io/quarkus/updates/core/CoreUpdate313Test.java index b1e6855be2..e7fa1656d3 100644 --- a/recipes-tests/src/test/java/io/quarkus/updates/core/CoreUpdate313Test.java +++ b/recipes-tests/src/test/java/io/quarkus/updates/core/CoreUpdate313Test.java @@ -23,93 +23,6 @@ public void defaults(RecipeSpec spec) { .typeValidationOptions(TypeValidation.all()); } - @Test - void testWithTestResource() { - //language=java - rewriteRun(java( - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.QuarkusTestResource; - - @QuarkusTestResource - public class GitHubAppTest { - } - """, - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.WithTestResource; - - @WithTestResource(restrictToAnnotatedClass = false) - public class GitHubAppTest { - } - """)); - - //language=java - rewriteRun(java( - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.QuarkusTestResource; - - @QuarkusTestResource(restrictToAnnotatedClass = false) - public class GitHubAppTest { - } - """, - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.WithTestResource; - - @WithTestResource(restrictToAnnotatedClass = false) - public class GitHubAppTest { - } - """)); - - //language=java - rewriteRun(java( - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.QuarkusTestResource; - - @QuarkusTestResource(restrictToAnnotatedClass = true) - class GitHubAppTest { - } - """, - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.WithTestResource; - - @WithTestResource(restrictToAnnotatedClass = true) - class GitHubAppTest { - } - """)); - - //language=java - rewriteRun(java( - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.QuarkusTestResource; - - @QuarkusTestResource(parallel = true) - class GitHubAppTest { - } - """, - """ - package io.quarkiverse.githubapp.test; - - import io.quarkus.test.common.WithTestResource; - - @WithTestResource(restrictToAnnotatedClass = false, parallel = true) - class GitHubAppTest { - } - """)); - } - @Test void testUpdateTestOIDCAuthServerUrl() { @Language("properties") diff --git a/recipes/src/main/resources/quarkus-updates/core/3.13.alpha1.yaml b/recipes/src/main/resources/quarkus-updates/core/3.13.alpha1.yaml index f44b3dcbba..d4defcad13 100644 --- a/recipes/src/main/resources/quarkus-updates/core/3.13.alpha1.yaml +++ b/recipes/src/main/resources/quarkus-updates/core/3.13.alpha1.yaml @@ -9,26 +9,6 @@ recipeList: groupId: org.hibernate.orm artifactId: hibernate-jpamodelgen ##### -# Replace @QuarkusTestResource with @WithTestResource while keeping the original behavior -##### ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.updates.core.quarkus313.WithTestResource -recipeList: - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: io.quarkus.test.common.QuarkusTestResource - newFullyQualifiedTypeName: io.quarkus.test.common.WithTestResource ---- -# The default for WithTestResource is different so if using the default value, let's enforce it -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.updates.core.quarkus313.WithTestResourceRestrictToAnnotatedClassValue -recipeList: - - org.openrewrite.java.AddOrUpdateAnnotationAttribute: - annotationType: io.quarkus.test.common.WithTestResource - attributeName: restrictToAnnotatedClass - attributeValue: false - addOnly: true -##### # Adjust package properties in config files - native sources ##### ---