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 2007/09/15 08:48:27 UTC

svn commit: r575880 - in /activemq/camel/trunk/examples/camel-example-docs: ./ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache/camel/ src/test/java/org/apache/camel/example/ src/test/java/org/apache/camel/...

Author: jstrachan
Date: Fri Sep 14 23:48:26 2007
New Revision: 575880

URL: http://svn.apache.org/viewvc?rev=575880&view=rev
Log:
added an integration test

Added:
    activemq/camel/trunk/examples/camel-example-docs/src/test/
    activemq/camel/trunk/examples/camel-example-docs/src/test/java/
    activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/
    activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/
    activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/
    activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/
    activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/docs/
    activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/docs/IntegrationTest.java   (with props)
Modified:
    activemq/camel/trunk/examples/camel-example-docs/pom.xml

Modified: activemq/camel/trunk/examples/camel-example-docs/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-docs/pom.xml?rev=575880&r1=575879&r2=575880&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-docs/pom.xml (original)
+++ activemq/camel/trunk/examples/camel-example-docs/pom.xml Fri Sep 14 23:48:26 2007
@@ -48,6 +48,13 @@
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
     </dependency>
+
+    <!-- for testing -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
 
 

Added: activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/docs/IntegrationTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/docs/IntegrationTest.java?rev=575880&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/docs/IntegrationTest.java (added)
+++ activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/docs/IntegrationTest.java Fri Sep 14 23:48:26 2007
@@ -0,0 +1,32 @@
+/**
+ *
+ * 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.example.docs;
+
+import junit.framework.TestCase;
+import org.apache.camel.spring.Main;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+public class IntegrationTest extends TestCase {
+
+    public void testCamelRulesDeployCorrectlyInSpring() throws Exception {
+        // lets boot up the Spring application context for 2 seconds to check it works OK
+        Main.main("-duration", "2s", "-o", "target/site/cameldoc");
+    }
+}

Propchange: activemq/camel/trunk/examples/camel-example-docs/src/test/java/org/apache/camel/example/docs/IntegrationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native