Package github.priyatam.springrest.mock

Source Code of github.priyatam.springrest.mock.RestMocker

package github.priyatam.springrest.mock;

import com.jayway.restassured.RestAssured;
import com.xebialabs.restito.server.StubServer;

public class RestMocker {
    private static StubServer server;

    public RestMocker() {
        // default port = 6666
        server = new StubServer().run();
        RestAssured.port = server.getPort();
    }

    public static void main(String args[]) {
        new RestMocker();
    }

    public void stop() {
        server.stop();
    }

}
TOP

Related Classes of github.priyatam.springrest.mock.RestMocker

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.