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

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


The following commit(s) were added to refs/heads/main by this push:
     new 26254ed172 Enable xchange tests
26254ed172 is described below

commit 26254ed172d0062ce761242a6522153d0f201c48
Author: James Netherton <[email protected]>
AuthorDate: Thu Apr 18 11:40:33 2024 +0100

    Enable xchange tests
    
    Fixes #4516
---
 integration-tests/pom.xml                                           | 2 +-
 integration-tests/xchange/pom.xml                                   | 2 +-
 .../apache/camel/quarkus/component/xchange/it/XchangeResource.java  | 6 +++---
 poms/bom-test/pom.xml                                               | 4 ++++
 tooling/scripts/test-categories.yaml                                | 1 +
 5 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index a8d58ef5de..49d7894380 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -237,7 +237,7 @@
         <module>vertx</module>
         <module>vertx-websocket</module>
         <module>weather</module>
-        <!--<module>xchange</module> 
https://github.com/apache/camel-quarkus/issues/4516 -->
+        <module>xchange</module>
         <module>xj</module>
         <module>xml-grouped</module>
         <module>xml-jaxp</module>
diff --git a/integration-tests/xchange/pom.xml 
b/integration-tests/xchange/pom.xml
index 1e2a1ad629..7e8dd76be7 100644
--- a/integration-tests/xchange/pom.xml
+++ b/integration-tests/xchange/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.camel.quarkus</groupId>
         <artifactId>camel-quarkus-build-parent-it</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
+        <version>3.10.0-SNAPSHOT</version>
         <relativePath>../../poms/build-parent-it/pom.xml</relativePath>
     </parent>
 
diff --git 
a/integration-tests/xchange/src/main/java/org/apache/camel/quarkus/component/xchange/it/XchangeResource.java
 
b/integration-tests/xchange/src/main/java/org/apache/camel/quarkus/component/xchange/it/XchangeResource.java
index 25b4fd08ed..b3d7432f16 100644
--- 
a/integration-tests/xchange/src/main/java/org/apache/camel/quarkus/component/xchange/it/XchangeResource.java
+++ 
b/integration-tests/xchange/src/main/java/org/apache/camel/quarkus/component/xchange/it/XchangeResource.java
@@ -45,7 +45,7 @@ import org.knowm.xchange.currency.Currency;
 import org.knowm.xchange.currency.CurrencyPair;
 import org.knowm.xchange.dto.marketdata.Ticker;
 import org.knowm.xchange.dto.meta.CurrencyMetaData;
-import org.knowm.xchange.dto.meta.CurrencyPairMetaData;
+import org.knowm.xchange.dto.meta.InstrumentMetaData;
 import org.knowm.xchange.kraken.KrakenExchange;
 
 @Path("/xchange")
@@ -115,10 +115,10 @@ public class XchangeResource {
     @GET
     @Produces(MediaType.TEXT_PLAIN)
     public String currencyPairsMetadata(@QueryParam("base") String base, 
@QueryParam("counter") String counter) {
-        CurrencyPairMetaData metaData = producerTemplate.requestBody(
+        InstrumentMetaData metaData = producerTemplate.requestBody(
                 "xchange:" + DEFAULT_CRYPTO_EXCHANGE + 
"?service=metadata&method=currencyPairMetaData",
                 new CurrencyPair(base, counter),
-                CurrencyPairMetaData.class);
+                InstrumentMetaData.class);
         return metaData.getTradingFee().toPlainString();
     }
 
diff --git a/poms/bom-test/pom.xml b/poms/bom-test/pom.xml
index acc437c2ef..4cd95eaedb 100644
--- a/poms/bom-test/pom.xml
+++ b/poms/bom-test/pom.xml
@@ -335,6 +335,10 @@
                         <groupId>javax.annotation</groupId>
                         <artifactId>javax.annotation-api</artifactId>
                     </exclusion>
+                    <exclusion>
+                        <groupId>org.checkerframework</groupId>
+                        <artifactId>checker-qual</artifactId>
+                    </exclusion>
                 </exclusions>
             </dependency>
             <dependency>
diff --git a/tooling/scripts/test-categories.yaml 
b/tooling/scripts/test-categories.yaml
index 6f132a95f8..b9e0fca93b 100644
--- a/tooling/scripts/test-categories.yaml
+++ b/tooling/scripts/test-categories.yaml
@@ -158,6 +158,7 @@ group-09:
   - splunk
   - splunk-hec
   - spring-rabbitmq
+  - xchange
   - xpath
 group-10:
   - as2

Reply via email to