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/07/31 07:15:29 UTC

[camel] branch master updated (93d5f32 -> 6e8c162)

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

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


    from 93d5f32  Removed unused imports
     new 9e69254  CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Salesforce
     new 6e8c162  Removed unused imports

The 2 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:
 .../component/salesforce/ApprovalExamplesIntegrationTest.java | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)


[camel] 01/02: CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Salesforce

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

commit 9e69254c0361b3552adb66fff65d37593feb657f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 31 09:02:29 2019 +0200

    CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Salesforce
---
 .../component/salesforce/ApprovalExamplesIntegrationTest.java  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java
index 43a6d55..56f4d3d 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java
@@ -19,6 +19,7 @@ package org.apache.camel.component.salesforce;
 import java.util.HashMap;
 import java.util.Map;
 
+import org.apache.camel.BindToRegistry;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.salesforce.api.dto.approval.ApprovalRequest;
 import org.apache.camel.component.salesforce.api.dto.approval.ApprovalResult;
@@ -57,9 +58,8 @@ public class ApprovalExamplesIntegrationTest extends AbstractApprovalIntegration
         assertNotNull("Result should be received", result);
     }
 
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        final JndiRegistry jndi = super.createRegistry();
+    @BindToRegistry("approvalTemplate")
+    public ApprovalRequest approvalReq() throws Exception {
 
         final ApprovalRequest approvalTemplate = new ApprovalRequest();
         approvalTemplate.setActionType(ApprovalRequest.Action.Submit);
@@ -67,9 +67,7 @@ public class ApprovalExamplesIntegrationTest extends AbstractApprovalIntegration
         approvalTemplate.setProcessDefinitionNameOrId("Test_Account_Process");
         approvalTemplate.setSkipEntryCriteria(true);
 
-        jndi.bind("approvalTemplate", approvalTemplate);
-
-        return jndi;
+        return approvalTemplate;
     }
 
     @Override


[camel] 02/02: Removed unused imports

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

commit 6e8c16257ad34a6fe73233616ad71526e13a6298
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 31 09:14:23 2019 +0200

    Removed unused imports
---
 .../camel/component/salesforce/ApprovalExamplesIntegrationTest.java      | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java
index 56f4d3d..c6b22cb 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/ApprovalExamplesIntegrationTest.java
@@ -23,7 +23,6 @@ import org.apache.camel.BindToRegistry;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.salesforce.api.dto.approval.ApprovalRequest;
 import org.apache.camel.component.salesforce.api.dto.approval.ApprovalResult;
-import org.apache.camel.impl.JndiRegistry;
 import org.junit.Test;
 
 public class ApprovalExamplesIntegrationTest extends AbstractApprovalIntegrationTest {