Interface AutoMockInterceptStrategy
public interface AutoMockInterceptStrategy
Strategy for intercepting messages sent to endpoints in order to auto-mock them during testing.
Matching by uri or uri pattern, the strategy can redirect sends to a mock and optionally skip sending to the original
endpoint. This powers the camel-test auto-mocking feature (such as
@MockEndpoint); see
org.apache.camel.processor.AutoMockInterceptProducer.- Since:
- 4.15
-
Method Summary
Modifier and TypeMethodDescriptionIntercept sending to the uri or uri pattern.booleanisSkip()Whether to skip sending to the original endpoint.voidsetPattern(String pattern) Intercept sending to the uri or uri pattern.voidsetSkip(boolean skip) Whether to skip sending to the original endpoint.
-
Method Details
-
setPattern
Intercept sending to the uri or uri pattern. -
getPattern
String getPattern()Intercept sending to the uri or uri pattern. -
isSkip
boolean isSkip()Whether to skip sending to the original endpoint. -
setSkip
void setSkip(boolean skip) Whether to skip sending to the original endpoint.
-