In this case you may need to put the properties file (myprop.properties) into
the test src resource directory to override it.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
W
Hi,
I gave this a try but since I am using the plain spring configuration
rather than extending a class with Camel Spring Support there isn't a
method to override.
My class signature looks like this:
@RunWith(CamelSpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={
"classpath:META-I
Hi,
Have you overrided the method as described in the doc of apache camel (
http://camel.apache.org/properties.html) ?
@Override
protected Properties useOverridePropertiesWithPropertiesComponent() {
Properties extra = new Properties();
extra.put("destination", "mock:extra");
extra.put
Hi Claus,
I am using plain spring testing and annotating my custom class like this:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class MyCamelTest {
I don't think I am able to use useOverridePropertiesWithPropertiesComponent
in this scenario. Is there a similar technique I
Hi
See useOverridePropertiesWithPropertiesComponent
http://camel.apache.org/camel-test.html
On Fri, Oct 24, 2014 at 11:44 PM, ychawla wrote:
> Hello All,
> I have a unit test and I want to change a camel property. I am only a
> single version of the configuration file to test against so I would