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

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

commit cacccc1bf6ec34ba661ef8ea57b3b623e958d5cc
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Wed Jun 10 11:49:27 2026 +0200

    Fix compilation from upgrade 4.7 to 4.20
    
    this wasn't caught before as the tests were not compile don GitHub
    Actions
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../apache/camel/itest/jmh/FileComponentPollingDirectoryTest.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/FileComponentPollingDirectoryTest.java
 
b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/FileComponentPollingDirectoryTest.java
index 3d70546..87b02fb 100644
--- 
a/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/FileComponentPollingDirectoryTest.java
+++ 
b/tests/camel-jmh/src/test/java/org/apache/camel/itest/jmh/FileComponentPollingDirectoryTest.java
@@ -26,6 +26,7 @@ import java.util.List;
 import java.util.concurrent.TimeUnit;
 
 import org.apache.camel.CamelContext;
+import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.component.file.FileConsumer;
 import org.apache.camel.component.file.FileEndpoint;
@@ -67,8 +68,8 @@ public class FileComponentPollingDirectoryTest {
         }
 
         @Override
-        public boolean pollDirectory(String fileName, List<GenericFile<File>> 
fileList, int depth) {
-            return super.pollDirectory(fileName, fileList, depth);
+        public boolean pollDirectory(Exchange dynamic, String fileName, 
List<GenericFile<File>> fileList, int depth) {
+            return super.pollDirectory(dynamic, fileName, fileList, depth);
         }
     }
 
@@ -113,7 +114,7 @@ public class FileComponentPollingDirectoryTest {
     @Benchmark
     public void testFilePolling() {
         System.out.println("Polling from " + inputDir);
-        consumer.pollDirectory(inputDir, fileList, 0);
+        consumer.pollDirectory(endpoint.createExchange() , inputDir, fileList, 
0);
         System.out.println("Polled files: " + fileList.size());
     }
 

Reply via email to