Package com.github.restdriver.clientdriver.jetty

Examples of com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler


     * Factory method to create and start a {@link ClientDriver}. A port will be chosen automatically.
     *
     * @return A new {@link ClientDriver}, which has found a free port, bound to it and started up.
     */
    public ClientDriver createClientDriver() {
        ClientDriver clientDriver = new ClientDriver(new DefaultClientDriverJettyHandler(new DefaultRequestMatcher()));
        LOGGER.debug("ClientDriver created at '" + clientDriver.getBaseUrl() + "'.");
        return clientDriver;
    }
View Full Code Here


     * @param port The port to listen on. If this port is not available a runtime exception will be thrown.
     *
     * @return A new {@link ClientDriver}, which has found a free port, bound to it and started up.
     */
    public ClientDriver createClientDriver(int port) {
        ClientDriver clientDriver = new ClientDriver(new DefaultClientDriverJettyHandler(new DefaultRequestMatcher()), port);
        LOGGER.debug("ClientDriver created at '" + clientDriver.getBaseUrl() + "'.");
        return clientDriver;
    }
View Full Code Here

    private RequestMatcher mockRequestMatcher;
   
    @Before
    public void before() {
        mockRequestMatcher = mock(RequestMatcher.class);
        sut = new DefaultClientDriverJettyHandler(mockRequestMatcher);
    }
View Full Code Here

TOP

Related Classes of com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.