You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2008/03/04 18:11:52 UTC
svn commit: r633552 - in
/activemq/camel/trunk/components/camel-spring/src/test:
java/org/apache/camel/component/dataset/
resources/org/apache/camel/component/dataset/
Author: jstrachan
Date: Tue Mar 4 09:11:50 2008
New Revision: 633552
URL: http://svn.apache.org/viewvc?rev=633552&view=rev
Log:
added an example load test
Added:
activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/dataset/
activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/dataset/DataSetTest.java (with props)
activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/dataset/
activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/dataset/DataSetTest-context.xml (with props)
Added: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/dataset/DataSetTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/dataset/DataSetTest.java?rev=633552&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/dataset/DataSetTest.java (added)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/dataset/DataSetTest.java Tue Mar 4 09:11:50 2008
@@ -0,0 +1,37 @@
+/**
+ *
+ * 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.camel.component.dataset;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+@ContextConfiguration
+public class DataSetTest extends AbstractJUnit38SpringContextTests {
+ @Autowired
+ protected CamelContext camelContext;
+
+ public void testRun() throws Exception {
+ MockEndpoint.assertIsSatisfied(camelContext);
+ }
+}
\ No newline at end of file
Propchange: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/dataset/DataSetTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/dataset/DataSetTest-context.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/dataset/DataSetTest-context.xml?rev=633552&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/dataset/DataSetTest-context.xml (added)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/dataset/DataSetTest-context.xml Tue Mar 4 09:11:50 2008
@@ -0,0 +1,44 @@
+<?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: example -->
+<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="dataset:foo"/>
+ <to uri="seda:test.queue"/>
+ </route>
+
+ <route>
+ <from uri="seda:test.queue"/>
+ <to uri="dataset:foo"/>
+ </route>
+
+ </camelContext>
+
+ <bean id="foo" class="org.apache.camel.component.dataset.SimpleDataSet">
+ <property name="size" value="10"/>
+ </bean>
+</beans>
+<!-- END SNIPPET: example -->
Propchange: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/component/dataset/DataSetTest-context.xml
------------------------------------------------------------------------------
svn:eol-style = native