camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r987968 - in /camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources: pom.xml src/test/java/HelloWorldComponentTest.java
Date Mon, 23 Aug 2010 01:20:03 GMT
Author: janstey
Date: Mon Aug 23 01:20:03 2010
New Revision: 987968

URL: http://svn.apache.org/viewvc?rev=987968&view=rev
Log:
switch to camel-test for test support

Modified:
    camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/pom.xml
    camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/test/java/HelloWorldComponentTest.java

Modified: camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/pom.xml?rev=987968&r1=987967&r2=987968&view=diff
==============================================================================
--- camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/pom.xml
(original)
+++ camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/pom.xml
Mon Aug 23 01:20:03 2010
@@ -49,11 +49,10 @@
     </dependency>
     <dependency>
       <groupId>org.apache.camel</groupId>
-      <artifactId>camel-core</artifactId>
+      <artifactId>camel-test</artifactId>
       <version>${camel-version}</version>      
-      <type>test-jar</type>
       <scope>test</scope>
-    </dependency>        
+    </dependency>      
   </dependencies>
 
   <build>

Modified: camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/test/java/HelloWorldComponentTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/test/java/HelloWorldComponentTest.java?rev=987968&r1=987967&r2=987968&view=diff
==============================================================================
--- camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/test/java/HelloWorldComponentTest.java
(original)
+++ camel/trunk/tooling/archetypes/camel-archetype-component/src/main/resources/archetype-resources/src/test/java/HelloWorldComponentTest.java
Mon Aug 23 01:20:03 2010
@@ -16,13 +16,15 @@
  */
 package ${packageName};
 
-import org.apache.camel.ContextTestSupport;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
 
-public class HelloWorldComponentTest extends ContextTestSupport {
+public class HelloWorldComponentTest extends CamelTestSupport {
 
-    public void testHelloWorld() throws Exception {
+    @Test
+    public void testTimerInvokesBeanMethod() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMinimumMessageCount(1);       
         



Mime
View raw message