[
https://issues.apache.org/jira/browse/CAMEL-12084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16292278#comment-16292278
]
ASF GitHub Bot commented on CAMEL-12084:
----------------------------------------
davsclaus closed pull request #2150: CAMEL-12084: Test encoding for query
params in camel-olingo4
URL: https://github.com/apache/camel/pull/2150
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentTest.java
b/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentTest.java
index c886af2ca64..1e0869e5757 100644
---
a/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentTest.java
+++
b/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentTest.java
@@ -22,7 +22,6 @@
import java.util.Map;
import org.apache.camel.CamelExecutionException;
-import org.apache.camel.Header;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.component.olingo4.api.batch.Olingo4BatchChangeRequest;
@@ -118,6 +117,15 @@ public void testRead() throws Exception {
final ClientEntity unbFuncReturn =
(ClientEntity)requestBodyAndHeaders("direct://callunboundfunction", null,
headers);
assertNotNull(unbFuncReturn);
}
+
+ @Test
+ public void testReadWithFilter() {
+ // Read entity set with filter of the Airports object
+ final ClientEntitySet entities =
(ClientEntitySet)requestBody("direct://readwithfilter", null);
+
+ assertNotNull(entities);
+ assertEquals(1, entities.getEntities().size());
+ }
@Test
public void testCreateUpdateDelete() throws Exception {
@@ -309,6 +317,8 @@ public void configure() {
from("direct://readcomplexprop").to("olingo4://read/Airports('KSFO')/Location");
from("direct://readentitybyid").to("olingo4://read/People('russellwhyte')");
+
+
from("direct://readwithfilter").to("olingo4://read/Airports?$filter=Name eq
'San Francisco International Airport'");
from("direct://callunboundfunction").to("olingo4://read/GetNearestAirport(lat=33,lon=-118)");
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Test encoding for query params in camel-olingo4
> -----------------------------------------------
>
> Key: CAMEL-12084
> URL: https://issues.apache.org/jira/browse/CAMEL-12084
> Project: Camel
> Issue Type: Bug
> Components: camel-olingo4
> Affects Versions: 2.20.1
> Reporter: Dmitry Volodin
> Assignee: Dmitry Volodin
> Fix For: 2.20.2
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)