Search in sources :

Example 1 with ServerOptionsImpl

use of runwar.options.ServerOptionsImpl 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();
    }
}
Also used : ServerOptionsImpl(runwar.options.ServerOptionsImpl) DefaultServer(testutils.DefaultServer) Server(runwar.Server) ServerOptions(runwar.options.ServerOptions) File(java.io.File) Test(org.junit.jupiter.api.Test)

Aggregations

File (java.io.File)1 Test (org.junit.jupiter.api.Test)1 Server (runwar.Server)1 ServerOptions (runwar.options.ServerOptions)1 ServerOptionsImpl (runwar.options.ServerOptionsImpl)1 DefaultServer (testutils.DefaultServer)1