All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.nav.dialogarena.mock.MockServer Maven / Gradle / Ivy

There is a newer version: 1.2020.03.11_13.03-97e4fbf52aec
Show newest version
package no.nav.dialogarena.mock;

import no.nav.sbl.dialogarena.common.jetty.Jetty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MockServer {

    public static Jetty startMockServer(String contextName, int jettyPort) {
        final Jetty jetty = Jetty.usingWar()
                .at(contextName)
                .port(jettyPort)
                .overrideWebXml()
                .buildJetty();
        jetty.server.setHandler(new MockHandler(contextName));
        jetty.start();
        return jetty;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy