com.eviware.soapui.impl.wsdl.teststeps.assertions.basic
Class XPathContainsAssertion
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.XPathContainsAssertion
- All Implemented Interfaces:
- ModelItem, PropertyExpansionContainer, XPathReferenceContainer, RequestAssertion, ResponseAssertion, TestAssertion, PropertyChangeNotifier
public class XPathContainsAssertion
- extends WsdlMessageAssertion
- implements RequestAssertion, ResponseAssertion, XPathReferenceContainer
Assertion that matches a specified XPath expression and its expected result
against the associated WsdlTestRequests response message
- Author:
- Ole.Matzura
Field Summary |
static java.lang.String |
ID
|
static java.lang.String |
LABEL
|
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion |
assertRequest, assertResponse, getAssertable, getConfig, getConfiguration, getDescription, getErrors, getIcon, getId, getLabel, getName, getParent, getSettings, getStatus, isAllowMultiple, isClonable, isConfigurable, isDisabled, isFailed, isValid, prepare, release, resolve, setConfiguration, setDisabled, setName, updateConfig |
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
LABEL
public static final java.lang.String LABEL
- See Also:
- Constant Field Values
XPathContainsAssertion
public XPathContainsAssertion(com.eviware.soapui.config.TestAssertionConfig assertionConfig,
Assertable assertable)
getExpectedContent
public java.lang.String getExpectedContent()
setExpectedContent
public void setExpectedContent(java.lang.String expectedContent)
setContent
@Deprecated
public void setContent(java.lang.String content)
- Deprecated.
getPath
public java.lang.String getPath()
setPath
public void setPath(java.lang.String path)
isAllowWildcards
public boolean isAllowWildcards()
setAllowWildcards
public void setAllowWildcards(boolean allowWildcards)
isIgnoreNamspaceDifferences
public boolean isIgnoreNamspaceDifferences()
setIgnoreNamspaceDifferences
public void setIgnoreNamspaceDifferences(boolean ignoreNamspaceDifferences)
internalAssertResponse
protected java.lang.String internalAssertResponse(MessageExchange messageExchange,
SubmitContext context)
throws AssertionException
- Specified by:
internalAssertResponse
in class WsdlMessageAssertion
- Throws:
AssertionException
assertContent
public java.lang.String assertContent(java.lang.String response,
SubmitContext context,
java.lang.String type)
throws AssertionException
- Throws:
AssertionException
configure
public boolean configure()
- Specified by:
configure
in interface TestAssertion
- Overrides:
configure
in class WsdlMessageAssertion
buildConfigurationDialog
protected void buildConfigurationDialog()
addPathEditorActions
protected void addPathEditorActions(JXToolBar toolbar)
addMatchEditorActions
protected void addMatchEditorActions(JXToolBar toolbar)
createConfiguration
public org.apache.xmlbeans.XmlObject createConfiguration()
selectFromCurrent
public void selectFromCurrent()
internalAssertRequest
protected java.lang.String internalAssertRequest(MessageExchange messageExchange,
SubmitContext context)
throws AssertionException
- Specified by:
internalAssertRequest
in class WsdlMessageAssertion
- Throws:
AssertionException
getContentArea
public javax.swing.JTextArea getContentArea()
getPathArea
public javax.swing.JTextArea getPathArea()
getPropertyExpansions
public PropertyExpansion[] getPropertyExpansions()
- Specified by:
getPropertyExpansions
in interface PropertyExpansionContainer
- Overrides:
getPropertyExpansions
in class WsdlMessageAssertion
getXPathReferences
public XPathReference[] getXPathReferences()
- Specified by:
getXPathReferences
in interface XPathReferenceContainer
Copyright © 2005-2009 eviware.com. All Rights Reserved.