Package com.github.dreamhead.moco.helper

Examples of com.github.dreamhead.moco.helper.MocoSocketHelper


public class MocoJsonSocketHttpRunner {
    private MocoSocketHelper helper;

    @Before
    public void setup() {
        this.helper = new MocoSocketHelper(local(), port());
    }
View Full Code Here


    public void should_return_expected_response_without_port() throws Exception {
        final SocketServer server = jsonSocketServer(file("src/test/resources/base.json"));
        running(server, new Runnable() {
            @Override
            public void run() throws Exception {
                MocoSocketHelper helper = new MocoSocketHelper(local(), server.port());
                helper.connect();
                assertThat(helper.send("foo", 3), is("bar"));
                helper.close();
            }
        });
    }
View Full Code Here

    private MocoSocketHelper helper;
    private SocketServer server;

    @Before
    public void setup() {
        this.helper = new MocoSocketHelper(local(), port());
        this.server = socketServer(port());
    }
View Full Code Here

TOP

Related Classes of com.github.dreamhead.moco.helper.MocoSocketHelper

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.