// Path: jadler-jetty/src/main/java/net/jadler/stubbing/server/jetty/JettyStubHttpServer.java
// public class JettyStubHttpServer implements StubHttpServer {
// 
//     private static final Logger logger = LoggerFactory.getLogger(JettyStubHttpServer.class);
//     private final Server server;
//     private final Connector httpConnector;
// 
//     public JettyStubHttpServer() {
//         this(0);
//     }
// 
// 
//     public JettyStubHttpServer(final int port) {
//         this.server = new Server();
//         this.server.setSendServerVersion(false);
//         this.server.setSendDateHeader(true);
// 
//         this.httpConnector = new SelectChannelConnector();
//         this.httpConnector.setPort(port);
//         server.addConnector(this.httpConnector);
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public void registerRequestManager(final RequestManager ruleProvider) {
//         Validate.notNull(ruleProvider, "ruleProvider cannot be null");
// 
//         server.setHandler(new JadlerHandler(ruleProvider));
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public void start() throws Exception {
//         logger.debug("starting jetty");
//         server.start();
//         logger.debug("jetty started");
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public void stop() throws Exception {
//         logger.debug("stopping jetty");
//         server.stop();
//         logger.debug("jetty stopped");
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public int getPort() {
//         return httpConnector.getLocalPort();
//     }
// }
// 
// Path: jadler-core/src/main/java/net/jadler/Jadler.java
// public static OngoingConfiguration initJadlerUsing(final StubHttpServer server) {
//     return initInternal(new JadlerMocker(server));
// }


import static net.jadler.Jadler.initJadlerUsing;
import net.jadler.stubbing.server.jetty.JettyStubHttpServer;
import org.junit.BeforeClass;
/*
 * Copyright (c) 2012 - 2016 Jadler contributors
 * This program is made available under the terms of the MIT License.
 */
package net.jadler;




/**
 * Tests that it is possible to reset the {@link JettyStubHttpServer} implementation.
 */
public class ResetJettyIntegrationTest extends AbstractResetIntegrationTest {

    @BeforeClass
    public static void configureMocker() {
// Path: jadler-jetty/src/main/java/net/jadler/stubbing/server/jetty/JettyStubHttpServer.java
// public class JettyStubHttpServer implements StubHttpServer {
// 
//     private static final Logger logger = LoggerFactory.getLogger(JettyStubHttpServer.class);
//     private final Server server;
//     private final Connector httpConnector;
// 
//     public JettyStubHttpServer() {
//         this(0);
//     }
// 
// 
//     public JettyStubHttpServer(final int port) {
//         this.server = new Server();
//         this.server.setSendServerVersion(false);
//         this.server.setSendDateHeader(true);
// 
//         this.httpConnector = new SelectChannelConnector();
//         this.httpConnector.setPort(port);
//         server.addConnector(this.httpConnector);
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public void registerRequestManager(final RequestManager ruleProvider) {
//         Validate.notNull(ruleProvider, "ruleProvider cannot be null");
// 
//         server.setHandler(new JadlerHandler(ruleProvider));
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public void start() throws Exception {
//         logger.debug("starting jetty");
//         server.start();
//         logger.debug("jetty started");
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public void stop() throws Exception {
//         logger.debug("stopping jetty");
//         server.stop();
//         logger.debug("jetty stopped");
//     }
// 
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public int getPort() {
//         return httpConnector.getLocalPort();
//     }
// }
// 
// Path: jadler-core/src/main/java/net/jadler/Jadler.java
// public static OngoingConfiguration initJadlerUsing(final StubHttpServer server) {
//     return initInternal(new JadlerMocker(server));
// }


// Path: jadler-all/src/test/java/net/jadler/ResetJettyIntegrationTest.java
import static net.jadler.Jadler.initJadlerUsing;
import net.jadler.stubbing.server.jetty.JettyStubHttpServer;
import org.junit.BeforeClass;

/*
 * Copyright (c) 2012 - 2016 Jadler contributors
 * This program is made available under the terms of the MIT License.
 */
package net.jadler;




/**
 * Tests that it is possible to reset the {@link JettyStubHttpServer} implementation.
 */
public class ResetJettyIntegrationTest extends AbstractResetIntegrationTest {

    @BeforeClass
    public static void configureMocker() {
        initJadlerUsing(new JettyStubHttpServer())