Package com.eviware.soapui.impl.wsdl.mock

Examples of com.eviware.soapui.impl.wsdl.mock.WsdlMockResult


    return XmlBeans.getBuiltinTypeSystem();
  }

  public String getXml()
  {
    WsdlMockResult mockResult = mockResponse.getMockResult();
    return mockResult == null ? null : mockResult.getMockRequest().getRequestContent();
  }
View Full Code Here


    return mockResult == null ? null : mockResult.getMockRequest().getRequestContent();
  }

  public void setXml( String xml )
  {
    WsdlMockResult mockResult = mockResponse.getMockResult();
    if( mockResult != null )
    {
      String oldXml = getXml();
      mockResult.getMockRequest().setRequestContent( xml );
      oldXml = "";
      fireXmlChanged( oldXml, xml );
    }
    else
    {
View Full Code Here

  {
    public void propertyChange( PropertyChangeEvent evt )
    {
      if( evt.getPropertyName().equals( WsdlMockResponse.MOCKRESULT_PROPERTY ) )
      {
        WsdlMockResult mockResult = mockResponse.getMockResult();
        WsdlMockRequest mockRequest = mockResult == null ? null : mockResult.getMockRequest();
        requestEditor.getDocument().setXml( mockRequest == null ? "" : mockRequest.getRequestContent() );

        boolean bidirectional = mockResponse.getMockOperation().getOperation().isBidirectional();
        wsiValidateAction.setEnabled( bidirectional ); // TODO Ericsson: Had
                                        // "true" here. Why?
View Full Code Here

      putValue( Action.SHORT_DESCRIPTION, "Runs this script using a mockRequest and context" );
    }

    public void actionPerformed( ActionEvent e )
    {
      WsdlMockResult lastMockResult = getMockOperation().getLastMockResult();
      WsdlMockRequest mockRequest = lastMockResult == null ? null : lastMockResult.getMockRequest();

      try
      {
        WsdlMockResponse retVal = selectMockResponse( mockRequest, null );
        UISupport.showInfoMessage( "Script returned [" + ( retVal == null ? "null" : retVal.getName() ) + "]" );
View Full Code Here

      putValue( Action.SHORT_DESCRIPTION, "Evaluates this xpath expression against the latest request" );
    }

    public void actionPerformed( ActionEvent e )
    {
      WsdlMockResult lastMockResult = getMockOperation().getLastMockResult();
      if( lastMockResult == null )
      {
        UISupport.showErrorMessage( "Missing last request to select from" );
        return;
      }

      try
      {
        WsdlMockResponse retVal = selectMockResponse( lastMockResult.getMockRequest(), null );
        UISupport.showInfoMessage( "XPath Selection returned [" + ( retVal == null ? "null" : retVal.getName() )
            + "]" );
      }
      catch( Exception e1 )
      {
View Full Code Here

      if( selectedQuery == null )
        return;

      try
      {
        WsdlMockResult lastResult = getMockOperation().getLastMockResult();
        String content = null;
        if( lastResult == null )
        {
          if( !UISupport.confirm( "Missing last result, declare from default request instead?",
              "Declare Namespaces" ) )
          {
            return;
          }

          content = getMockOperation().getOperation().createRequest( true );
        }
        else
        {
          content = lastResult.getMockRequest().getRequestContent();
        }

        String path = selectedQuery.getQuery();
        if( path == null )
          path = "";
View Full Code Here

      putValue( Action.SHORT_DESCRIPTION, "Runs Queries on last request" );
    }

    public void actionPerformed( ActionEvent e )
    {
      WsdlMockResult result = getMockOperation().getLastMockResult();
      if( result != null )
      {
        try
        {
          UISupport.showInfoMessage( "Selected ["
              + selectMockResponse( result.getMockRequest(), result ).getName() + "]" );
        }
        catch( DispatchException e1 )
        {
          UISupport.showErrorMessage( e1 );
        }
View Full Code Here

    {
      QueryMatchMockOperationDispatcher.Query selectedQuery = getSelectedQuery();
      if( selectedQuery == null )
        return;

      WsdlMockResult result = getMockOperation().getLastMockResult();
      String content;

      if( result != null && StringUtils.hasContent( result.getMockRequest().getRequestContent() ) )
      {
        content = result.getMockRequest().getRequestContent();
      }
      else
      {
        if( !UISupport.confirm( "Missing last result, extract from default request instead?", "Extract Match" ) )
        {
View Full Code Here

    return getModelItem().getMockResult().getMockRequest().getHttpRequest().getRequestURI();
  }

  public String getRequestContent()
  {
    WsdlMockResult mockResult = getModelItem().getMockResult();
    WsdlMockRequest mockRequest = mockResult.getMockRequest();
    return mockRequest.getRequestContent();
  }
View Full Code Here

    public void actionPerformed( ActionEvent e )
    {
      try
      {
        WsdlMockResult lastResult = getMockResponse().getMockResult();
        String content = null;
        if( lastResult == null )
        {
          if( !UISupport.confirm( "Missing last result, declare from default request instead?",
              "Declare Namespaces" ) )
          {
            return;
          }

          content = getMockResponse().getMockOperation().getOperation().createRequest( true );
        }
        else
        {
          content = lastResult.getMockRequest().getRequestContent();
        }

        String path = getModelItem().getQuery();
        if( path == null )
          path = "";
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.mock.WsdlMockResult

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.