[camel] branch master updated: CAMEL-13557: Fixed test to use property binding support as the old has removed the legacy JDK PropertyEditor in CAMEL-13566

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated: CAMEL-13557: Fixed test to use property binding support as the old has removed the legacy JDK PropertyEditor in CAMEL-13566

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

davsclaus 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 13d482e  CAMEL-13557: Fixed test to use property binding support as the old has removed the legacy JDK PropertyEditor in CAMEL-13566
13d482e is described below

commit 13d482e31ae962bdba0271dba4618fa21a165068
Author: Claus Ibsen <[hidden email]>
AuthorDate: Sat May 25 09:20:42 2019 +0200

    CAMEL-13557: Fixed test to use property binding support as the old has removed the legacy JDK PropertyEditor in CAMEL-13566
---
 .../camel/component/google/drive/AbstractGoogleDriveTestSupport.java  | 4 ++--
 .../camel/component/google/mail/AbstractGoogleMailTestSupport.java    | 4 ++--
 .../google/mail/stream/AbstractGoogleMailStreamTestSupport.java       | 4 ++--
 .../component/google/sheets/AbstractGoogleSheetsTestSupport.java      | 4 ++--
 .../google/sheets/stream/AbstractGoogleSheetsStreamTestSupport.java   | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java b/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java
index 2b25cd6..332b484 100644
--- a/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java
+++ b/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/AbstractGoogleDriveTestSupport.java
@@ -29,7 +29,7 @@ import com.google.api.client.http.FileContent;
 import com.google.api.services.drive.model.File;
 import org.apache.camel.CamelContext;
 import org.apache.camel.CamelExecutionException;
-import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.test.junit4.CamelTestSupport;
 
 public abstract class AbstractGoogleDriveTestSupport extends CamelTestSupport {
@@ -112,7 +112,7 @@ public abstract class AbstractGoogleDriveTestSupport extends CamelTestSupport {
         }
 
         final GoogleDriveConfiguration configuration = new GoogleDriveConfiguration();
-        IntrospectionSupport.setProperties(configuration, options);
+        PropertyBindingSupport.bindProperties(context, configuration, options);
 
         // add GoogleDriveComponent  to Camel context
         final CamelContext context = super.createCamelContext();
diff --git a/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/AbstractGoogleMailTestSupport.java b/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/AbstractGoogleMailTestSupport.java
index 6362fad..a7f371c 100644
--- a/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/AbstractGoogleMailTestSupport.java
+++ b/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/AbstractGoogleMailTestSupport.java
@@ -23,7 +23,7 @@ import java.util.Properties;
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.CamelExecutionException;
-import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.test.junit4.CamelTestSupport;
 
 /**
@@ -55,7 +55,7 @@ public class AbstractGoogleMailTestSupport extends CamelTestSupport {
         }
 
         final GoogleMailConfiguration configuration = new GoogleMailConfiguration();
-        IntrospectionSupport.setProperties(configuration, options);
+        PropertyBindingSupport.bindProperties(context, configuration, options);
 
         // add GoogleMailComponent to Camel context
         final GoogleMailComponent component = new GoogleMailComponent(context);
diff --git a/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/AbstractGoogleMailStreamTestSupport.java b/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/AbstractGoogleMailStreamTestSupport.java
index d6ef64c..e38c1f8 100644
--- a/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/AbstractGoogleMailStreamTestSupport.java
+++ b/components/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/AbstractGoogleMailStreamTestSupport.java
@@ -22,7 +22,7 @@ import java.util.Map;
 import java.util.Properties;
 
 import org.apache.camel.CamelContext;
-import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.test.junit4.CamelTestSupport;
 
 /**
@@ -54,7 +54,7 @@ public class AbstractGoogleMailStreamTestSupport extends CamelTestSupport {
         }
 
         final GoogleMailStreamConfiguration configuration = new GoogleMailStreamConfiguration();
-        IntrospectionSupport.setProperties(configuration, options);
+        PropertyBindingSupport.bindProperties(context, configuration, options);
 
         // add GoogleMailComponent to Camel context
         final GoogleMailStreamComponent component = new GoogleMailStreamComponent(context);
diff --git a/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/AbstractGoogleSheetsTestSupport.java b/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/AbstractGoogleSheetsTestSupport.java
index c1a70a7..1ca893c 100644
--- a/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/AbstractGoogleSheetsTestSupport.java
+++ b/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/AbstractGoogleSheetsTestSupport.java
@@ -31,7 +31,7 @@ import com.google.api.services.sheets.v4.model.SpreadsheetProperties;
 import com.google.api.services.sheets.v4.model.ValueRange;
 import org.apache.camel.CamelContext;
 import org.apache.camel.CamelExecutionException;
-import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.support.PropertyBindingSupport;
 import org.apache.camel.test.junit4.CamelTestSupport;
 
 
@@ -95,7 +95,7 @@ public class AbstractGoogleSheetsTestSupport extends CamelTestSupport {
         final CamelContext context = super.createCamelContext();
 
         final GoogleSheetsConfiguration configuration = new GoogleSheetsConfiguration();
-        IntrospectionSupport.setProperties(configuration, getTestOptions());
+        PropertyBindingSupport.bindProperties(context, configuration, getTestOptions());
 
         // add GoogleSheetsComponent to Camel context
         final GoogleSheetsComponent component = new GoogleSheetsComponent(context);
diff --git a/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/stream/AbstractGoogleSheetsStreamTestSupport.java b/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/stream/AbstractGoogleSheetsStreamTestSupport.java
index 818c5e4..1e9bf35 100644
--- a/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/stream/AbstractGoogleSheetsStreamTestSupport.java
+++ b/components/camel-google-sheets/src/test/java/org/apache/camel/component/google/sheets/stream/AbstractGoogleSheetsStreamTestSupport.java
@@ -18,7 +18,7 @@ package org.apache.camel.component.google.sheets.stream;
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.component.google.sheets.AbstractGoogleSheetsTestSupport;
-import org.apache.camel.support.IntrospectionSupport;
+import org.apache.camel.support.PropertyBindingSupport;
 
 /**
  * Abstract base class for GoogleSheets Integration tests generated by Camel API
@@ -32,7 +32,7 @@ public class AbstractGoogleSheetsStreamTestSupport extends AbstractGoogleSheetsT
         final CamelContext context = super.createCamelContext();
 
         final GoogleSheetsStreamConfiguration configuration = new GoogleSheetsStreamConfiguration();
-        IntrospectionSupport.setProperties(configuration, getTestOptions());
+        PropertyBindingSupport.bindProperties(context, configuration, getTestOptions());
 
         // add GoogleSheetsComponent to Camel context
         final GoogleSheetsStreamComponent component = new GoogleSheetsStreamComponent(context);