camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r881383 - /camel/trunk/components/camel-test/src/test/java/org/apache/camel/test/patterns/JMSFilterTest.java
Date Tue, 17 Nov 2009 17:18:50 GMT
Author: janstey
Date: Tue Nov 17 17:18:50 2009
New Revision: 881383

URL: http://svn.apache.org/viewvc?rev=881383&view=rev
Log:
removing duplicated code i just added

Modified:
    camel/trunk/components/camel-test/src/test/java/org/apache/camel/test/patterns/JMSFilterTest.java

Modified: camel/trunk/components/camel-test/src/test/java/org/apache/camel/test/patterns/JMSFilterTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test/src/test/java/org/apache/camel/test/patterns/JMSFilterTest.java?rev=881383&r1=881382&r2=881383&view=diff
==============================================================================
--- camel/trunk/components/camel-test/src/test/java/org/apache/camel/test/patterns/JMSFilterTest.java
(original)
+++ camel/trunk/components/camel-test/src/test/java/org/apache/camel/test/patterns/JMSFilterTest.java
Tue Nov 17 17:18:50 2009
@@ -33,31 +33,7 @@
   * @version $Revision: 724291 $
  */
 // START SNIPPET: example
-public class JMSFilterTest extends CamelTestSupport {
-
-    @EndpointInject(uri = "mock:result")
-    protected MockEndpoint resultEndpoint;
-
-    @Produce(uri = "direct:start")
-    protected ProducerTemplate template;
-
-    public void testSendMatchingMessage() throws Exception {
-        String expectedBody = "<matched/>";
-
-        resultEndpoint.expectedBodiesReceived(expectedBody);
-
-        template.sendBodyAndHeader(expectedBody, "foo", "bar");
-
-        resultEndpoint.assertIsSatisfied();
-    }
-
-    public void testSendNotMatchingMessage() throws Exception {
-        resultEndpoint.expectedMessageCount(0);
-
-        template.sendBodyAndHeader("<notMatched/>", "foo", "notMatchedHeaderValue");
-
-        resultEndpoint.assertIsSatisfied();
-    }
+public class JMSFilterTest extends FilterTest {
 
     @Override
     protected CamelContext createCamelContext() throws Exception {



Mime
View raw message