Package com.eviware.soapui.tools

Examples of com.eviware.soapui.tools.SoapUIMockServiceRunner


//    if( !new File(projectFile).exists() )
//    {
//      throw new MojoExecutionException("soapui-project-file [" + projectFile + "] is not found" );
//    }
   
    SoapUIMockServiceRunner runner = new SoapUIMockServiceRunner(
          "SoapUI " + SoapUI.SOAPUI_VERSION + " Maven2 MockService Runner");
    runner.setProjectFile( projectFile );
   
   
    if( mockService != null )
      runner.setMockService( mockService );
   
    if( path != null )
      runner.setPath( path );
   
    if( port != null )
      runner.setPort( port );
   
    if( settingsFile != null )
      runner.setSettingsFile( settingsFile );
   
    runner.setBlock( !noBlock );
    runner.setSaveAfterRun( saveAfterRun );

    if( projectPassword != null )
      runner.setProjectPassword(projectPassword);
   
    if ( settingsPassword != null )
      runner.setSoapUISettingsPassword(settingsPassword);
   
    if( globalProperties != null )
      runner.setGlobalProperties(globalProperties);
   
    if( projectProperties != null )
      runner.setProjectProperties(projectProperties);
   
    if( soapuiProperties != null && soapuiProperties.size() > 0 )
      for( Object key : soapuiProperties.keySet() )
      {
        System.out.println( "Setting " + ( String )key + " value " + soapuiProperties.getProperty( ( String )key ) );
        System.setProperty( ( String )key, soapuiProperties.getProperty( ( String )key ) );
      }
     
    try
    {
      runner.run();
    }
    catch (Exception e)
    {
      getLog().error( e.toString() );
      throw new MojoFailureException( this, "SoapUI MockService(s) failed", e.getMessage() );
View Full Code Here

TOP

Related Classes of com.eviware.soapui.tools.SoapUIMockServiceRunner

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.