Package org.mockserver

Source Code of org.mockserver.ProxyAndServerMavenPluginStopTest

package org.mockserver;

import org.junit.Test;
import org.mockserver.client.proxy.ProxyClient;
import org.mockserver.client.server.MockServerClient;

import java.net.ConnectException;

/**
* @author jamesdbloom
*/
public class ProxyAndServerMavenPluginStopTest {

    @Test(expected = RuntimeException.class)
    public void shouldNotBeAbleToReachMockServer() {
        new MockServerClient("127.0.0.1", 8096).reset();
    }

    @Test(expected = RuntimeException.class)
    public void shouldNotBeAbleToReachProxy() {
        new ProxyClient("127.0.0.1", 9100).reset();
    }
}
TOP

Related Classes of org.mockserver.ProxyAndServerMavenPluginStopTest

TOP
Copyright © 2018 www.massapi.com. 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.