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 622497a9740 (chores) camel-cxf: swapped incorrect assertion arguments
622497a9740 is described below

commit 622497a9740adb4997ad8af8154eb9e33ef07f15
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Apr 17 12:58:56 2023 +0200

    (chores) camel-cxf: swapped incorrect assertion arguments
---
 .../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/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java
 
b/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java
index 67ebff084b0..79267d66ff9 100644
--- 
a/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/mtom/CxfJavaMtomProducerPayloadTest.java
+++ 
b/components/camel-cxf/camel-cxf-spring-soap/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/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java
 
b/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java
index a8102b7dc1e..29e74b1d2f5 100644
--- 
a/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java
+++ 
b/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/mtom/CxfMtomConsumerTest.java
@@ -73,8 +73,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");

Reply via email to