Package com.eviware.soapui.config

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


        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

Related Classes of com.eviware.soapui.config.RESTMockActionConfig

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.