Tabnine Logo
SoapOperation.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.castlemock.core.mock.soap.model.project.domain.SoapOperation
constructor

Best Java code snippets using com.castlemock.core.mock.soap.model.project.domain.SoapOperation.<init> (Showing top 7 results out of 315)

origin: castlemock/castlemock

private SoapOperation createSoapOperation(String portId, String name) {
  SoapOperation soapOperation = new SoapOperation();
  soapOperation.setName(name);
  soapOperation.setPortId(portId);
  return soapOperation;
}
origin: castlemock/castlemock

    createSoapOperationIdentifier(outputMessagePart, namespaces);
final SoapOperation soapOperation = new SoapOperation();
origin: castlemock/castlemock

  public static SoapOperation generateSoapOperation(){
    final SoapOperation soapOperation = new SoapOperation();
    soapOperation.setId("SOAP OPERATION");
    soapOperation.setName("Soap operation name");
    soapOperation.setCurrentResponseSequenceIndex(1);
    soapOperation.setDefaultBody("Default body");
    soapOperation.setForwardedEndpoint("Forwarded event");
    soapOperation.setInvokeAddress("Invoke address");
    soapOperation.setOriginalEndpoint("Original endpoint");
    soapOperation.setHttpMethod(HttpMethod.POST);
    soapOperation.setStatus(SoapOperationStatus.MOCKED);
    soapOperation.setSoapVersion(SoapVersion.SOAP11);
    soapOperation.setIdentifyStrategy(SoapOperationIdentifyStrategy.ELEMENT_NAMESPACE);
    soapOperation.setMockResponses(new ArrayList<SoapMockResponse>());
    return soapOperation;
  }
}
origin: castlemock/castlemock

private SoapOperation createSoapOperation(String portId, HttpMethod method, SoapVersion soapVersion,
                     String identifierName, String namespace) {
  SoapOperation soapOperation = new SoapOperation();
  soapOperation.setPortId(portId);
  soapOperation.setHttpMethod(method);
  soapOperation.setSoapVersion(soapVersion);
  soapOperation.setIdentifyStrategy(SoapOperationIdentifyStrategy.ELEMENT_NAMESPACE);
  SoapOperationIdentifier soapOperationIdentifier = new SoapOperationIdentifier();
  soapOperationIdentifier.setName(identifierName);
  soapOperationIdentifier.setNamespace(namespace);
  soapOperation.setOperationIdentifier(soapOperationIdentifier);
  return soapOperation;
}
origin: castlemock/castlemock

@Test
public void testServiceFunctionalityUpdateEndpoint() throws Exception {
  final String projectId = "projectId";
  final String portId = "portId";
  final String[] soapOperationIds = {"Operation1", "Operation2"};
  final SoapOperation soapOperation1 = new SoapOperation();
  soapOperation1.setId("SoapOperation1");
  final SoapOperation soapOperation2 = new SoapOperation();
  soapOperation2.setId("SoapOperation2");
  Mockito.when(serviceProcessor.process(Mockito.any(ReadSoapOperationInput.class)))
      .thenReturn(ReadSoapOperationOutput.builder().operation(soapOperation1).build())
      .thenReturn(ReadSoapOperationOutput.builder().operation(soapOperation2).build());
  final List<SoapOperation> operations = Arrays.asList(soapOperation1, soapOperation2);
  final SoapOperationModifierCommand command = new SoapOperationModifierCommand();
  command.setSoapOperationIds(soapOperationIds);
  command.setSoapOperationStatus("ENABLED");
  final MockHttpServletRequestBuilder message =
      MockMvcRequestBuilders.post(SERVICE_URL + PROJECT + SLASH + projectId + SLASH + PORT + SLASH + portId)
          .param("action", "update-endpoint").flashAttr("command", command);
  mockMvc.perform(message)
      .andExpect(MockMvcResultMatchers.status().isOk())
      .andExpect(MockMvcResultMatchers.model().size(4 + GLOBAL_VIEW_MODEL_COUNT))
      .andExpect(MockMvcResultMatchers.forwardedUrl(INDEX))
      .andExpect(MockMvcResultMatchers.model().attribute(PARTIAL, UPDATE_SOAP_OPERATIONS_ENDPOINT_PAGE))
      .andExpect(MockMvcResultMatchers.model().attribute(SOAP_PROJECT_ID, projectId))
      .andExpect(MockMvcResultMatchers.model().attribute(SOAP_PORT_ID, portId))
      .andExpect(MockMvcResultMatchers.model().attribute(SOAP_OPERATIONS, operations))
      .andExpect(MockMvcResultMatchers.model().attributeExists(UPDATE_SOAP_OPERATIONS_ENDPOINT_COMMAND));
  Mockito.verify(serviceProcessor, Mockito.times(2)).process(Mockito.isA(ReadSoapOperationInput.class));
}
origin: castlemock/castlemock

final SoapOperation soapOperation = new SoapOperation();
soapOperation.setCurrentResponseSequenceIndex(0);
soapOperation.setForwardedEndpoint(FORWARD_ENDPOINT);
origin: castlemock/castlemock

SoapOperation operation = new SoapOperation();
operation.setId(operationV1.getId());
operation.setName(operationV1.getName());
com.castlemock.core.mock.soap.model.project.domainSoapOperation<init>

Popular methods of SoapOperation

  • setHttpMethod
  • setName
  • getMockResponses
  • setCurrentResponseSequenceIndex
  • setForwardedEndpoint
  • setSoapVersion
  • setStatus
  • getId
  • getName
  • setDefaultBody
  • setId
  • setIdentifyStrategy
  • setId,
  • setIdentifyStrategy,
  • setInvokeAddress,
  • setMockResponses,
  • setNetworkDelay,
  • setOriginalEndpoint,
  • setPortId,
  • setResponseStrategy,
  • setSimulateNetworkDelay

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Permission (java.security)
    Legacy security code; do not use.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Reference (javax.naming)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now