You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by cc...@apache.org on 2008/12/08 21:22:07 UTC
svn commit: r724469 - in
/servicemix/components/engines/servicemix-camel/trunk: ./
src/test/java/org/apache/servicemix/camel/
src/test/resources/org/apache/servicemix/camel/su10-src/
Author: ccustine
Date: Mon Dec 8 12:22:07 2008
New Revision: 724469
URL: http://svn.apache.org/viewvc?rev=724469&view=rev
Log:
SM-1720 camel-mina doesn't deploy in ServiceMix
Added:
servicemix/components/engines/servicemix-camel/trunk/src/test/java/org/apache/servicemix/camel/MinaEndpointSpringDSLTest.java
servicemix/components/engines/servicemix-camel/trunk/src/test/resources/org/apache/servicemix/camel/su10-src/
servicemix/components/engines/servicemix-camel/trunk/src/test/resources/org/apache/servicemix/camel/su10-src/camel-context.xml
Modified:
servicemix/components/engines/servicemix-camel/trunk/pom.xml
Modified: servicemix/components/engines/servicemix-camel/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-camel/trunk/pom.xml?rev=724469&r1=724468&r2=724469&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-camel/trunk/pom.xml (original)
+++ servicemix/components/engines/servicemix-camel/trunk/pom.xml Mon Dec 8 12:22:07 2008
@@ -95,6 +95,12 @@
</exclusions>
</dependency>
<dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-mina</artifactId>
+ <version>${camel-version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-shared</artifactId>
<version>${servicemix-shared-version}</version>
@@ -207,6 +213,10 @@
<configuration>
<childDelegation>false</childDelegation>
<useFile>true</useFile>
+ <excludes>
+ <!-- Enable this test when we upgrade to Camel 1.5.1 or 2.0.0 (Fix is in CAMEL-1146) -->
+ <exclude>**/MinaEndpointSpringDSLTest.*</exclude>
+ </excludes>
</configuration>
</plugin>
</plugins>
Added: servicemix/components/engines/servicemix-camel/trunk/src/test/java/org/apache/servicemix/camel/MinaEndpointSpringDSLTest.java
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-camel/trunk/src/test/java/org/apache/servicemix/camel/MinaEndpointSpringDSLTest.java?rev=724469&view=auto
==============================================================================
--- servicemix/components/engines/servicemix-camel/trunk/src/test/java/org/apache/servicemix/camel/MinaEndpointSpringDSLTest.java (added)
+++ servicemix/components/engines/servicemix-camel/trunk/src/test/java/org/apache/servicemix/camel/MinaEndpointSpringDSLTest.java Mon Dec 8 12:22:07 2008
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.camel;
+
+import java.util.List;
+import junit.framework.Assert;
+import org.apache.servicemix.jbi.container.ActivationSpec;
+
+/**
+ * This tests whether camel-mina can be deployed in ServiceMix (see CAMEL-1146)
+ */
+public class MinaEndpointSpringDSLTest extends SpringJbiTestSupport {
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ public void test() throws Exception {
+ Assert.assertTrue(true);
+ }
+
+ @Override
+ protected String getServiceUnitName() {
+ return "su10";
+ }
+
+ @Override
+ protected void appendJbiActivationSpecs(List<ActivationSpec> activationSpecList) {
+ }
+
+}
Added: servicemix/components/engines/servicemix-camel/trunk/src/test/resources/org/apache/servicemix/camel/su10-src/camel-context.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-camel/trunk/src/test/resources/org/apache/servicemix/camel/su10-src/camel-context.xml?rev=724469&view=auto
==============================================================================
--- servicemix/components/engines/servicemix-camel/trunk/src/test/resources/org/apache/servicemix/camel/su10-src/camel-context.xml (added)
+++ servicemix/components/engines/servicemix-camel/trunk/src/test/resources/org/apache/servicemix/camel/su10-src/camel-context.xml Mon Dec 8 12:22:07 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<!-- START SNIPPET: camel -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+ ">
+
+ <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
+ <route>
+ <from uri="mina:tcp://localhost:6200?textline=true"/>
+ <to uri="mock:result"/>
+ </route>
+ </camelContext>
+
+</beans>
+<!-- END SNIPPET: camel -->