You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "shweta.kumari13feb@gmail.com" <sh...@gmail.com> on 2017/05/19 05:40:03 UTC

My camel test is not reading the injected value from blueprint.xml

HI,

I have written my camel test for a routebuilder , where one property is
injected from blueprint.xml.
In my test class, the value of that property always comes as false(as it
boolean , so default is false).

But in blueprint.xml I have  made it as true.
Also , i tried using loadConfigAdminConfigurationFile  and
useOverridePropertiesWithConfigAdmin.
Nothing is working.

My entry on blueprint.xml

 <cm:property-placeholder persistent-id="value" placeholder-prefix="{{"
placeholder-suffix="}}">
		<cm:default-properties>
			<cm:property name="value.enabled" value="true"/>
		</cm:default-properties>
	</cm:property-placeholder>



My entry in the RouteBuilder class

@PropertyInject("value.enabled")
	private boolean valueEnabled;






--
View this message in context: http://camel.465427.n5.nabble.com/My-camel-test-is-not-reading-the-injected-value-from-blueprint-xml-tp5799829.html
Sent from the Camel - Users mailing list archive at Nabble.com.