Which version of Camel are you using? I just run the test in camel master branch, all the tests passed.
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On October 30, 2014 at 6:32:31 AM, wjmcdonald (william.mcdon...@transcentra.com) wrote: > I get the following error in the testMockAllEndpoints test, but the other two > work fine: > > java.lang.AssertionError: mock://seda:result Received message count. > Expected: <1> but was: <0> > at > org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1318) > at > org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1300) > > at > org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:372) > > at > org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:351) > > at > org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:339) > > at > org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:177) > > at > org.apache.camel.test.junit4.CamelTestSupport.assertMockEndpointsSatisfied(CamelTestSupport.java:626) > > at > automocking.IsMockEndpointsJUnit4Test.testMockAllEndpoints(IsMockEndpointsJUnit4Test.java:38) > > ... > > However, the regular mock works in the first route, and the second route > works with a regular mock, demonstrating that the message is getting to the > seda:result component. Although the mocks seem to be getting created > because of the isMockEndpoints() method, they don't seem to be getting the > exchange for some reason. Can you provide a blueprint example that works > that I can try out? IsMockEndpointsJUnit4Test.java > > IsMockEndpoints.xml > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/AutoMocking-not-working-with-Blueprint-tp5758319.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >