camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Minh Tran (JIRA)" <>
Subject [jira] [Created] (CAMEL-9332) Support @MockEndpoint and @MockEndpointAndSkip in Spring Boot
Date Mon, 16 Nov 2015 21:47:11 GMT
Minh Tran created CAMEL-9332:

             Summary: Support @MockEndpoint and @MockEndpointAndSkip in Spring Boot
                 Key: CAMEL-9332
             Project: Camel
          Issue Type: Improvement
          Components: camel-spring-boot, camel-test
    Affects Versions: 2.16.0
         Environment: mac, jdk7
            Reporter: Minh Tran

My route looks like


My unit test looks like

@SpringApplicationConfiguration(classes = Config.class)
public class MyUnitTest {

 private ProducerTemplate producer;

 private MockEndpoint end;

	public void testMock() throws InterruptedException {


It looks like the direct:end bit is never mocked so the assertion fails. It’s like @MockEndpoints
is completely ignored. 

There are workarounds described here

There are disadvantages to these workarounds as listed in that thread. Thanks

This message was sent by Atlassian JIRA

View raw message