I have the routes defined in My So I created But I'm not sure how to prepare a test, which both the spring XML loads and provides access to the fake endpoint. If I use .. I do not know how to get fake endpoint if I use .. Then I do not know how to load my topical reference .. I can not get an example test on the website which is Tom has already posted on the camel mailing list. I suggest that when you post a quote here, you will write it. The answer has already been posted here CamelRoutes.xml and I want to test them using The wrapping technique is described below.
CamelRoutes.xml
& lt; Route autoStartup = "true" xmlns = "http: / /camel.apache.org/schema/spring"> & Lt; From Yuri = "Direct: Start" /> & Lt; From Yuri = "direct: end" /> & Lt; / Route & gt;
with CamelRoutesTest.xml :
@ContextConfiguration (places = ("/ CamelRoutesTest")) provides public class CamelTest AbstractJUnit38SpringContextTests}
public class CamelTest CamelTestSupport Provides}
CamelTestSupport And Spring uses load route xml.
Comments
Post a Comment