String defaultName = "REST MockService " + (project.getRestMockServiceCount() + 1);
return UISupport.prompt("Enter name of new MockService", title, defaultName);
}
private void addRequestToMockService(RestRequest restRequest, RestMockService mockService) {
MockOperation matchedOperation = mockService.findOrCreateNewOperation(restRequest);
int responseCount = matchedOperation.getMockResponseCount() + 1;
String responseName = "Response " + responseCount;
RestMockResponse mockResponse = ((RestMockAction) matchedOperation).addNewMockResponse(responseName);
// add expected response if available
if (restRequest != null && restRequest.getResponse() != null) {