Author: jstrachan
Date: Tue Dec  2 12:11:23 2008
New Revision: 722600

URL: http://svn.apache.org/viewvc?rev=722600&view=rev
Log:
added a working test case using Spring JavaConfig

Modified:
    activemq/camel/trunk/components/camel-spring-javaconfig/pom.xml
    
activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/patterns/FilterTest.java

Modified: activemq/camel/trunk/components/camel-spring-javaconfig/pom.xml
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring-javaconfig/pom.xml?rev=722600&r1=722599&r2=722600&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring-javaconfig/pom.xml (original)
+++ activemq/camel/trunk/components/camel-spring-javaconfig/pom.xml Tue Dec  2 
12:11:23 2008
@@ -95,11 +95,10 @@
         <configuration>
           <excludes>
             <!-- TODO FixMe -->
-            <exclude>**/FilterTest.*</exclude>
+            <!--<exclude>**/FilterTest.*</exclude>-->
           </excludes>
         </configuration>
       </plugin>
-
     </plugins>
   </build>
 </project>

Modified: 
activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/patterns/FilterTest.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/patterns/FilterTest.java?rev=722600&r1=722599&r2=722600&view=diff
==============================================================================
--- 
activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/patterns/FilterTest.java
 (original)
+++ 
activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/patterns/FilterTest.java
 Tue Dec  2 12:11:23 2008
@@ -28,6 +28,7 @@
 import org.springframework.config.java.test.JavaConfigContextLoader;
 import org.springframework.test.context.ContextConfiguration;
 import 
org.springframework.test.context.junit38.AbstractJUnit38SpringContextTests;
+import org.springframework.test.annotation.DirtiesContext;
 
 /**
  * @version $Revision: 1.1 $
@@ -41,6 +42,7 @@
     @Produce(uri = "direct:start")
     protected ProducerTemplate template;
 
+    @DirtiesContext
     public void testSendMatchingMessage() throws Exception {
         String expectedBody = "<matched/>";
 
@@ -51,6 +53,7 @@
         resultEndpoint.assertIsSatisfied();
     }
 
+    @DirtiesContext
     public void testSendNotMatchingMessage() throws Exception {
         resultEndpoint.expectedMessageCount(0);
 


Reply via email to