use of runwar.Server in project runwar by cfmlprojects.
the class StartStopTest method testAliasMapProcessed.
@Test
public void testAliasMapProcessed() {
ServerOptions serverOptions = new ServerOptionsImpl();
serverOptions.setWarFile(new File(DefaultServer.SIMPLEWARPATH)).setDebug(true).setBackground(false).setTrayEnabled(false);
Server server = new Server();
try {
server.startServer(serverOptions);
} catch (Exception e) {
e.printStackTrace();
}
try {
Stop.stopServer(serverOptions, false);
} catch (Exception e) {
e.printStackTrace();
}
}
use of runwar.Server in project runwar by cfmlprojects.
the class DefaultServer method beforeEach.
@Override
public void beforeEach(ExtensionContext context) throws Exception {
try {
serverOptions.setWarFile(new File(SIMPLEWARPATH)).setDebug(true).setBackground(false).setTrayEnabled(false);
server = new Server();
server.startServer(serverOptions);
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations