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:40 UTC
[camel] 03/05: (chores) camel-hashicorp-vault: swapped incorrect assertion arguments
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