[
https://issues.apache.org/jira/browse/CAMEL-7963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283724#comment-14283724
]
Henryk Konsek commented on CAMEL-7963:
--------------------------------------
Hi Chris,
I've just added support for Camel core annotations. For example:
{code}
@RunWith(SpringJUnit4ClassRunner.class)
@EnableAutoConfiguration
@SpringApplicationConfiguration(classes = {CamelAnnotationsTest.class,
CamelAnnotationsTestConfig.class})
@IntegrationTest
public class CamelAnnotationsTest extends Assert {
@Autowired
ProducerTemplate producerTemplate;
@EndpointInject(uri = "mock:test")
MockEndpoint mockEndpoint;
@Test
public void shouldInjectEndpoint() throws InterruptedException {
mockEndpoint.setExpectedMessageCount(1);
producerTemplate.sendBody("direct:test", "msg");
mockEndpoint.assertIsSatisfied();
}
}
{code}
I still need to add support for Spring test annotations like
{{@MockEndpoints}}. Stay tuned :) .
> Add Spring Boot support
> -----------------------
>
> Key: CAMEL-7963
> URL: https://issues.apache.org/jira/browse/CAMEL-7963
> Project: Camel
> Issue Type: New Feature
> Reporter: Henryk Konsek
> Assignee: Henryk Konsek
> Fix For: 2.15.0
>
>
> We need Spring Boot autoconfiguration for Camel. I created one under Fabric8
> umbrella (1), but I don't believe that is the proper place to keep and
> develop Camel integration, as this is pure Camel stuff. We can just use Camel
> stuff in the Fabric8 instead.
> I will continue to develop Camel Spring Boot integration under Camel umbrella.
> (1)
> https://github.com/fabric8io/fabric8/tree/master/process/process-spring-boot/process-spring-boot-starter-camel
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)