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

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


        public void actionPerformed( ActionEvent e )
        {
          try
          {
            WsdlMockRunContext context = mockRunner == null ? new WsdlMockRunContext(
                WsdlMockServiceDesktopPanel.this.getModelItem(), null ) : mockRunner.getMockContext();
            WsdlMockServiceDesktopPanel.this.getModelItem().runStartScript( context, mockRunner );
          }
          catch( Exception e1 )
          {
View Full Code Here


        public void actionPerformed( ActionEvent e )
        {
          try
          {
            WsdlMockRunContext context = mockRunner == null ? new WsdlMockRunContext(
                WsdlMockServiceDesktopPanel.this.getModelItem(), null ) : mockRunner.getMockContext();
            WsdlMockServiceDesktopPanel.this.getModelItem().runStopScript( context, mockRunner );
          }
          catch( Exception e1 )
          {
View Full Code Here

        public void actionPerformed( ActionEvent e )
        {
          try
          {
            WsdlMockRunContext context = mockRunner == null ? new WsdlMockRunContext(
                WsdlMockServiceDesktopPanel.this.getModelItem(), null ) : mockRunner.getMockContext();
            WsdlMockServiceDesktopPanel.this.getModelItem().runOnRequestScript( context, mockRunner, null );
          }
          catch( Exception e1 )
          {
View Full Code Here

        public void actionPerformed( ActionEvent e )
        {
          try
          {
            WsdlMockRunContext context = mockRunner == null ? new WsdlMockRunContext(
                WsdlMockServiceDesktopPanel.this.getModelItem(), null ) : mockRunner.getMockContext();
            WsdlMockServiceDesktopPanel.this.getModelItem().runAfterRequestScript( context, mockRunner, null );
          }
          catch( Exception e1 )
          {
View Full Code Here

      try
      {
        WsdlMockService mockService = getMockOperation().getMockService();
        WsdlMockRunner mockRunner = mockService.getMockRunner();
        MockRunContext context = mockRunner == null ? new WsdlMockRunContext( mockService, null ) : mockRunner
            .getMockContext();

        scriptEngine.setVariable( "context", context );
        scriptEngine.setVariable( "requestContext", request == null ? null : request.getRequestContext() );
        scriptEngine.setVariable( "mockRequest", request );
View Full Code Here

        }

        MockService mockService = getMockOperation().getMockService();
        MockRunner mockRunner = mockService.getMockRunner();
        MockRunContext context =
                mockRunner == null ? new WsdlMockRunContext(mockService, null) : mockRunner.getMockContext();

        context.setMockResponse(this);

        SoapUIScriptEngine scriptEngine = scriptEnginePool.getScriptEngine();
View Full Code Here

            }

            String responseContent = getResponseContent();

            // create merged context
            WsdlMockRunContext context = new WsdlMockRunContext(request.getContext().getMockService(), null);
            context.setMockResponse(this);

            // casting below cause WsdlMockRunContext is both a MockRunContext AND a Map<String,Object>
            context.putAll((WsdlMockRunContext) request.getContext());
            context.putAll((WsdlMockRunContext) request.getRequestContext());

            StringToStringsMap responseHeaders = getResponseHeaders();
            for (Map.Entry<String, List<String>> headerEntry : responseHeaders.entrySet()) {
                for (String value : headerEntry.getValue()) {
                    result.addHeader(headerEntry.getKey(), PropertyExpander.expandProperties(context, value));
View Full Code Here

    public AbstractMockRequest(HttpServletRequest request, HttpServletResponse response, WsdlMockRunContext context) throws Exception {
        this.request = request;
        this.response = response;
        this.context = context;

        requestContext = new WsdlMockRunContext(context.getMockService(), null);

        requestHeaders = new StringToStringsMap();
        for (Enumeration<?> e = request.getHeaderNames(); e.hasMoreElements(); ) {
            String header = (String) e.nextElement();
            String lcHeader = header.toLowerCase();
View Full Code Here

        public Action createRunAction() {
            return new AbstractAction() {

                public void actionPerformed(ActionEvent e) {
                    try {
                        WsdlMockRunContext context = mockRunner == null ? new WsdlMockRunContext(
                                WsdlMockServiceDesktopPanel.this.getModelItem(), null) : mockRunner.getMockContext();
                        WsdlMockServiceDesktopPanel.this.getModelItem().runStartScript(context, mockRunner);
                    } catch (Exception e1) {
                        UISupport.showErrorMessage(e1);
                    }
View Full Code Here

        public Action createRunAction() {
            return new AbstractAction() {

                public void actionPerformed(ActionEvent e) {
                    try {
                        WsdlMockRunContext context = mockRunner == null ? new WsdlMockRunContext(
                                WsdlMockServiceDesktopPanel.this.getModelItem(), null) : mockRunner.getMockContext();
                        WsdlMockServiceDesktopPanel.this.getModelItem().runStopScript(context, mockRunner);
                    } catch (Exception e1) {
                        UISupport.showErrorMessage(e1);
                    }
View Full Code Here

TOP

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

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.