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/30 13:48:19 UTC

[camel] branch master updated (4fa8db7 -> 3519a7e)

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 4fa8db7  Removed unused imports
     new f7dfae7  CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Pubnub
     new 3519a7e  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:
 .../org/apache/camel/component/pubnub/PubNubTestBase.java   | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)


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

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 f7dfae7db1579c692565f170890a2f94ab6a876d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 30 15:47:33 2019 +0200

    CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Pubnub
---
 .../org/apache/camel/component/pubnub/PubNubTestBase.java    | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java b/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java
index df69ad4..73b485c 100644
--- a/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java
+++ b/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java
@@ -23,6 +23,7 @@ import com.pubnub.api.PNConfiguration;
 import com.pubnub.api.PubNub;
 import com.pubnub.api.enums.PNLogVerbosity;
 
+import org.apache.camel.BindToRegistry;
 import org.apache.camel.impl.JndiRegistry;
 import org.apache.camel.test.AvailablePortFinder;
 import org.apache.camel.test.junit4.CamelTestSupport;
@@ -36,19 +37,12 @@ import static com.pubnub.api.enums.PNHeartbeatNotificationOptions.NONE;
 public class PubNubTestBase extends CamelTestSupport {
     private final int port = AvailablePortFinder.getNextAvailable(3344);
 
-    private PubNub pubnub;
+    @BindToRegistry("pubnub")
+    private PubNub pubnub = createPubNubInstance();
 
     @Rule
     public WireMockRule wireMockRule = new WireMockRule(options().port(port));
 
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        JndiRegistry registry = super.createRegistry();
-        this.pubnub = createPubNubInstance();
-        registry.bind("pubnub", this.pubnub);
-        return registry;
-    }
-
 
     @Before
     public void beforeEach() throws IOException {


[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 3519a7e598eb0947250e1d082e8a783de3d0c06b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 30 15:47:53 2019 +0200

    Removed unused imports
---
 .../src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java b/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java
index 73b485c..9fff380 100644
--- a/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java
+++ b/components/camel-pubnub/src/test/java/org/apache/camel/component/pubnub/PubNubTestBase.java
@@ -24,7 +24,6 @@ import com.pubnub.api.PubNub;
 import com.pubnub.api.enums.PNLogVerbosity;
 
 import org.apache.camel.BindToRegistry;
-import org.apache.camel.impl.JndiRegistry;
 import org.apache.camel.test.AvailablePortFinder;
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.After;