Repository: camel Updated Branches: refs/heads/master 27210f665 -> 08e50b9f0
Cleaup pom Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/31957666 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/31957666 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/31957666 Branch: refs/heads/master Commit: 31957666c4ef0261c18398b0b907a8cf23c645dd Parents: 27210f6 Author: Claus Ibsen <davscl...@apache.org> Authored: Sat Sep 9 09:41:39 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat Sep 9 09:41:39 2017 +0200 ---------------------------------------------------------------------- components/camel-google-bigquery/pom.xml | 221 ++++++++----------- .../unit/GoogleBigQueryProducerTest.java | 2 +- 2 files changed, 92 insertions(+), 131 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/31957666/components/camel-google-bigquery/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-google-bigquery/pom.xml b/components/camel-google-bigquery/pom.xml index 2581787..fbf3532 100644 --- a/components/camel-google-bigquery/pom.xml +++ b/components/camel-google-bigquery/pom.xml @@ -20,136 +20,97 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.camel</groupId> - <artifactId>components</artifactId> - <version>2.20.0-SNAPSHOT</version> - </parent> - - <artifactId>camel-google-bigquery</artifactId> - <packaging>jar</packaging> - <name>Camel :: GoogleBigQuery</name> - <description>Camel Component for Google Cloud Platform BigQuery</description> - - <properties> - <schemeName>google-bigquery</schemeName> - <componentName>GoogleBigQuery</componentName> - <componentPackage>org.apache.camel.component.google.bigquery</componentPackage> - <camel.osgi.export.pkg>org.apache.camel.component.google.bigquery</camel.osgi.export.pkg> - <camel.osgi.export.service> - org.apache.camel.spi.ComponentResolver;component=google-bigquery - </camel.osgi.export.service> - </properties> - - <dependencies> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-core</artifactId> - </dependency> - <dependency> - <groupId>com.google.apis</groupId> - <artifactId>google-api-services-bigquery</artifactId> - <version>${google-api-services-bigquery-version}</version> - </dependency> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-test</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-databind</artifactId> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-log4j12</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.mockito</groupId> - <artifactId>mockito-core</artifactId> - <scope>test</scope> - </dependency> - </dependencies> - - <build> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.camel</groupId> + <artifactId>components</artifactId> + <version>2.20.0-SNAPSHOT</version> + </parent> + + <artifactId>camel-google-bigquery</artifactId> + <packaging>jar</packaging> + <name>Camel :: GoogleBigQuery</name> + <description>Camel Component for Google Cloud Platform BigQuery</description> + + <properties> + <camel.osgi.export.pkg>org.apache.camel.component.google.bigquery</camel.osgi.export.pkg> + <camel.osgi.export.service>org.apache.camel.spi.ComponentResolver;component=google-bigquery</camel.osgi.export.service> + </properties> + + <dependencies> + + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core</artifactId> + </dependency> + + <dependency> + <groupId>com.google.apis</groupId> + <artifactId>google-api-services-bigquery</artifactId> + <version>${google-api-services-bigquery-version}</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-databind</artifactId> + </dependency> + + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-test</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <childDelegation>false</childDelegation> + <useFile>true</useFile> + <forkCount>1</forkCount> + <reuseForks>true</reuseForks> + <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds> + <includes> + <!-- Here we only run test of --> + <include>**/unit/*.java</include> + </includes> + </configuration> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <id>google-bigquery-test</id> + <build> <plugins> - - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <includes> - <include>**/unit/*Test.java</include> - </includes> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <version>2.6</version> - <configuration> - <encoding>UTF-8</encoding> - </configuration> - </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <childDelegation>false</childDelegation> + <useFile>true</useFile> + <forkCount>1</forkCount> + <reuseForks>true</reuseForks> + <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds> + <includes> + <include>**/*Test.java</include> + </includes> + </configuration> + </plugin> </plugins> - - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.camel</groupId> - <artifactId>camel-api-component-maven-plugin</artifactId> - <version>${project.version}</version> - <configuration> - <scheme>${schemeName}</scheme> - <componentName>${componentName}</componentName> - <componentPackage>${componentPackage}</componentPackage> - <outPackage>${outPackage}</outPackage> - </configuration> - </plugin> - </plugins> - </pluginManagement> - - </build> - - <reporting> - <plugins> - <plugin> - <groupId>org.apache.camel</groupId> - <artifactId>camel-api-component-maven-plugin</artifactId> - <version>${project.version}</version> - <configuration> - <scheme>${schemeName}</scheme> - <componentName>${componentName}</componentName> - <componentPackage>${componentPackage}</componentPackage> - <outPackage>${outPackage}</outPackage> - </configuration> - </plugin> - </plugins> - </reporting> - - <profiles> - <profile> - <id>google-bigquery-test</id> - <build> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <childDelegation>false</childDelegation> - <useFile>true</useFile> - <forkCount>1</forkCount> - <reuseForks>true</reuseForks> - <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds> - <includes> - <include>**/*Test.java</include> - </includes> - </configuration> - </plugin> - </plugins> - </build> - </profile> - </profiles> + </build> + </profile> + </profiles> </project> http://git-wip-us.apache.org/repos/asf/camel/blob/31957666/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/GoogleBigQueryProducerTest.java ---------------------------------------------------------------------- diff --git a/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/GoogleBigQueryProducerTest.java b/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/GoogleBigQueryProducerTest.java index 8890d92..14c2b72 100644 --- a/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/GoogleBigQueryProducerTest.java +++ b/components/camel-google-bigquery/src/test/java/org/apache/camel/component/google/bigquery/unit/GoogleBigQueryProducerTest.java @@ -33,6 +33,7 @@ import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; public class GoogleBigQueryProducerTest extends BaseBigQueryTest { + @Test public void sendMessage() throws Exception { producer.process(createExchangeWithBody(new HashMap<>())); @@ -57,7 +58,6 @@ public class GoogleBigQueryProducerTest extends BaseBigQueryTest { assertNull(requests.get(0).getRows().get(0).getInsertId()); } - @Test public void useAsInsertIdConfig() throws Exception { configuration.setUseAsInsertId("row1");