Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Change property in unit test

$
0
0
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 like to
change the property in code. For example, I thought I could do something
like this:

context.getProperties().put("myProperty", "false");

However, that didn't do it.

I see that I can resolve a property like this:

context.resolvePropertyPlaceholders("property");

However it doesn't look like I can change its value. Is there a way to
dynamically change a property in a Camel Context unit test?

Thanks,
Yogesh

Viewing all articles
Browse latest Browse all 5648

Trending Articles