This is an automated email from the ASF dual-hosted git repository.
orpiske 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 72edf2b965b (chores) camel-platform-http: do not test for Jolokia
version
72edf2b965b is described below
commit 72edf2b965bec11157932cec51e1bcff169a915e
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Tue Sep 17 15:07:28 2024 +0200
(chores) camel-platform-http: do not test for Jolokia version
This breaks the tests whenever there is an upgrade
---
.../platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java
b/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java
index e3a1db1c027..6976ab0973f 100644
---
a/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java
+++
b/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java
@@ -30,6 +30,7 @@ import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
public class DefaultJolokiaPlatformHttpPluginTest extends ContextTestSupport {
@@ -54,7 +55,7 @@ public class DefaultJolokiaPlatformHttpPluginTest extends
ContextTestSupport {
String type = (String) request.get("type");
assertEquals("version", type);
- assertEquals("2.1.0", agentVersion);
+ assertNotNull(agentVersion, "There should be an agent version");
}
private PlatformHttpPluginRegistry resolvePlatformHttpPluginRegistry() {