public class WsdlMockResponseTestStep extends WsdlTestStepWithProperties implements OperationTestStep, PropertyChangeListener, Assertable, PropertyExpansionContainer
Modifier and Type | Class and Description |
---|---|
class |
WsdlMockResponseTestStep.InternalInterfaceListener |
class |
WsdlMockResponseTestStep.InternalMockRunListener |
class |
WsdlMockResponseTestStep.InternalProjectListener |
Assertable.AssertionStatus
Modifier and Type | Field and Description |
---|---|
static String |
STATUS_PROPERTY |
static String |
TIMEOUT_PROPERTY |
RAW_RESPONSE, RESPONSE, RESPONSE_AS_XML
DISABLED_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
WsdlMockResponseTestStep(WsdlTestCase testCase,
TestStepConfig config,
boolean forLoadTest) |
addProperty, addProperty, addTestPropertyListener, deleteProperty, firePropertyAdded, firePropertyMoved, firePropertyRemoved, firePropertyRenamed, firePropertyValueChanged, getProperties, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperties, hasProperty, moveProperty, propertyRenamed, removeTestPropertyListener, setPropertyValue
afterCopy, clone, createPanelBuilder, getLabel, getModelItem, getPropertiesLabel, getTestCase, getTestStepTitle, hasEditor, isDisabled, isForLoadTest, setDisabled
addExternalDependencies, dependsOn, getConfig, getDescription, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel, getTestCase, isDisabled
getDescription, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
getModelItem
getModelItem
public static final String STATUS_PROPERTY
public static final String TIMEOUT_PROPERTY
public WsdlMockResponseTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest)
public void afterLoad()
afterLoad
in class AbstractWsdlModelItem<TestStepConfig>
public ImageIcon getIcon()
getIcon
in interface ModelItem
getIcon
in class AbstractWsdlModelItem<TestStepConfig>
public void initIcons()
public void resetConfigOnMove(TestStepConfig config)
WsdlTestStep
resetConfigOnMove
in class WsdlTestStep
config
- the new config to use, will be a copy of the existing one. The
current will be invalidpublic boolean cancel()
cancel
in interface TestStep
cancel
in class WsdlTestStep
public void prepare(TestCaseRunner testRunner, TestCaseRunContext testRunContext) throws Exception
prepare
in interface TestStep
prepare
in class WsdlTestStep
Exception
protected void initTestMockResponse(TestCaseRunContext testRunContext)
public TestStepResult run(TestCaseRunner testRunner, TestCaseRunContext context)
public void finish(TestCaseRunner testRunner, TestCaseRunContext testRunContext)
finish
in interface TestStep
finish
in class WsdlTestStep
public WsdlMockResult getLastResult()
public WsdlMockResponse getMockResponse()
public void setPort(int port)
public String getPath()
public String getHost()
public long getContentLength()
public int getPort()
public String getEncoding()
public void setEncoding(String encoding)
public boolean isMtomEnabled()
public void setMtomEnabled(boolean enabled)
public String getOutgoingWss()
public void setOutgoingWss(String outgoingWss)
public void setQuery(String s)
public String getQuery()
public String getMatch()
public void setMatch(String s)
public String getStartStep()
public void setStartStep(String startStep)
public boolean isRemoveEmptyContent()
public boolean isStripWhitespaces()
public void setRemoveEmptyContent(boolean removeEmptyContent)
public void setStripWhitespaces(boolean stripWhitespaces)
public void setPath(String path)
public void setHost(String host)
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public WsdlMessageAssertion addAssertion(String assertionName)
addAssertion
in interface Assertable
public void addAssertionsListener(AssertionsListener listener)
addAssertionsListener
in interface Assertable
public WsdlMessageAssertion getAssertionAt(int c)
getAssertionAt
in interface Assertable
public int getAssertionCount()
getAssertionCount
in interface Assertable
public void removeAssertionsListener(AssertionsListener listener)
removeAssertionsListener
in interface Assertable
public Assertable.AssertionStatus getAssertionStatus()
getAssertionStatus
in interface Assertable
public void removeAssertion(TestAssertion assertion)
removeAssertion
in interface Assertable
public TestAssertion moveAssertion(int ix, int offset)
moveAssertion
in interface Assertable
public String getAssertableContentAsXml()
getAssertableContentAsXml
in interface Assertable
public String getAssertableContent()
getAssertableContent
in interface Assertable
public TestStep getTestStep()
getTestStep
in interface Assertable
public void setName(String name)
setName
in class WsdlTestStep
public WsdlInterface getInterface()
getInterface
in interface Assertable
public WsdlOperation getOperation()
getOperation
in interface OperationTestStep
public void setInterface(String string)
public void setOperation(String string)
public void release()
release
in interface Releasable
release
in class AbstractWsdlModelItem<TestStepConfig>
public TestAssertionRegistry.AssertableType getAssertableType()
getAssertableType
in interface Assertable
public Collection<Interface> getRequiredInterfaces()
getRequiredInterfaces
in class WsdlTestStep
public String getDefaultSourcePropertyName()
WsdlTestStep
getDefaultSourcePropertyName
in class WsdlTestStep
public String getDefaultTargetPropertyName()
WsdlTestStep
getDefaultTargetPropertyName
in class WsdlTestStep
public void beforeSave()
beforeSave
in class AbstractWsdlModelItem<TestStepConfig>
public long getTimeout()
public void setTimeout(long timeout)
public boolean dependsOn(AbstractWsdlModelItem<?> modelItem)
dependsOn
in class WsdlTestStep
public WsdlMessageAssertion cloneAssertion(TestAssertion source, String name)
cloneAssertion
in interface Assertable
public List<TestAssertion> getAssertionList()
getAssertionList
in interface Assertable
public List<? extends ModelItem> getChildren()
getChildren
in interface ModelItem
getChildren
in class AbstractModelItem
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
public WsdlMessageAssertion getAssertionByName(String name)
getAssertionByName
in interface Assertable
public Map<String,TestAssertion> getAssertions()
getAssertions
in interface Assertable
public String getDefaultAssertableContent()
getDefaultAssertableContent
in interface Assertable
public void resolve(ResolveContext<?> context)
resolve
in class AbstractWsdlModelItem<TestStepConfig>
Copyright © 2019. All Rights Reserved.