Package com.eviware.soapui.impl.wsdl.panels.mockoperation

Examples of com.eviware.soapui.impl.wsdl.panels.mockoperation.WsdlMockResultMessageExchange


      {
        return new ValidationError[] { new AssertionError( "Missing operation for MockResponse" ) };
      }

      WsdlValidator validator = new WsdlValidator( ( operation.getInterface() ).getWsdlContext() );
      return validator.assertRequest( new WsdlMockResultMessageExchange( getModelItem().getMockResult(),
          getModelItem() ), false );
    }
View Full Code Here


  {
    if( actions == null )
    {
      actions = new DefaultActionList( "MockResult" );
      actions.setDefaultAction( new ShowMessageExchangeAction(
          new WsdlMockResultMessageExchange( this, mockResponse ), "MockResult" ) );
    }

    return actions;
  }
View Full Code Here

    for( int c = 0; c < getAssertionCount(); c++ )
    {
      WsdlMessageAssertion assertion = getAssertionAt( c );
      if( !assertion.isDisabled() )
      {
        assertion.assertRequest( new WsdlMockResultMessageExchange( result, getMockResponse() ), context );
      }
    }

    AssertionStatus newStatus = getAssertionStatus();
    if( newStatus != oldStatus )
View Full Code Here

      WsdlMessageAssertion assertion = assertionsSupport.addWsdlAssertion( assertionConfig );
      assertionsSupport.fireAssertionAdded( assertion );

      if( getMockResponse().getMockResult() != null )
      {
        assertion.assertRequest( new WsdlMockResultMessageExchange( getMockResponse().getMockResult(),
            getMockResponse() ), new WsdlSubmitContext( this ) );
        notifier.notifyChange();
      }

      return assertion;
View Full Code Here

        return new ShowMessageExchangeAction(createMessageExchange(), "MockResult");
    }

    private WsdlMockResultMessageExchange createMessageExchange() {
        WsdlMockResponse mockResponse = (WsdlMockResponse) getMockResponse();
        return new WsdlMockResultMessageExchange(this, mockResponse);
    }
View Full Code Here

        }

        for (int c = 0; c < getAssertionCount(); c++) {
            WsdlMessageAssertion assertion = getAssertionAt(c);
            if (!assertion.isDisabled()) {
                assertion.assertRequest(new WsdlMockResultMessageExchange(result, getMockResponse()), context);
            }
        }

        AssertionStatus newStatus = getAssertionStatus();
        if (newStatus != oldStatus) {
View Full Code Here

            WsdlMessageAssertion assertion = assertionsSupport.addWsdlAssertion(assertionConfig);
            assertionsSupport.fireAssertionAdded(assertion);

            if (getMockResponse().getMockResult() != null) {
                WsdlMockResult mockResult = (WsdlMockResult) getMockResponse().getMockResult();
                WsdlMockResultMessageExchange messageExchange
                        = new WsdlMockResultMessageExchange(mockResult, getMockResponse());
                assertion.assertRequest(messageExchange, new WsdlSubmitContext(this));
                notifier.notifyChange();
            }

            return assertion;
View Full Code Here

            if (operation == null) {
                return new ValidationError[]{new AssertionError("Missing operation for MockResponse")};
            }

            WsdlValidator validator = new WsdlValidator((operation.getInterface()).getWsdlContext());
            WsdlMockResultMessageExchange messageExchange =
                    new WsdlMockResultMessageExchange((WsdlMockResult) getModelItem().getMockResult(), getModelItem());
            return validator.assertRequest(messageExchange, false);
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.panels.mockoperation.WsdlMockResultMessageExchange

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.