Interface MockSendToEndpointStrategyFactory


  • public interface MockSendToEndpointStrategyFactory
    Factory for intercepting sending to endpoint pattern and sending to mock component. This requires having camel-mock on the classpath.
    • Method Detail

      • mock

        EndpointStrategy mock​(String pattern,
                              boolean skip)
        Mock sending to endpoint
        Parameters:
        pattern - pattern for intercepting (null or * = intercept all, otherwise its an text pattern (and regexp).
        skip - whether to skip sending to original endpoint (only to mock endpoint).
        Returns:
        the endpoint strategy that intercepts.