Hi See useOverridePropertiesWithPropertiesComponent http://camel.apache.org/camel-test.html
On Fri, Oct 24, 2014 at 11:44 PM, ychawla <premiergenerat...@gmail.com> 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 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 > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Change-property-in-unit-test-tp5758017.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/