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 2022/06/01 08:38:29 UTC
[camel] 01/02: (chores) camel-cxf: fixed incorrect assertion order
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 c08b3bc5c5b7a1dba388bdc5ca8417673e242229
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Jun 1 09:33:33 2022 +0200
(chores) camel-cxf: fixed incorrect assertion order
---
.../camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java | 4 ++--
.../java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java
index 05d17089ab9..e575ef4eb55 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java
@@ -65,8 +65,8 @@ public class CxfJavaMtomProducerPayloadTest extends CxfMtomConsumerTest {
// Get the operation name
final Holder<byte[]> responsePhoto = (Holder<byte[]>) parameter.get(1);
assertNotNull(responsePhoto.value, "The photo should not be null");
- assertEquals(new String(responsePhoto.value, "UTF-8"),
- "ResponseFromCamel", "Should get the right response");
+ assertEquals("ResponseFromCamel",
+ new String(responsePhoto.value, "UTF-8"), "Should get the right response");
final Holder<Image> responseImage = (Holder<Image>) parameter.get(2);
assertNotNull(responseImage.value, "We should get the image here");
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java
index 4e86b1551ab..7459a056ef4 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java
@@ -72,8 +72,8 @@ public class CxfMtomConsumerTest extends CamelTestSupport {
// Get the operation name
Holder<byte[]> photo = (Holder<byte[]>) parameter.get(0);
assertNotNull(photo.value, "The photo should not be null");
- assertEquals(new String(photo.value, "UTF-8"),
- "RequestFromCXF", "Should get the right request");
+ assertEquals("RequestFromCXF",
+ new String(photo.value, "UTF-8"), "Should get the right request");
photo.value = "ResponseFromCamel".getBytes("UTF-8");
Holder<Image> image = (Holder<Image>) parameter.get(1);
assertNotNull(image.value, "We should get the image here");