Author: jstrachan Date: Mon Sep 3 12:48:00 2012 New Revision: 1380222 URL: http://svn.apache.org/viewvc?rev=1380222&view=rev Log: minor improvement to also test that the ProducerTemplate injection uses the correct uri
Modified: camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/InjectCamelAnnotationsTest.java Modified: camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/InjectCamelAnnotationsTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/InjectCamelAnnotationsTest.java?rev=1380222&r1=1380221&r2=1380222&view=diff ============================================================================== --- camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/InjectCamelAnnotationsTest.java (original) +++ camel/trunk/components/camel-cdi/src/test/java/org/apache/camel/cdi/InjectCamelAnnotationsTest.java Mon Sep 3 12:48:00 2012 @@ -37,13 +37,13 @@ public class InjectCamelAnnotationsTest @EndpointInject(uri="mock:result") MockEndpoint mockResultEndpoint; - @Produce(uri = "mock:result") + @Produce(uri = "direct:inject") ProducerTemplate myProducer; @Test public void beanShouldBeInjected() throws InterruptedException { mockResultEndpoint.expectedMessageCount(1); - myProducer.sendBody("direct:inject", "hello"); + myProducer.sendBody("hello"); assertMockEndpointsSatisfied();