This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-upgrade-recipes.git


The following commit(s) were added to refs/heads/main by this push:
     new fa1b06e  Fixed recipes for 4.0 rejectedPolicy.DiscardOldest removal 
(#8)
fa1b06e is described below

commit fa1b06e7ee5e473fdd6abad2224eb512ff4d2185
Author: JiriOndrusek <[email protected]>
AuthorDate: Thu Dec 5 09:50:05 2024 +0100

    Fixed recipes for 4.0 rejectedPolicy.DiscardOldest removal (#8)
---
 src/main/resources/META-INF/rewrite/4.0.yaml                       | 3 ++-
 .../org/apache/camel/upgrade/camel40/CamelAPIsPropertiesTest.java  | 7 +++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/resources/META-INF/rewrite/4.0.yaml 
b/src/main/resources/META-INF/rewrite/4.0.yaml
index e8b1085..ffc0740 100644
--- a/src/main/resources/META-INF/rewrite/4.0.yaml
+++ b/src/main/resources/META-INF/rewrite/4.0.yaml
@@ -44,6 +44,7 @@ recipeList:
   - org.apache.camel.upgrade.camel40.java.CamelEIPRecipe
   - org.apache.camel.upgrade.camel40.java.CamelBeanRecipe
   - org.apache.camel.upgrade.camel40.java.CamelHttpRecipe
+  - org.apache.camel.upgrade.camel40.properties.rejectedPolicy
   - org.apache.camel.upgrade.camel40.UsePluginHelperForContextGetters
   - org.apache.camel.upgrade.camel40.ChangeTypes
   - org.apache.camel.upgrade.camel40.ChangeManagedChoiceMBeanMethodName
@@ -59,7 +60,7 @@ recipeList:
       newFullyQualifiedTypeName: 
org.apache.camel.impl.engine.IntrospectionSupport
 ---
 type: specs.openrewrite.org/v1beta/recipe
-name: org.openrewrite.java.camel.migrate.ChangePropertyValue
+name: org.apache.camel.upgrade.camel40.properties.rejectedPolicy
 displayName: Camel API changes in application.properties
 description: Apache Camel API migration from version 3.20 or higher to 4.0. 
Removal of deprecated APIs, which could be part of the application.properties.
 #todo would be better to put a comment about changed property and its 
alternative, once the openrewrite recipe allows that
diff --git 
a/src/test/java/org/apache/camel/upgrade/camel40/CamelAPIsPropertiesTest.java 
b/src/test/java/org/apache/camel/upgrade/camel40/CamelAPIsPropertiesTest.java
index 865be20..1957db9 100644
--- 
a/src/test/java/org/apache/camel/upgrade/camel40/CamelAPIsPropertiesTest.java
+++ 
b/src/test/java/org/apache/camel/upgrade/camel40/CamelAPIsPropertiesTest.java
@@ -28,10 +28,9 @@ public class CamelAPIsPropertiesTest implements RewriteTest {
 
     @Override
     public void defaults(RecipeSpec spec) {
-        CamelTestUtil
-                .recipe(spec, CamelTestUtil.CamelVersion.v4_0, 
"org.openrewrite.java.camel.migrate.ChangePropertyValue")
-                
.parser(JavaParser.fromJavaVersion().logCompilationWarningsAndErrors(true))
-                .typeValidationOptions(TypeValidation.none());
+        CamelTestUtil.recipe(spec, CamelTestUtil.CamelVersion.v4_0)
+            
.parser(JavaParser.fromJavaVersion().logCompilationWarningsAndErrors(true))
+            .typeValidationOptions(TypeValidation.none());
     }
 
     @Test

Reply via email to