com.eviware.soapui.tools
Class SoapUIMockServiceRunner

java.lang.Object
  extended by com.eviware.soapui.tools.AbstractSoapUIRunner
      extended by com.eviware.soapui.tools.SoapUIMockServiceRunner

public class SoapUIMockServiceRunner
extends AbstractSoapUIRunner

Standalone tool-runner used from maven-plugin, can also be used from command-line (see xdocs) or directly from other classes.

For standalone usage, set the project file (with setProjectFile) and other desired properties before calling run

Author:
Ole.Matzura

Nested Class Summary
 class SoapUIMockServiceRunner.LogListener
           
 
Nested classes/interfaces inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner
AbstractSoapUIRunner.SoapUIOptions
 
Field Summary
static java.lang.String TITLE
           
 
Fields inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner
log
 
Constructor Summary
SoapUIMockServiceRunner()
           
SoapUIMockServiceRunner(java.lang.String title)
           
 
Method Summary
protected  void exportReports()
           
 WsdlProject getProject()
           
 java.lang.String getProjectPassword()
           
protected  AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
           
protected  void initProject()
           
static void main(java.lang.String[] args)
          Runs the specified MockService in the specified soapUI project file, see soapUI xdocs for details.
protected  boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
           
 void runMockService(WsdlMockService mockService)
          Runs the specified MockService
 boolean runRunner()
           
 void setBlock(boolean block)
           
 void setMockService(java.lang.String mockService)
           
 void setPath(java.lang.String path)
           
 void setPort(java.lang.String port)
           
 void setProjectPassword(java.lang.String projectPassword)
           
 void setSaveAfterRun(boolean saveAfterRun)
           
 void stopAll()
           
 
Methods inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner
createSoapUICore, ensureFolder, ensureOutputFolder, getAbsoluteOutputFolder, getCommandLineOptionSubstSpace, getModelItemOutputFolder, getOutputFolder, getProjectFile, getSettingsFile, getSoapUISettingsPassword, initFromCommandLine, initGroovyLog, initProjectProperties, isEnableUI, run, runFromCommandLine, setEnableUI, setGlobalProperties, setOutputFolder, setProjectFile, setProjectProperties, setSettingsFile, setSoapUISettingsPassword, setSystemProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

public static java.lang.String TITLE
Constructor Detail

SoapUIMockServiceRunner

public SoapUIMockServiceRunner()

SoapUIMockServiceRunner

public SoapUIMockServiceRunner(java.lang.String title)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Runs the specified MockService in the specified soapUI project file, see soapUI xdocs for details.

Parameters:
args -
Throws:
java.lang.Exception

setMockService

public void setMockService(java.lang.String mockService)

setPath

public void setPath(java.lang.String path)

setPort

public void setPort(java.lang.String port)

runRunner

public boolean runRunner()
                  throws java.lang.Exception
Specified by:
runRunner in class AbstractSoapUIRunner
Throws:
java.lang.Exception

initProject

protected void initProject()
                    throws java.lang.Exception
Throws:
java.lang.Exception

exportReports

protected void exportReports()
                      throws java.lang.Exception
Throws:
java.lang.Exception

runMockService

public void runMockService(WsdlMockService mockService)
Runs the specified MockService

Parameters:
mockService -

initCommandLineOptions

protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
Specified by:
initCommandLineOptions in class AbstractSoapUIRunner

processCommandLine

protected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
Specified by:
processCommandLine in class AbstractSoapUIRunner

setProjectPassword

public void setProjectPassword(java.lang.String projectPassword)

getProjectPassword

public java.lang.String getProjectPassword()

setBlock

public void setBlock(boolean block)

setSaveAfterRun

public void setSaveAfterRun(boolean saveAfterRun)

getProject

public WsdlProject getProject()

stopAll

public void stopAll()


Copyright © 2005-2010 eviware.com. All Rights Reserved.