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.git
The following commit(s) were added to refs/heads/main by this push:
new 3f0f2fc9ec8 fix: solve pagination exception caused by Jackson update
(#16241)
3f0f2fc9ec8 is described below
commit 3f0f2fc9ec83642bc1f8384026ea63527e9b13c5
Author: cjmamo <[email protected]>
AuthorDate: Tue Nov 12 16:26:03 2024 +0100
fix: solve pagination exception caused by Jackson update (#16241)
Refs: https://github.com/dhis2/dhis2-java-sdk/issues/209
---
.../java/org/apache/camel/component/dhis2/api/Dhis2GetTestCase.java | 5 +----
.../src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java | 2 +-
components/camel-dhis2/pom.xml | 2 +-
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git
a/components/camel-dhis2/camel-dhis2-api/src/test/java/org/apache/camel/component/dhis2/api/Dhis2GetTestCase.java
b/components/camel-dhis2/camel-dhis2-api/src/test/java/org/apache/camel/component/dhis2/api/Dhis2GetTestCase.java
index 49ab4f29423..86b90434600 100644
---
a/components/camel-dhis2/camel-dhis2-api/src/test/java/org/apache/camel/component/dhis2/api/Dhis2GetTestCase.java
+++
b/components/camel-dhis2/camel-dhis2-api/src/test/java/org/apache/camel/component/dhis2/api/Dhis2GetTestCase.java
@@ -180,10 +180,7 @@ public class Dhis2GetTestCase {
Dhis2Response dhis2Response = new Dhis2Response() {
@Override
public <T> T returnAs(Class<T> responseType) {
- Page page = new Page(1, 50);
- page.setAdditionalProperty("bunnies", new ArrayList<>());
-
- return (T) page;
+ return (T) new Page(1, 50, Map.of("bunnies", new
ArrayList<>()));
}
@Override
diff --git
a/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
b/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
index 4fa362b333c..0fd96b6df77 100644
---
a/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
+++
b/components/camel-dhis2/camel-dhis2-component/src/test/java/org/apache/camel/component/dhis2/Dhis2GetIT.java
@@ -48,7 +48,7 @@ public class Dhis2GetIT extends AbstractDhis2TestSupport {
final Map<String, Object> headers = new HashMap<>();
headers.put("CamelDhis2.path", "organisationUnits");
headers.put("CamelDhis2.arrayName", "organisationUnits");
- headers.put("CamelDhis2.paging", false); //
https://github.com/dhis2/dhis2-java-sdk/issues/209
+ headers.put("CamelDhis2.paging", true);
headers.put("CamelDhis2.fields", null);
headers.put("CamelDhis2.filter", null);
headers.put("CamelDhis2.queryParams", new HashMap<>());
diff --git a/components/camel-dhis2/pom.xml b/components/camel-dhis2/pom.xml
index da33c891944..790a4ef6324 100644
--- a/components/camel-dhis2/pom.xml
+++ b/components/camel-dhis2/pom.xml
@@ -34,7 +34,7 @@
<description>Camel DHIS2 Component</description>
<properties>
- <dhis2-java-sdk.version>3.0.0</dhis2-java-sdk.version>
+ <dhis2-java-sdk.version>3.0.1</dhis2-java-sdk.version>
<!-- DHIS2 container is not available on these platforms -->
<skipITs.ppc64le>true</skipITs.ppc64le>