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

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

commit d5ff83452888c63717721ef6fe8cb9bd29f1189f
Author: Luigi De Masi <[email protected]>
AuthorDate: Wed Sep 30 13:52:00 2026 +0200

    ci: Fix downloader test proxy identity methods
    
    The service restart changes on main track services in a ConcurrentHashMap.
    The downloader test proxy returned null for hashCode, so all nine properties
    function tests failed during service registration before their assertions.
    
    Give the recording proxy identity-based hashCode and equals implementations
    and a useful toString without changing the downloader assertions.
    
    Failed run: https://github.com/apache/camel/actions/runs/36707716997
    
    Co-authored-by: Codex <[email protected]>
    Signed-off-by: Luigi De Masi <[email protected]>
---
 .../DependencyDownloaderPropertiesFunctionResolverTest.java      | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/dsl/camel-kamelet-main/src/test/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolverTest.java
 
b/dsl/camel-kamelet-main/src/test/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolverTest.java
index 3ec98bd9517e..8aa48cd5a981 100644
--- 
a/dsl/camel-kamelet-main/src/test/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolverTest.java
+++ 
b/dsl/camel-kamelet-main/src/test/java/org/apache/camel/main/download/DependencyDownloaderPropertiesFunctionResolverTest.java
@@ -122,6 +122,15 @@ public class 
DependencyDownloaderPropertiesFunctionResolverTest {
                 new Class[] { DependencyDownloader.class },
                 (proxy, method, args) -> {
                     switch (method.getName()) {
+                        case "hashCode" -> {
+                            return System.identityHashCode(proxy);
+                        }
+                        case "equals" -> {
+                            return proxy == args[0];
+                        }
+                        case "toString" -> {
+                            return "RecordingDependencyDownloader";
+                        }
                         case "downloadDependency" -> {
                             // every overload starts with (String groupId, 
String artifactId, String version, ...)
                             downloaded.add(args[0] + ":" + args[1]);

Reply via email to