Search in sources :

Example 1 with Server

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();
    }
}
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)

Example 2 with Server

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();
    }
}
Also used : Server(runwar.Server) File(java.io.File)

Aggregations

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