You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/08/25 10:31:18 UTC

[camel] branch master updated: Fixed CS for Camel-salesforce

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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a68eba  Fixed CS for Camel-salesforce
3a68eba is described below

commit 3a68ebade4e1be17a9cd75ee75e529e794624f11
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sun Aug 25 12:30:48 2019 +0200

    Fixed CS for Camel-salesforce
---
 .../camel/component/salesforce/api/MultiSelectPicklistJsonTest.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/MultiSelectPicklistJsonTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/MultiSelectPicklistJsonTest.java
index 253c907..0e61bc8 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/MultiSelectPicklistJsonTest.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/MultiSelectPicklistJsonTest.java
@@ -62,7 +62,8 @@ public class MultiSelectPicklistJsonTest {
     @Test
     public void testMarshalString() throws Exception {
         final StringMSPTest mspTest = new StringMSPTest();
-        mspTest.setMspField(new String[] { "Value1", "Value2", "Value3" });
+        String[] stringList = new String[] {"Value1", "Value2", "Value3" };
+        mspTest.setMspField(stringList);
 
         String json = objectMapper.writeValueAsString(mspTest);
         assertEquals(TEST_JSON, json);
@@ -77,7 +78,8 @@ public class MultiSelectPicklistJsonTest {
     @Test
     public void testUnmarshalString() throws Exception {
         StringMSPTest mspTest = objectMapper.readValue(TEST_JSON, StringMSPTest.class);
-        assertArrayEquals(new String[] { "Value1", "Value2", "Value3" }, mspTest.getMspField());
+        String[] stringList = new String[] {"Value1", "Value2", "Value3" };
+        assertArrayEquals(stringList, mspTest.getMspField());
 
         // test null
         mspTest = objectMapper.readValue(TEST_NULL_JSON, StringMSPTest.class);