You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alex (Jira)" <ji...@apache.org> on 2021/02/17 15:04:00 UTC
[jira] [Created] (CAMEL-16230) Placeholders not Working with
CamelSpringBootTest and AdviceWith
Alex created CAMEL-16230:
----------------------------
Summary: Placeholders not Working with CamelSpringBootTest and AdviceWith
Key: CAMEL-16230
URL: https://issues.apache.org/jira/browse/CAMEL-16230
Project: Camel
Issue Type: Bug
Components: tests
Affects Versions: 3.7.2
Reporter: Alex
Unable to use camel placeholders in a CamelSpringBootTest:
This does not work:
{code}
AdviceWith.adviceWith(camelContext, "person-import", route -> {
route.replaceFromWith("direct:csv");
route.mockEndpointsAndSkip("{{camel.placeholder}}");
});
{code}
This does:
{code}
AdviceWith.adviceWith(camelContext, "person-import", route -> {
route.replaceFromWith("direct:csv");
route.mockEndpointsAndSkip("jpa:MyEntity");
});
{code}
My route is defined like so:
{code}
from("{{camel.person.csv.file}}")
.id("person-import")
.unmarshal(bindy)
.process(new CamelLogger())
.to("{{camel.placeholder}}")
;
{code}
My placeholder is application.yaml of Spring Boot
{code}
camel:
placeholder: "jpa:MyEntity"
{code}
Please advise
Best Regards
Alex
--
This message was sent by Atlassian Jira
(v8.3.4#803005)