use of org.junit.Before in project camel by apache.
the class AbstractDirectVmTestSupport method setUp.
@Override
@Before
protected void setUp() throws Exception {
super.setUp();
doPostSetup();
context2 = new DefaultCamelContext();
template2 = context2.createProducerTemplate();
ServiceHelper.startServices(template2, context2);
// add routes after CamelContext has been started
RouteBuilder routeBuilder = createRouteBuilderForSecondContext();
if (routeBuilder != null) {
context2.addRoutes(routeBuilder);
}
}
use of org.junit.Before in project camel by apache.
the class AbstractVmTestSupport method setUp.
@Override
@Before
protected void setUp() throws Exception {
super.setUp();
context2 = new DefaultCamelContext();
template2 = context2.createProducerTemplate();
ServiceHelper.startServices(template2, context2);
// add routes after CamelContext has been started
RouteBuilder routeBuilder = createRouteBuilderForSecondContext();
if (routeBuilder != null) {
context2.addRoutes(routeBuilder);
}
}
use of org.junit.Before in project camel by apache.
the class HttpHeaderFilterStrategyTest method setUp.
@Before
public void setUp() {
filter = new HttpHeaderFilterStrategy();
exchange = new DefaultExchange(new DefaultCamelContext());
}
use of org.junit.Before in project camel by apache.
the class SelectCommandTest method setUp.
@Before
public void setUp() {
sdbClient = new AmazonSDBClientMock();
configuration = new SdbConfiguration();
configuration.setDomainName("DOMAIN1");
configuration.setConsistentRead(Boolean.TRUE);
exchange = new DefaultExchange(new DefaultCamelContext());
command = new SelectCommand(sdbClient, configuration, exchange);
}
use of org.junit.Before in project camel by apache.
the class S3ComponentFileTest method setup.
@Before
public void setup() throws Exception {
super.setUp();
testFile = FileUtil.createTempFile("test", "file");
FileWriter writer = new FileWriter(testFile);
writer.write("This is my bucket content.");
writer.close();
}
Aggregations