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

Examples of com.eviware.soapui.impl.wsdl.mock.dispatch.QueryMatchMockOperationDispatcher$RunAction


      String name = "MockResponse" + Math.random();
      testMockResponse = mockOperation.addNewMockResponse( name, false );
      testMockResponse.setConfig( ( MockResponseConfig )mockResponse.getConfig().copy() );
      testMockResponse.setName( name );

      QueryMatchMockOperationDispatcher dispatcher = ( QueryMatchMockOperationDispatcher )mockOperation
          .setDispatchStyle( MockOperationDispatchStyleConfig.QUERY_MATCH.toString() );

      for( QueryMatchMockOperationDispatcher.Query query : dispatcher.getQueries() )
        dispatcher.deleteQuery( query );

      mockOperation.setDefaultResponse( null );

      QueryMatchMockOperationDispatcher.Query query = dispatcher.addQuery( "Match" );
      query.setQuery( PropertyExpander.expandProperties( testRunContext, getQuery() ) );
      query.setMatch( PropertyExpander.expandProperties( testRunContext, getMatch() ) );
      query.setResponse( testMockResponse.getName() );
    }
    else
View Full Code Here


            String name = "MockResponse" + Math.random();
            testMockResponse = mockOperation.addNewMockResponse(name, false);
            testMockResponse.setConfig((MockResponseConfig) mockResponse.getConfig().copy());
            testMockResponse.setName(name);

            QueryMatchMockOperationDispatcher dispatcher = (QueryMatchMockOperationDispatcher) mockOperation
                    .setDispatchStyle(MockOperationDispatchStyleConfig.QUERY_MATCH.toString());

            for (QueryMatchMockOperationDispatcher.Query query : dispatcher.getQueries()) {
                dispatcher.deleteQuery(query);
            }

            mockOperation.setDefaultResponse(null);

            QueryMatchMockOperationDispatcher.Query query = dispatcher.addQuery("Match");
            query.setQuery(PropertyExpander.expandProperties(testRunContext, getQuery()));
            query.setMatch(PropertyExpander.expandProperties(testRunContext, getMatch()));
            query.setResponse(testMockResponse.getName());
        } else {
            testMockResponse = mockResponse;
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.mock.dispatch.QueryMatchMockOperationDispatcher$RunAction

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.