You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/04/17 12:57:37 UTC

[camel] branch main updated (622497a9740 -> e885b79b7d4)

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

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


    from 622497a9740 (chores) camel-cxf: swapped incorrect assertion arguments
     new 59ac86f15c9 (chores) camel-core: swapped incorrect assertion arguments
     new ef6659a47a6 (chores) camel-dynamic-router: swapped incorrect assertion arguments
     new 49b2ffc9327 (chores) camel-hashicorp-vault: swapped incorrect assertion arguments
     new e60cb55255e (chores) camel-hdfs: swapped incorrect assertion arguments
     new e885b79b7d4 (chores) camel-zeebe: swapped incorrect assertion arguments

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../camel/component/dynamicrouter/DynamicRouterProcessorTest.java     | 2 +-
 .../operations/HashicorpProducerCreateMultiVersionSecretIT.java       | 4 ++--
 .../vault/integration/operations/HashicorpProducerCreateSecretIT.java | 2 +-
 .../integration/operations/HashicorpProducerCreateSecretPOJOIT.java   | 4 ++--
 .../operations/HashicorpProducerReadMultiVersionedSecretIT.java       | 4 ++--
 .../camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java   | 2 +-
 .../java/org/apache/camel/component/zeebe/ZeebeComponentTest.java     | 4 ++--
 .../org/apache/camel/component/zeebe/internal/ZeebeServiceIT.java     | 2 +-
 .../test/java/org/apache/camel/converter/BasicEnumConverterTest.java  | 2 +-
 9 files changed, 13 insertions(+), 13 deletions(-)


[camel] 05/05: (chores) camel-zeebe: swapped incorrect assertion arguments

Posted by or...@apache.org.
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

commit e885b79b7d40c5e5a0687cba7773ca78212b5aa1
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 13:11:03 2023 +0200

    (chores) camel-zeebe: swapped incorrect assertion arguments
---
 .../java/org/apache/camel/component/zeebe/ZeebeComponentTest.java     | 4 ++--
 .../org/apache/camel/component/zeebe/internal/ZeebeServiceIT.java     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/ZeebeComponentTest.java b/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/ZeebeComponentTest.java
index 64e8f8aba74..37fd86fba21 100644
--- a/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/ZeebeComponentTest.java
+++ b/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/ZeebeComponentTest.java
@@ -28,7 +28,7 @@ class ZeebeComponentTest {
         // Verify Defaults
         ZeebeComponent component = new ZeebeComponent();
 
-        assertEquals(component.getGatewayHost(), ZeebeConstants.DEFAULT_GATEWAY_HOST);
-        assertEquals(component.getGatewayPort(), ZeebeConstants.DEFAULT_GATEWAY_PORT);
+        assertEquals(ZeebeConstants.DEFAULT_GATEWAY_HOST, component.getGatewayHost());
+        assertEquals(ZeebeConstants.DEFAULT_GATEWAY_PORT, component.getGatewayPort());
     }
 }
diff --git a/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/internal/ZeebeServiceIT.java b/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/internal/ZeebeServiceIT.java
index 940891814e9..82892c96f96 100644
--- a/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/internal/ZeebeServiceIT.java
+++ b/components/camel-zeebe/src/test/java/org/apache/camel/component/zeebe/internal/ZeebeServiceIT.java
@@ -76,7 +76,7 @@ public class ZeebeServiceIT {
 
         ProcessDeploymentResponse processDeploymentResult = (ProcessDeploymentResponse) deploymentResponse;
         assertTrue(processDeploymentResult.getVersion() > 0);
-        assertEquals(processDeploymentResult.getResourceName(), TEST_1_DEFINITION_BPMN);
+        assertEquals(TEST_1_DEFINITION_BPMN, processDeploymentResult.getResourceName());
         assertNotNull(processDeploymentResult.getBpmnProcessId());
     }
 


[camel] 02/05: (chores) camel-dynamic-router: swapped incorrect assertion arguments

Posted by or...@apache.org.
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

commit ef6659a47a6409aebdc5f2cf4747a2d89ad3a1ea
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 13:09:49 2023 +0200

    (chores) camel-dynamic-router: swapped incorrect assertion arguments
---
 .../camel/component/dynamicrouter/DynamicRouterProcessorTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-dynamic-router/src/test/java/org/apache/camel/component/dynamicrouter/DynamicRouterProcessorTest.java b/components/camel-dynamic-router/src/test/java/org/apache/camel/component/dynamicrouter/DynamicRouterProcessorTest.java
index 28a812cb999..00a41ffafb9 100644
--- a/components/camel-dynamic-router/src/test/java/org/apache/camel/component/dynamicrouter/DynamicRouterProcessorTest.java
+++ b/components/camel-dynamic-router/src/test/java/org/apache/camel/component/dynamicrouter/DynamicRouterProcessorTest.java
@@ -79,7 +79,7 @@ class DynamicRouterProcessorTest extends DynamicRouterTestSupport {
         List<PrioritizedFilterProcessor> matchingFilters = processor.matchFilters(exchange);
         assertEquals(1, matchingFilters.size());
         PrioritizedFilterProcessor matchingFilter = matchingFilters.get(0);
-        assertEquals(matchingFilter.getId(), TEST_ID);
+        assertEquals(TEST_ID, matchingFilter.getId());
     }
 
     @Test


[camel] 03/05: (chores) camel-hashicorp-vault: swapped incorrect assertion arguments

Posted by or...@apache.org.
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

commit 49b2ffc932734d3301c9726b7ba825c6db41041d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 13:10:15 2023 +0200

    (chores) camel-hashicorp-vault: swapped incorrect assertion arguments
---
 .../operations/HashicorpProducerCreateMultiVersionSecretIT.java       | 4 ++--
 .../vault/integration/operations/HashicorpProducerCreateSecretIT.java | 2 +-
 .../integration/operations/HashicorpProducerCreateSecretPOJOIT.java   | 4 ++--
 .../operations/HashicorpProducerReadMultiVersionedSecretIT.java       | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateMultiVersionSecretIT.java b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateMultiVersionSecretIT.java
index f172d90f3d3..ab29ef13d5f 100644
--- a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateMultiVersionSecretIT.java
+++ b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateMultiVersionSecretIT.java
@@ -70,8 +70,8 @@ public class HashicorpProducerCreateMultiVersionSecretIT extends HashicorpVaultB
         MockEndpoint.assertIsSatisfied(context);
         Exchange ret = mockRead.getExchanges().get(0);
         assertNotNull(ret);
-        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("data")).get("integer"), "31");
-        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("metadata")).get("version"), 2);
+        assertEquals("31", ((Map) ret.getMessage().getBody(Map.class).get("data")).get("integer"));
+        assertEquals(2, ((Map) ret.getMessage().getBody(Map.class).get("metadata")).get("version"));
     }
 
     @Override
diff --git a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java
index 341ea45fe86..da1e1797d23 100644
--- a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java
+++ b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretIT.java
@@ -62,7 +62,7 @@ public class HashicorpProducerCreateSecretIT extends HashicorpVaultBase {
         MockEndpoint.assertIsSatisfied(context);
         Exchange ret = mockRead.getExchanges().get(0);
         assertNotNull(ret);
-        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("data")).get("integer"), "30");
+        assertEquals("30", ((Map) ret.getMessage().getBody(Map.class).get("data")).get("integer"));
     }
 
     @Override
diff --git a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java
index 193be3b6471..030d11a7073 100644
--- a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java
+++ b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerCreateSecretPOJOIT.java
@@ -62,8 +62,8 @@ public class HashicorpProducerCreateSecretPOJOIT extends HashicorpVaultBase {
         MockEndpoint.assertIsSatisfied(context);
         Exchange ret = mockRead.getExchanges().get(0);
         assertNotNull(ret);
-        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("data")).get("username"), "admin");
-        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("data")).get("password"), "password");
+        assertEquals("admin", ((Map) ret.getMessage().getBody(Map.class).get("data")).get("username"));
+        assertEquals("password", ((Map) ret.getMessage().getBody(Map.class).get("data")).get("password"));
     }
 
     @Override
diff --git a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadMultiVersionedSecretIT.java b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadMultiVersionedSecretIT.java
index b4d6b9b8997..4cedda7af0d 100644
--- a/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadMultiVersionedSecretIT.java
+++ b/components/camel-hashicorp-vault/src/test/java/org/apache/camel/component/hashicorp/vault/integration/operations/HashicorpProducerReadMultiVersionedSecretIT.java
@@ -71,8 +71,8 @@ public class HashicorpProducerReadMultiVersionedSecretIT extends HashicorpVaultB
         MockEndpoint.assertIsSatisfied(context);
         Exchange ret = mockRead.getExchanges().get(0);
         assertNotNull(ret);
-        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("data")).get("integer"), "30");
-        assertEquals(((Map) ret.getMessage().getBody(Map.class).get("metadata")).get("version"), 1);
+        assertEquals("30", ((Map) ret.getMessage().getBody(Map.class).get("data")).get("integer"));
+        assertEquals(1, ((Map) ret.getMessage().getBody(Map.class).get("metadata")).get("version"));
     }
 
     @Override


[camel] 04/05: (chores) camel-hdfs: swapped incorrect assertion arguments

Posted by or...@apache.org.
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

commit e60cb55255e5619d914b571a3d5937986e8b8ac8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 13:10:54 2023 +0200

    (chores) camel-hdfs: swapped incorrect assertion arguments
---
 .../camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java b/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java
index 64e5beff7aa..6ca0840873a 100644
--- a/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java
+++ b/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java
@@ -257,7 +257,7 @@ public class HdfsConsumerIntegrationIT extends CamelTestSupport {
         scheduler.getScheduledExecutorService().awaitTermination(5000, TimeUnit.MILLISECONDS);
 
         FileSystem fs = FileSystem.get(dir.toUri(), conf);
-        assertEquals(fs.listStatus(dir).length, 1);
+        assertEquals(1, fs.listStatus(dir).length);
         assertTrue(fs.delete(new Path(file.toUri() + ".handled")));
     }
 


[camel] 01/05: (chores) camel-core: swapped incorrect assertion arguments

Posted by or...@apache.org.
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

commit 59ac86f15c9a145c246427a115cc75322c7d14af
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 13:05:11 2023 +0200

    (chores) camel-core: swapped incorrect assertion arguments
---
 .../test/java/org/apache/camel/converter/BasicEnumConverterTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-core/src/test/java/org/apache/camel/converter/BasicEnumConverterTest.java b/core/camel-core/src/test/java/org/apache/camel/converter/BasicEnumConverterTest.java
index 0b688ecf540..d6800bc31eb 100644
--- a/core/camel-core/src/test/java/org/apache/camel/converter/BasicEnumConverterTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/converter/BasicEnumConverterTest.java
@@ -28,7 +28,7 @@ public class BasicEnumConverterTest {
     @Test
     public void testConvertFromString() {
         StatusCodeEnum code = converter.convertTo(StatusCodeEnum.class, "OK");
-        assertEquals(code, StatusCodeEnum.OK, "String should be converted to corresponding Enum value");
+        assertEquals(StatusCodeEnum.OK, code, "String should be converted to corresponding Enum value");
     }
 
     @Test