activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r639282 - in /activemq/trunk/activemq-camel-loadtest: ./ src/test/java/org/apache/activemq/soaktest/localBroker/ src/test/resources/org/apache/activemq/soaktest/localBroker/
Date Thu, 20 Mar 2008 13:21:01 GMT
Author: jstrachan
Date: Thu Mar 20 06:20:59 2008
New Revision: 639282

URL: http://svn.apache.org/viewvc?rev=639282&view=rev
Log:
added a soak test for a separate local broker

Added:
    activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/localBroker/
    activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest.java
      - copied, changed from r639254, activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/LoadTest.java
    activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/
    activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
  (with props)
Modified:
    activemq/trunk/activemq-camel-loadtest/pom.xml

Modified: activemq/trunk/activemq-camel-loadtest/pom.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-camel-loadtest/pom.xml?rev=639282&r1=639281&r2=639282&view=diff
==============================================================================
--- activemq/trunk/activemq-camel-loadtest/pom.xml (original)
+++ activemq/trunk/activemq-camel-loadtest/pom.xml Thu Mar 20 06:20:59 2008
@@ -145,8 +145,8 @@
             <include>**/*Test.*</include>
           </includes>
           <excludes>
-
-
+            <!-- lets by default exclude tests requiring local broker -->
+            <exclude>**/localBroker/**.*</exclude>
           </excludes>
         </configuration>
       </plugin>

Copied: activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest.java
(from r639254, activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/LoadTest.java)
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest.java?p2=activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest.java&p1=activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/LoadTest.java&r1=639254&r2=639282&rev=639282&view=diff
==============================================================================
--- activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/LoadTest.java
(original)
+++ activemq/trunk/activemq-camel-loadtest/src/test/java/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest.java
Thu Mar 20 06:20:59 2008
@@ -15,7 +15,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.activemq.soaktest;
+package org.apache.activemq.soaktest.localBroker;
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -24,10 +24,12 @@
 import org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests;
 
 /**
+ * Runs a load test on a separate broker on localhost
+ *
  * @version $Revision: 1.1 $
  */
 @ContextConfiguration
-public class LoadTest extends AbstractJUnit38SpringContextTests {
+public class LocalBrokerLoadTest extends AbstractJUnit38SpringContextTests {
     @Autowired
     protected CamelContext camelContext;
 

Added: activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml?rev=639282&view=auto
==============================================================================
--- activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
(added)
+++ activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
Thu Mar 20 06:20:59 2008
@@ -0,0 +1,47 @@
+<?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
+       http://activemq.org/config/1.0 http://activemq.apache.org/schema/core/activemq-core-5.0.0.xsd
+    ">
+
+  <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
+
+    <route>
+      <from uri="dataset:myDataSet"/>
+      <to uri="activemq:example.A"/>
+    </route>
+
+    <route>
+      <from uri="activemq:example.B"/>
+      <to uri="dataset:myDataSet"/>
+    </route>
+
+  </camelContext>
+
+  <bean id="myDataSet" class="org.apache.camel.component.dataset.SimpleDataSet">
+    <property name="size" value="10000"/>
+    <property name="reportCount" value="100"/>
+  </bean>
+
+</beans>
+<!-- END SNIPPET: example -->

Propchange: activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message