Codota Logo
SoapOperation.getStatus
Code IndexAdd Codota to your IDE (free)

How to use
getStatus
method
in
com.castlemock.core.mock.soap.model.project.domain.SoapOperation

Best Java code snippets using com.castlemock.core.mock.soap.model.project.domain.SoapOperation.getStatus (Showing top 6 results out of 315)

  • Common ways to obtain SoapOperation
private void myMethod () {
SoapOperation s =
  • Codota Iconnew SoapOperation()
  • Smart code suggestions by Codota
}
origin: castlemock/castlemock

  /**
   * Count the operation statuses
   * @param soapOperations The list of operations, which status will be counted
   * @return The result of the status count
   */
  private Map<SoapOperationStatus, Integer> getSoapOperationStatusCount(final List<SoapOperation> soapOperations){
    Preconditions.checkNotNull(soapOperations, "The operation list cannot be null");
    final Map<SoapOperationStatus, Integer> statuses = new HashMap<SoapOperationStatus, Integer>();

    for(SoapOperationStatus soapOperationStatus : SoapOperationStatus.values()){
      statuses.put(soapOperationStatus, 0);
    }
    for(SoapOperation soapOperation : soapOperations){
      SoapOperationStatus soapOperationStatus = soapOperation.getStatus();
      statuses.put(soapOperationStatus, statuses.get(soapOperationStatus)+1);
    }
    return statuses;
  }
}
origin: castlemock/castlemock

try {
  event = new SoapEvent(soapOperation.getName(), request, soapProjectId, soapPortId, soapOperation.getId());
  if (SoapOperationStatus.DISABLED.equals(soapOperation.getStatus())) {
    throw new SoapException("The requested soap operation, " + soapOperation.getName() + ", is disabled");
  } else if (SoapOperationStatus.FORWARDED.equals(soapOperation.getStatus()) ||
      SoapOperationStatus.RECORDING.equals(soapOperation.getStatus()) ||
      SoapOperationStatus.RECORD_ONCE.equals(soapOperation.getStatus())) {
    response = forwardRequest(request, soapProjectId, soapPortId, soapOperation);
  } else if (SoapOperationStatus.ECHO.equals(soapOperation.getStatus())) {
    response = echoResponse(request);
  } else { // Status.MOCKED
origin: castlemock/castlemock

Assert.assertEquals(operation.getId(), returnedSoapOperation.getId());
Assert.assertEquals(operation.getName(), returnedSoapOperation.getName());
Assert.assertEquals(operation.getStatus(), returnedSoapOperation.getStatus());
Assert.assertEquals(operation.getForwardedEndpoint(), returnedSoapOperation.getForwardedEndpoint());
Assert.assertEquals(operation.getResponseStrategy(), returnedSoapOperation.getResponseStrategy());
origin: castlemock/castlemock

if(SoapOperationStatus.RECORDING.equals(soapOperation.getStatus()) ||
    SoapOperationStatus.RECORD_ONCE.equals(soapOperation.getStatus())){
  final SoapMockResponse mockResponse = new SoapMockResponse();
  final Date date = new Date();
  if(SoapOperationStatus.RECORD_ONCE.equals(soapOperation.getStatus())){
origin: castlemock/castlemock

private void verify(final SoapPort soapPort,
          final String name,
          final SoapVersion soapVersion){
  Assert.assertEquals(name + ".Endpoint", soapPort.getName());
  Assert.assertEquals(name + ".Endpoint", soapPort.getUri());
  Assert.assertEquals(1, soapPort.getOperations().size());
  SoapOperation soapOperation = soapPort.getOperations().get(0);
  Assert.assertEquals(name, soapOperation.getName());
  Assert.assertEquals(SoapResponseStrategy.RANDOM, soapOperation.getResponseStrategy());
  Assert.assertEquals(SoapOperationStatus.MOCKED, soapOperation.getStatus());
  Assert.assertEquals(soapVersion, soapOperation.getSoapVersion());
  Assert.assertEquals(HttpMethod.POST, soapOperation.getHttpMethod());
  SoapOperationIdentifier operationIdentifier = soapOperation.getOperationIdentifier();
  Assert.assertNotNull(operationIdentifier);
  Assert.assertEquals("Request", operationIdentifier.getName());
  Assert.assertEquals("http://Services/ServiceExample/ServiceExample/1/Schema",
      operationIdentifier.getNamespace());
}
origin: castlemock/castlemock

  /**
   * The process message is responsible for processing an incoming serviceTask and generate
   * a response based on the incoming serviceTask input
   * @param serviceTask The serviceTask that will be processed by the service
   * @return A result based on the processed incoming serviceTask
   * @see ServiceTask
   * @see ServiceResult
   */
  @Override
  public ServiceResult<UpdateSoapOperationOutput> process(final ServiceTask<UpdateSoapOperationInput> serviceTask) {
    final UpdateSoapOperationInput input = serviceTask.getInput();
    final SoapOperation updated = input.getOperation();
    final SoapOperation soapOperation = this.operationRepository.findOne(input.getOperationId());

    soapOperation.setStatus(updated.getStatus());
    soapOperation.setForwardedEndpoint(updated.getForwardedEndpoint());
    soapOperation.setResponseStrategy(updated.getResponseStrategy());
    soapOperation.setSimulateNetworkDelay(updated.getSimulateNetworkDelay());
    soapOperation.setNetworkDelay(updated.getNetworkDelay());
    soapOperation.setDefaultMockResponseId(updated.getDefaultMockResponseId());
    soapOperation.setMockOnFailure(updated.getMockOnFailure());
    soapOperation.setIdentifyStrategy(updated.getIdentifyStrategy());

    final SoapOperation updatedSoapOperation = this.operationRepository.update(input.getOperationId(), soapOperation);
    return createServiceResult(UpdateSoapOperationOutput.builder()
        .operation(updatedSoapOperation)
        .build());
  }
}
com.castlemock.core.mock.soap.model.project.domainSoapOperationgetStatus

Popular methods of SoapOperation

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

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now