Skip to content

Instantly share code, notes, and snippets.

View BorisDaich's full-sized avatar

Boris Daich BorisDaich

  • Boris Daich Consulting
  • Israel
View GitHub Profile
@BorisDaich
BorisDaich / Test_Eli_s3.java
Created October 3, 2018 14:53
camel sample Junit test - how to replace a pollEnrich call to a 3rd party service in an existing Route with a constant
package biz.daich.learning.camel;
import org.apache.camel.builder.AdviceWithRouteBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.model.RouteDefinition;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Test;
import lombok.extern.slf4j.Slf4j;
package biz.daich.learning.camel;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.processor.aggregate.GroupedBodyAggregationStrategy;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Test;
public class Test_oncompletion_agregate extends CamelTestSupport {