Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57EB8172FB for ; Mon, 1 Jun 2015 07:10:16 +0000 (UTC) Received: (qmail 56862 invoked by uid 500); 1 Jun 2015 07:10:16 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 56751 invoked by uid 500); 1 Jun 2015 07:10:16 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 56289 invoked by uid 99); 1 Jun 2015 07:10:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2015 07:10:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AA4E5E0508; Mon, 1 Jun 2015 07:10:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Mon, 01 Jun 2015 07:10:27 -0000 Message-Id: <00173f6825aa464eacd110ead89ebc22@git.apache.org> In-Reply-To: <0fdc790ffac247a195d991081f4f9468@git.apache.org> References: <0fdc790ffac247a195d991081f4f9468@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/14] camel git commit: Add camel-slack to kit Add camel-slack to kit Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/eaf4ab99 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/eaf4ab99 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/eaf4ab99 Branch: refs/heads/master Commit: eaf4ab99aad4f79a19abc517a6f918fad47113d9 Parents: a0003f5 Author: Claus Ibsen Authored: Mon Jun 1 09:11:44 2015 +0200 Committer: Claus Ibsen Committed: Mon Jun 1 09:11:44 2015 +0200 ---------------------------------------------------------------------- apache-camel/pom.xml | 4 + .../src/main/descriptors/common-bin.xml | 1 + components/camel-slack/pom.xml | 81 ++++++++++---------- .../resources/OSGI-INF/blueprint/blueprint.xml | 42 ---------- .../component/slack/SlackProducerTest.java | 8 +- .../resources/OSGI-INF/blueprint/blueprint.xml | 42 ++++++++++ components/pom.xml | 1 + parent/pom.xml | 6 ++ 8 files changed, 101 insertions(+), 84 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/apache-camel/pom.xml ---------------------------------------------------------------------- diff --git a/apache-camel/pom.xml b/apache-camel/pom.xml index 03cf602..53e6b8c 100644 --- a/apache-camel/pom.xml +++ b/apache-camel/pom.xml @@ -668,6 +668,10 @@ org.apache.camel + camel-slack + + + org.apache.camel camel-smpp http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/apache-camel/src/main/descriptors/common-bin.xml ---------------------------------------------------------------------- diff --git a/apache-camel/src/main/descriptors/common-bin.xml b/apache-camel/src/main/descriptors/common-bin.xml index 48ac728..d24d053 100644 --- a/apache-camel/src/main/descriptors/common-bin.xml +++ b/apache-camel/src/main/descriptors/common-bin.xml @@ -178,6 +178,7 @@ org.apache.camel:camel-shiro org.apache.camel:camel-sip org.apache.camel:camel-sjms + org.apache.camel:camel-slack org.apache.camel:camel-smpp org.apache.camel:camel-snmp org.apache.camel:camel-soap http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/components/camel-slack/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-slack/pom.xml b/components/camel-slack/pom.xml index dd4292b..16ce46a 100644 --- a/components/camel-slack/pom.xml +++ b/components/camel-slack/pom.xml @@ -19,55 +19,56 @@ limitations under the License. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - 4.0.0 + 4.0.0 - - components - org.apache.camel - 2.16-SNAPSHOT - + + components + org.apache.camel + 2.16-SNAPSHOT + - camel-slack - bundle - Camel :: Slack - Camel Slack Support + camel-slack + bundle + Camel :: Slack + Camel Slack Support - - org.apache.camel.component.slack.* - org.apache.camel.spi.ComponentResolver;component=slack - + + org.apache.camel.component.slack.* + org.apache.camel.spi.ComponentResolver;component=slack + - + - - org.apache.camel - camel-core - + + org.apache.camel + camel-core + - - com.googlecode.json-simple - json-simple - 1.1.1 - + + com.googlecode.json-simple + json-simple + ${json-simple-version} + - - org.apache.httpcomponents - httpclient - ${httpclient4-version} - + + org.apache.httpcomponents + httpclient + ${httpclient4-version} + - - - org.apache.camel - camel-test-blueprint - - - org.slf4j - slf4j-log4j12 - test - + + + org.apache.camel + camel-test-blueprint + test + + + org.slf4j + slf4j-log4j12 + test + - + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml ---------------------------------------------------------------------- diff --git a/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml deleted file mode 100644 index 08a6da5..0000000 --- a/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - java.lang.Exception - - true - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackProducerTest.java ---------------------------------------------------------------------- diff --git a/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackProducerTest.java b/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackProducerTest.java index bd3aa98..457418b 100644 --- a/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackProducerTest.java +++ b/components/camel-slack/src/test/java/org/apache/camel/component/slack/SlackProducerTest.java @@ -28,15 +28,19 @@ public class SlackProducerTest extends CamelBlueprintTestSupport { @Test public void testSlackMessage() throws Exception { - getMockEndpoint(("mock:errors")).expectedMessageCount(0); + getMockEndpoint("mock:errors").expectedMessageCount(0); + template.sendBody("direct:test", "Hello from Camel!"); + assertMockEndpointsSatisfied(); } @Test public void testSlackError() throws Exception { - getMockEndpoint(("mock:errors")).expectedMessageCount(1); + getMockEndpoint("mock:errors").expectedMessageCount(1); + template.sendBody("direct:error", "Error from Camel!"); + assertMockEndpointsSatisfied(); } } http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/components/camel-slack/src/test/resources/OSGI-INF/blueprint/blueprint.xml ---------------------------------------------------------------------- diff --git a/components/camel-slack/src/test/resources/OSGI-INF/blueprint/blueprint.xml b/components/camel-slack/src/test/resources/OSGI-INF/blueprint/blueprint.xml new file mode 100644 index 0000000..08a6da5 --- /dev/null +++ b/components/camel-slack/src/test/resources/OSGI-INF/blueprint/blueprint.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + java.lang.Exception + + true + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/components/pom.xml ---------------------------------------------------------------------- diff --git a/components/pom.xml b/components/pom.xml index e364395..c6fa5ba 100644 --- a/components/pom.xml +++ b/components/pom.xml @@ -199,6 +199,7 @@ camel-smpp camel-snmp camel-sjms + camel-slack camel-soap camel-solr camel-spark-rest http://git-wip-us.apache.org/repos/asf/camel/blob/eaf4ab99/parent/pom.xml ---------------------------------------------------------------------- diff --git a/parent/pom.xml b/parent/pom.xml index d50ea24..ea2dd1a 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -294,6 +294,7 @@ 3.2.8_1 1.0.2 2.0.0 + 1.1.1 2.1.1 1.0.1 1.1.1 @@ -1375,6 +1376,11 @@ org.apache.camel + camel-slack + ${project.version} + + + org.apache.camel camel-soap ${project.version}