-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update camel-upgrade-recipes to 4.8.0
- Loading branch information
1 parent
fe60e2e
commit 962321e
Showing
22 changed files
with
211 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate45Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
import static org.openrewrite.java.Assertions.java; | ||
|
||
public class CamelUpdate45Test extends org.apache.camel.upgrade.CamelUpdate45Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_15(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
|
||
@Test | ||
@Override | ||
public void testSearch() { | ||
//test has to be changed, because the result of camel 4.5 migration is a;so migrated in camel 4.6, | ||
// therefore camel-quarkus migration from 3.8 to 3.15 has to expect both changes | ||
rewriteRun(java( | ||
""" | ||
public class SearchTest { | ||
public void test() { | ||
org.apache.camel.component.es.aggregation.BulkRequestAggregationStrategy elasticAggregationStrategy = null; | ||
org.apache.camel.component.opensearch.aggregation.BulkRequestAggregationStrategy openAggregationStrategy = null; | ||
} | ||
} | ||
""", | ||
""" | ||
public class SearchTest { | ||
public void test() { | ||
org.apache.camel.component.es.aggregation.ElasticsearchBulkRequestAggregationStrategy elasticAggregationStrategy = null; | ||
org.apache.camel.component.opensearch.aggregation.OpensearchBulkRequestAggregationStrategy openAggregationStrategy = null; | ||
} | ||
} | ||
""")); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate46Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.junit.jupiter.api.Disabled; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelUpdate46Test extends org.apache.camel.upgrade.CamelUpdate46Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_15(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
|
||
//following tests have to be disabled, the migration they cover is happening only between Camel 4.5-4.6 | ||
// module which introduced the code before migration does not exist in Camel 4.4 (which is used by camel-quarkus 3.8) | ||
@Disabled | ||
@Override | ||
public void testLangchainEmbeddings() { | ||
} | ||
|
||
@Disabled | ||
@Override | ||
public void testLangchainChat() { | ||
|
||
} | ||
|
||
//followig test is covered by CamelUpdate45Test.testSearch | ||
@Disabled | ||
@Override | ||
public void testSearch() { | ||
super.testSearch(); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate47Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelUpdate47Test extends org.apache.camel.upgrade.CamelUpdate47Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_15(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.