use of org.junit.Before in project camel by apache.
the class GroovyExpressionTest method setUp.
@Override
@Before
public void setUp() throws Exception {
exchange = new DefaultExchange(new DefaultCamelContext());
exchange.getIn().setHeader("foo.bar", "cheese");
exchange.getIn().setHeader("name", "James");
}
use of org.junit.Before in project camel by apache.
the class CamelComponentVerifierTest method setUp.
@Before
@Override
public void setUp() throws Exception {
localServer = new Server(PORT);
localServer.setHandler(handlers(contextHandler("/basic", new BasicValidationHandler("GET", null, null, getExpectedContent()))));
localServer.start();
super.setUp();
}
use of org.junit.Before in project camel by apache.
the class HttpDisableStreamCacheTest method setUp.
@Before
@Override
public void setUp() throws Exception {
localServer = ServerBootstrap.bootstrap().setHttpProcessor(getBasicHttpProcessor()).setConnectionReuseStrategy(getConnectionReuseStrategy()).setResponseFactory(getHttpResponseFactory()).setExpectationVerifier(getHttpExpectationVerifier()).setSslContext(getSSLContext()).registerHandler("/test/", new BasicValidationHandler("GET", null, null, getExpectedContent())).create();
localServer.start();
super.setUp();
}
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 HttpDefaultPortNumberTest method setUp.
@Before
@Override
public void setUp() throws Exception {
localServer = ServerBootstrap.bootstrap().setHttpProcessor(getBasicHttpProcessor()).setConnectionReuseStrategy(getConnectionReuseStrategy()).setResponseFactory(getHttpResponseFactory()).setExpectationVerifier(getHttpExpectationVerifier()).setSslContext(getSSLContext()).registerHandler("/search", new BasicValidationHandler("GET", null, null, getExpectedContent())).create();
localServer.start();
super.setUp();
}
Aggregations