@Override protected void setUp() throws Exception { super.setUp(); validEndpoint = resolveMandatoryEndpoint("mock:valid", MockEndpoint.class); invalidEndpoint = resolveMandatoryEndpoint("mock:invalid", MockEndpoint.class); validEndpoint.whenAnyExchangeReceived( ProcessorBuilder.setBody(Builder.constant("validResult"))); invalidEndpoint.whenAnyExchangeReceived( ProcessorBuilder.setBody(Builder.constant("invalidResult"))); }
@Override public Processor createProcessor(RouteContext routeContext) throws Exception { ObjectHelper.notNull(getPropertyName(), "propertyName", this); return ProcessorBuilder.removeProperty(getPropertyName()); }