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/24 14:39:48 UTC

[camel] branch master updated (a8bbd2e -> 70b6fc8)

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 a8bbd2e  Camel-FTP: Fixed CS
     new 99036c0  Camel-google-bigquery: Use BindToRegistry annotation wherever possible
     new 70b6fc8  Camel-google-bigquery: 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:
 .../google/bigquery/integration/BigQueryTestSupport.java      | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)


[camel] 01/02: Camel-google-bigquery: Use BindToRegistry annotation wherever possible

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 99036c0e8483a4cf7b5e8d3e6ca57f06bed0d2ed
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 16:35:09 2019 +0200

    Camel-google-bigquery: Use BindToRegistry annotation wherever possible
---
 .../google/bigquery/integration/BigQueryTestSupport.java       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java b/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java
index 3a3b9a5..f901d65 100644
--- a/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java
+++ b/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java
@@ -31,6 +31,8 @@ import com.google.api.services.bigquery.model.Table;
 import com.google.api.services.bigquery.model.TableFieldSchema;
 import com.google.api.services.bigquery.model.TableReference;
 import com.google.api.services.bigquery.model.TableSchema;
+
+import org.apache.camel.BindToRegistry;
 import org.apache.camel.CamelContext;
 import org.apache.camel.component.google.bigquery.GoogleBigQueryComponent;
 import org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory;
@@ -92,11 +94,9 @@ public class BigQueryTestSupport extends CamelTestSupport {
         return context;
     }
 
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        JndiRegistry jndi = super.createRegistry();
-        jndi.bind("prop", loadProperties());
-        return jndi;
+    @BindToRegistry("prop")
+    protected Properties loadRegProperties() throws Exception {
+        return loadProperties();
     }
 
     public GoogleBigQueryConnectionFactory getConnectionFactory() {


[camel] 02/02: Camel-google-bigquery: 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 70b6fc8286b775c32ddc32b470709f5886e96147
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 16:39:11 2019 +0200

    Camel-google-bigquery: Removed unused imports
---
 .../camel/component/google/bigquery/integration/BigQueryTestSupport.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java b/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java
index f901d65..d2da69b 100644
--- a/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java
+++ b/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/integration/BigQueryTestSupport.java
@@ -37,7 +37,6 @@ import org.apache.camel.CamelContext;
 import org.apache.camel.component.google.bigquery.GoogleBigQueryComponent;
 import org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory;
 import org.apache.camel.component.properties.PropertiesComponent;
-import org.apache.camel.impl.JndiRegistry;
 import org.apache.camel.test.junit4.CamelTestSupport;
 
 public class BigQueryTestSupport extends CamelTestSupport {