protected void NOsetUp() throws Exception {
super.setUp();
volantis = new Volantis();
servletContext = new ServletContextStub();
AppManager mgr = new AppManager(volantis, servletContext);
mgr.setAppConf(new DefaultAppConfigurator() {
public void setUp(ConfigValue config) throws Exception {
// Set up default values...
super.setUp(config);
// ... apart from what we are testing.
config.pagePackagingMimeEnabled = Boolean.TRUE;
config.baseUrl = "http://localhost:" + port;
config.internalUrl = "http://localhost:" + port;
}
});
mgr.useAppWith(new AppExecutor() {
public void execute(AppContext context) throws Exception {
// Start the server on the current port number
System.err.println("Creating server on port " + port);
server = new HTTPResourceServer(port);
server.start();