use of com.meterware.servletunit.ServletRunner in project camel by apache.
the class ServletCamelRouterTestSupport method setUp.
@Before
public void setUp() throws Exception {
InputStream is = this.getClass().getResourceAsStream(getConfiguration());
assertNotNull("The configuration input stream should not be null", is);
sr = new ServletRunner(is, CONTEXT);
HttpUnitOptions.setExceptionsThrownOnErrorStatus(true);
if (startCamelContext) {
super.setUp();
}
}
use of com.meterware.servletunit.ServletRunner in project camel by apache.
the class ServletCamelTestSupport method setUp.
@Before
public void setUp() throws Exception {
InputStream is = this.getClass().getResourceAsStream(getConfiguration());
assertNotNull("The configuration input stream should not be null", is);
sr = new ServletRunner(is, CONTEXT);
HttpUnitOptions.setExceptionsThrownOnErrorStatus(true);
}
use of com.meterware.servletunit.ServletRunner in project AJSC by att.
the class ServletCamelRouterTestSupport method setUp.
@Before
public void setUp() throws Exception {
InputStream is = this.getClass().getResourceAsStream(getConfiguration());
assertNotNull("The configuration input stream should not be null", is);
sr = new ServletRunner(is, CONTEXT);
HttpUnitOptions.setExceptionsThrownOnErrorStatus(true);
if (startCamelContext) {
super.setUp();
}
}
use of com.meterware.servletunit.ServletRunner in project v7files by thiloplanz.
the class BucketsServletTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
sr = new ServletRunner();
sr.registerServlet("myServlet/*", TestBucketsServlet.class.getName());
}
use of com.meterware.servletunit.ServletRunner in project v7files by thiloplanz.
the class MiltonServletTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Properties props = UnitTestSupport.getDefaultProperties();
props.put("auth.provider", "demo");
props.put("acl.provider", "global");
props.put("acl.read", "admins");
props.put("acl.write", "admins");
UnitTestSupport.initConfiguration(props);
sr = new ServletRunner();
Hashtable<String, String> initParams = new Hashtable<String, String>();
initParams.put("webdav.endpoint", "webdav");
initParams.put("resource.factory.factory.class", ResourceFactoryFactory.class.getName());
sr.registerServlet("myServlet/*", MiltonServlet.class.getName(), initParams);
}
Aggregations