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 fd093cfede3 Re-enable and fix some tests in camel-olingo4 (#11197)
fd093cfede3 is described below

commit fd093cfede37ca68b544d7a703d247341128e3ca
Author: John Poth <poth.j...@gmail.com>
AuthorDate: Thu Aug 24 12:52:01 2023 +0200

    Re-enable and fix some tests in camel-olingo4 (#11197)
---
 .../java/org/apache/camel/component/olingo4/Olingo4AppAPITest.java   | 5 +----
 .../apache/camel/component/olingo4/Olingo4ComponentProducerTest.java | 4 +---
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git 
a/components/camel-olingo4/camel-olingo4-api/src/test/java/org/apache/camel/component/olingo4/Olingo4AppAPITest.java
 
b/components/camel-olingo4/camel-olingo4-api/src/test/java/org/apache/camel/component/olingo4/Olingo4AppAPITest.java
index 89db91a0735..b436ae93614 100644
--- 
a/components/camel-olingo4/camel-olingo4-api/src/test/java/org/apache/camel/component/olingo4/Olingo4AppAPITest.java
+++ 
b/components/camel-olingo4/camel-olingo4-api/src/test/java/org/apache/camel/component/olingo4/Olingo4AppAPITest.java
@@ -73,7 +73,6 @@ import org.apache.olingo.commons.api.http.HttpStatusCode;
 import org.apache.olingo.server.api.uri.queryoption.SystemQueryOptionKind;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -121,7 +120,7 @@ public class Olingo4AppAPITest {
     private static final String COUNT_OPTION = "/$count";
     private static final String TEST_UNBOUND_ACTION_RESETDATASOURCE = 
"ResetDataSource";
     private static final String TEST_BOUND_ACTION_PEOPLE_SHARETRIP
-            = TEST_PEOPLE + 
"/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip";
+            = TEST_PEOPLE + "/Trippin.ShareTrip";
 
     private static final String TEST_SERVICE_BASE_URL = 
"http://services.odata.org/TripPinRESTierService";;
     private static final ContentType TEST_FORMAT = 
ContentType.APPLICATION_JSON;
@@ -573,7 +572,6 @@ public class Olingo4AppAPITest {
     }
 
     @Test
-    @Disabled
     public void testBoundActionRequest() throws Exception {
         final ClientEntity clientEntity = objFactory.newEntity(null);
         clientEntity.getProperties().add(
@@ -591,7 +589,6 @@ public class Olingo4AppAPITest {
     // Unfortunately there is no action that returns a client entity. So we 
fake
     // one
     @Test
-    @Disabled
     public void testBoundActionRequestWithClientEntityResponse() throws 
Exception {
         final ODataClient odataClient = ODataClientFactory.getClient();
         final ODataWriter odataWriter = odataClient.getWriter();
diff --git 
a/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentProducerTest.java
 
b/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentProducerTest.java
index beb0a939db9..b4545e3f1e8 100644
--- 
a/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentProducerTest.java
+++ 
b/components/camel-olingo4/camel-olingo4-component/src/test/java/org/apache/camel/component/olingo4/Olingo4ComponentProducerTest.java
@@ -45,7 +45,6 @@ import org.apache.olingo.commons.api.edm.Edm;
 import org.apache.olingo.commons.api.ex.ODataError;
 import org.apache.olingo.commons.api.http.HttpStatusCode;
 import org.apache.olingo.server.api.uri.queryoption.SystemQueryOptionKind;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -321,7 +320,6 @@ public class Olingo4ComponentProducerTest extends 
AbstractOlingo4TestSupport {
     }
 
     @Test
-    @Disabled
     public void testBoundActionRequest() {
         final ClientEntity clientEntity = objFactory.newEntity(null);
         clientEntity.getProperties().add(
@@ -490,7 +488,7 @@ public class Olingo4ComponentProducerTest extends 
AbstractOlingo4TestSupport {
                 
from("direct:unbound-action-ResetDataSource").to("olingo4://action/ResetDataSource");
 
                 from("direct:bound-action-people").to(
-                        "olingo4://action/" + TEST_PEOPLE + 
"/Microsoft.OData.Service.Sample.TrippinInMemory.Models.ShareTrip");
+                        "olingo4://action/" + TEST_PEOPLE + 
"/Trippin.ShareTrip");
             }
         };
     }

Reply via email to