public class WsdlProject extends AbstractTestPropertyHolderWsdlModelItem<ProjectConfig> implements Project, PropertyExpansionContainer, PropertyChangeListener, TestRunnable
| Modifier and Type | Field and Description |
|---|---|
static String |
AFTER_LOAD_SCRIPT_PROPERTY |
static String |
BEFORE_SAVE_SCRIPT_PROPERTY |
protected int |
encrypted |
protected EndpointStrategy |
endpointStrategy |
protected EndpointSupport |
endpointSupport |
protected Set<EnvironmentListener> |
environmentListeners |
protected List<AbstractInterface<?>> |
interfaces |
protected long |
lastModified |
protected static org.apache.log4j.Logger |
log |
protected List<WsdlMockService> |
mockServices |
protected String |
path |
protected SoapuiProjectDocumentConfig |
projectDocument |
protected Set<ProjectListener> |
projectListeners |
static String |
RESOURCE_ROOT_PROPERTY |
protected List<WsdlTestSuite> |
testSuites |
protected DefaultWssContainer |
wssContainer |
JBOSSWS_NATURE_ID, SOAPUI_NATURE_IDDESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY| Constructor and Description |
|---|
WsdlProject() |
WsdlProject(String path) |
WsdlProject(String projectFile,
String projectPassword) |
WsdlProject(String path,
WorkspaceImpl workspace) |
WsdlProject(String path,
WorkspaceImpl workspace,
boolean create) |
WsdlProject(String path,
WorkspaceImpl workspace,
boolean create,
boolean open,
String tempName,
String projectPassword) |
WsdlProject(WorkspaceImpl workspace) |
addPropertiesFromFile, addProperty, addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyHolderSupport, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, moveProperty, removeProperty, removeTestPropertyListener, renameProperty, setPropertiesConfig, setPropertyValuedependsOn, getConfig, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettingsaddPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getName, getParent, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListeneraddTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValuepublic static final String AFTER_LOAD_SCRIPT_PROPERTY
public static final String BEFORE_SAVE_SCRIPT_PROPERTY
public static final String RESOURCE_ROOT_PROPERTY
protected String path
protected List<AbstractInterface<?>> interfaces
protected List<WsdlTestSuite> testSuites
protected List<WsdlMockService> mockServices
protected Set<ProjectListener> projectListeners
protected SoapuiProjectDocumentConfig projectDocument
protected EndpointStrategy endpointStrategy
protected long lastModified
protected DefaultWssContainer wssContainer
protected Set<EnvironmentListener> environmentListeners
protected int encrypted
protected EndpointSupport endpointSupport
protected static final org.apache.log4j.Logger log
public WsdlProject()
throws org.apache.xmlbeans.XmlException,
IOException,
SoapUIException
org.apache.xmlbeans.XmlExceptionIOExceptionSoapUIExceptionpublic WsdlProject(String path) throws org.apache.xmlbeans.XmlException, IOException, SoapUIException
org.apache.xmlbeans.XmlExceptionIOExceptionSoapUIExceptionpublic WsdlProject(WorkspaceImpl workspace)
public WsdlProject(String path, WorkspaceImpl workspace)
public WsdlProject(String path, WorkspaceImpl workspace, boolean create)
public WsdlProject(String path, WorkspaceImpl workspace, boolean create, boolean open, String tempName, String projectPassword)
public boolean isRemote()
public EndpointSupport getEndpointSupport()
public void loadProject(URL file) throws SoapUIException
SoapUIExceptionpublic Environment getActiveEnvironment()
public void setActiveEnvironment(Environment environment)
public boolean isEnvironmentMode()
protected WsdlTestSuite buildTestSuite(TestSuiteConfig config)
public boolean isWrongPasswordSupplied()
protected int checkForEncodedData(ProjectConfig soapuiProject) throws IOException, GeneralSecurityException
soapuiProject - IOExceptionGeneralSecurityExceptionpublic void afterLoad()
afterLoad in class AbstractWsdlModelItem<ProjectConfig>protected void setProjectRoot(String path)
public void setResourceRoot(String resourceRoot)
public String getResourceRoot()
getResourceRoot in interface Projectpublic ImageIcon getIcon()
getIcon in interface ModelItemgetIcon in class AbstractWsdlModelItem<ProjectConfig>public String getDescription()
getDescription in interface ModelItemgetDescription in class AbstractWsdlModelItem<ProjectConfig>public WorkspaceImpl getWorkspace()
getWorkspace in interface Projectpublic AbstractInterface<?> getInterfaceAt(int index)
getInterfaceAt in interface Projectpublic AbstractInterface<?> getInterfaceByName(String interfaceName)
getInterfaceByName in interface Projectpublic AbstractInterface<?> getInterfaceByTechnicalId(String technicalId)
public int getInterfaceCount()
getInterfaceCount in interface Projectpublic boolean save()
throws IOException
save in interface ProjectIOExceptionpublic boolean save(String folder) throws IOException
IOExceptionpublic boolean saveBackup()
throws IOException
IOExceptionpublic boolean saveIn(File projectFile) throws IOException
IOExceptionpublic void beforeSave()
beforeSave in class AbstractWsdlModelItem<ProjectConfig>protected void createBackup(File projectFile) throws IOException
IOExceptionprotected void removeDefinitionCaches(SoapuiProjectDocumentConfig config)
public AbstractInterface<?> addNewInterface(String name, String type)
public void addProjectListener(ProjectListener listener)
addProjectListener in interface Projectpublic void removeProjectListener(ProjectListener listener)
removeProjectListener in interface Projectpublic void fireInterfaceAdded(AbstractInterface<?> iface)
public void fireInterfaceRemoved(AbstractInterface<?> iface)
public void fireInterfaceUpdated(AbstractInterface<?> iface)
public void fireTestSuiteAdded(WsdlTestSuite testSuite)
public void fireTestSuiteRemoved(WsdlTestSuite testSuite)
public void fireMockServiceAdded(WsdlMockService mockService)
public void fireMockServiceRemoved(WsdlMockService mockService)
public void fireEnvironmentAdded(Environment env)
public void fireEnvironmentRemoved(Environment env, int index)
public void fireEnvironmentRenamed(Environment env, String oldName, String newName)
public void removeInterface(AbstractInterface<?> iface)
public void removeTestSuite(WsdlTestSuite testSuite)
public void firePropertyValueChanged(Property property)
public boolean isDisabled()
isDisabled in interface Projectpublic int getTestSuiteCount()
getTestSuiteCount in interface Projectpublic WsdlTestSuite getTestSuiteAt(int index)
getTestSuiteAt in interface Projectpublic WsdlTestSuite getTestSuiteByName(String testSuiteName)
getTestSuiteByName in interface Projectpublic WsdlTestSuite addNewTestSuite(String name)
addNewTestSuite in interface Projectpublic boolean isCacheDefinitions()
public void setCacheDefinitions(boolean cacheDefinitions)
public boolean saveAs(String fileName) throws IOException
IOExceptionpublic void release()
release in interface Projectrelease in class AbstractWsdlModelItem<ProjectConfig>public WsdlMockService addNewMockService(String name)
addNewMockService in interface Projectpublic WsdlMockService getMockServiceAt(int index)
getMockServiceAt in interface Projectpublic WsdlMockService getMockServiceByName(String mockServiceName)
getMockServiceByName in interface Projectpublic int getMockServiceCount()
getMockServiceCount in interface Projectpublic void removeMockService(WsdlMockService mockService)
public List<TestSuite> getTestSuiteList()
getTestSuiteList in interface Projectpublic List<MockService> getMockServiceList()
getMockServiceList in interface Projectpublic List<Interface> getInterfaceList()
getInterfaceList in interface Projectpublic Map<String,MockService> getMockServices()
public void reload()
throws SoapUIException
SoapUIExceptionpublic void reload(String path) throws SoapUIException
SoapUIExceptionpublic AbstractInterface<?> importInterface(AbstractInterface<?> iface, boolean importEndpoints, boolean createCopy)
public WsdlTestSuite importTestSuite(WsdlTestSuite testSuite, String name, int index, boolean createCopy, String description)
public WsdlMockService importMockService(WsdlMockService mockService, String name, boolean createCopy, String description)
public EndpointStrategy getEndpointStrategy()
getEndpointStrategy in interface Projectpublic List<? extends ModelItem> getChildren()
getChildren in interface ModelItemgetChildren in class AbstractModelItempublic void setAfterLoadScript(String script)
public String getAfterLoadScript()
public void setBeforeSaveScript(String script)
public String getBeforeSaveScript()
public PropertyExpansionContext getContext()
public DefaultWssContainer getWssContainer()
public void resolve(ResolveContext<?> context)
resolve in class AbstractWsdlModelItem<ProjectConfig>public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions in interface PropertyExpansionContainerprotected void addExternalDependencies(List<ExternalDependency> dependencies)
addExternalDependencies in class AbstractWsdlModelItem<ProjectConfig>public String getShadowPassword()
getShadowPassword in interface Projectpublic void setShadowPassword(String password)
setShadowPassword in interface Projectpublic String getHermesConfig()
public void setHermesConfig(String hermesConfigPath)
public int getEncrypted()
public int setEncrypted(int code)
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic SoapuiProjectDocumentConfig getProjectDocument()
public int getInterfaceCount(String type)
public List<AbstractInterface<?>> getInterfaces(String type)
public void importTestSuite(File file)
public WsdlInterface[] importWsdl(String url, boolean createRequests) throws SoapUIException
SoapUIExceptioncom.eviware.soapui.impl.WsdlInterfaceFactory.importWsdlpublic WsdlInterface[] importWsdl(String url, boolean createRequests, WsdlLoader wsdlLoader) throws SoapUIException
SoapUIExceptioncom.eviware.soapui.impl.WsdlInterfaceFactory.importWsdlpublic WsdlInterface[] importWsdl(String url, boolean createRequests, QName bindingName, WsdlLoader wsdlLoader) throws SoapUIException
SoapUIExceptioncom.eviware.soapui.impl.WsdlInterfaceFactory.importWsdlpublic void setDefaultScriptLanguage(String id)
public String getDefaultScriptLanguage()
public int getIndexOfTestSuite(TestSuite testSuite)
getIndexOfTestSuite in interface Projectpublic String getBeforeRunScript()
public void setBeforeRunScript(String script)
public Object runBeforeRunScript(ProjectRunContext context, ProjectRunner runner) throws Exception
Exceptionpublic String getAfterRunScript()
public void setAfterRunScript(String script)
public Object runAfterRunScript(ProjectRunContext context, ProjectRunner runner) throws Exception
Exceptionpublic void addProjectRunListener(ProjectRunListener projectRunListener)
public void removeProjectRunListener(ProjectRunListener projectRunListener)
public WsdlProjectRunner run(StringToObjectMap context, boolean async)
run in interface TestRunnablepublic boolean isAbortOnError()
public void setAbortOnError(boolean arg0)
public long getTimeout()
public void setTimeout(long timeout)
public ProjectRunListener[] getProjectRunListeners()
public TestSuite.TestSuiteRunType getRunType()
public void setRunType(TestSuite.TestSuiteRunType runType)
public WsdlTestSuite moveTestSuite(int ix, int offset)
public void importMockService(File file)
public void addEnvironmentListener(EnvironmentListener listener)
public void removeEnvironmentListener(EnvironmentListener listener)
Copyright © 2013. All Rights Reserved.