Examples of RESTMockActionConfig


Examples of com.eviware.soapui.config.RESTMockActionConfig

    }

    private RESTMockServiceConfig createRestMockServiceConfig() {
        RESTMockServiceConfig config = RESTMockServiceConfig.Factory.newInstance();
        config.setName("Da service");
        RESTMockActionConfig mockActionConfig = config.addNewRestMockAction();
        mockActionConfig.setName("Da action");
        RESTMockResponseConfig mockResponseConfig = mockActionConfig.addNewResponse();
        mockResponseConfig.setName("Da response");
        CompressedStringConfig responseContent = CompressedStringConfig.Factory.newInstance();
        responseContent.setStringValue("Some content");
        mockResponseConfig.setResponseContent(responseContent);
        return config;
View Full Code Here

Examples of com.eviware.soapui.config.RESTMockActionConfig

        return mockAction;
    }


    public RestMockAction addEmptyMockAction(HttpMethod method, String path) {
        RESTMockActionConfig config = getConfig().addNewRestMockAction();

        String slashifiedPath = slashify(path);
        String name = path;

        config.setName(name);
        config.setMethod(method.name());
        config.setResourcePath(slashifiedPath);
        RestMockAction restMockAction = new RestMockAction(this, config);

        addMockOperation(restMockAction);
        fireMockOperationAdded(restMockAction);
View Full Code Here
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.