Hi,

my Camel properties work fine during normal execution of the software.
However, when I execute it via JUnit the properties cannot be read anymore.
As this is a spring boot application I stored the properties in the
application.yml properties file.

This is the error-message:
Property with key [myProperty] not found in properties from text:
file:{{myProperty}}/?noop=true

The following annotations are used for the test class:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = MyClass.class)
@ActiveProfiles("test")
and the properties are defined in src/main/resources/application-test.yml



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Properties-Spring-Boot-Unit-test-not-found-tp5779765.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to