public abstract class AbstractXmlContainsAssertion extends WsdlMessageAssertion implements RequestAssertion, ResponseAssertion, XPathReferenceContainer
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractXmlContainsAssertion.InternalDifferenceListener |
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowWildcards |
protected AssertionConfigurationDialog |
configurationDialog |
protected String |
expectedContent |
protected boolean |
ignoreComments |
protected boolean |
ignoreNamespaceDifferences |
protected String |
path |
assertionErrors, assertionStatus
CONFIGURATION_PROPERTY, DISABLED_PROPERTY, ERRORS_PROPERTY, STATUS_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
AbstractXmlContainsAssertion(TestAssertionConfig assertionConfig,
Assertable modelItem,
boolean cloneable,
boolean configurable,
boolean multiple,
boolean requiresResponseContent) |
assertProperty, assertRequest, assertResponse, getAssertable, getConfig, getConfiguration, getDescription, getErrors, getIcon, getId, getIndexOfAssertion, getLabel, getName, getParent, getSettings, getStatus, isAllowMultiple, isClonable, isConfigurable, isDisabled, isFailed, isValid, prepare, release, resolve, setAssertable, setConfiguration, setDisabled, setName, updateConfig
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assertRequest
assertResponse
getChildren, getProject
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
protected String expectedContent
protected String path
protected boolean allowWildcards
protected boolean ignoreNamespaceDifferences
protected boolean ignoreComments
protected AssertionConfigurationDialog configurationDialog
protected AbstractXmlContainsAssertion(TestAssertionConfig assertionConfig, Assertable modelItem, boolean cloneable, boolean configurable, boolean multiple, boolean requiresResponseContent)
public String getExpectedContent()
public void setExpectedContent(String expectedContent)
protected void setExpectedContent(String expectedContent, boolean save)
@Deprecated public void setContent(String content)
public String getPath()
public void setPath(String path)
public boolean isAllowWildcards()
public void setAllowWildcards(boolean allowWildcards)
public boolean isIgnoreNamespaceDifferences()
public void setIgnoreNamespaceDifferences(boolean ignoreNamespaceDifferences)
public boolean isIgnoreComments()
public void setIgnoreComments(boolean ignoreComments)
public org.apache.xmlbeans.XmlObject createConfiguration()
protected void addConfigurationValues(XmlObjectConfigurationBuilder builder)
protected JTextArea getPathArea()
protected JTextArea getContentArea()
public boolean configure()
configure
in interface TestAssertion
configure
in class WsdlMessageAssertion
protected AbstractXmlContainsAssertion getAssertion()
protected String internalAssertResponse(MessageExchange messageExchange, SubmitContext context) throws AssertionException
internalAssertResponse
in class WsdlMessageAssertion
AssertionException
public abstract String assertContent(String response, SubmitContext context, String type) throws AssertionException
AssertionException
protected String internalAssertProperty(TestPropertyHolder source, String propertyName, MessageExchange messageExchange, SubmitContext context) throws AssertionException
internalAssertProperty
in class WsdlMessageAssertion
AssertionException
protected String internalAssertRequest(MessageExchange messageExchange, SubmitContext context) throws AssertionException
internalAssertRequest
in class WsdlMessageAssertion
AssertionException
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
getPropertyExpansions
in class WsdlMessageAssertion
public String getPathAreaTitle()
public String getPathAreaDescription()
public String getPathAreaToolTipText()
public String getPathAreaBorderTitle()
public String getContentAreaToolTipText()
public String getConfigurationDialogTitle()
public String getContentAreaBorderTitle()
public boolean canAssertXmlContent()
protected void addMatchEditorActions(JXToolBar toolbar)
protected void addPathEditorActions(JXToolBar toolbar)
public abstract void selectFromCurrent()
protected abstract String getQueryType()
public XPathReference[] getXPathReferences()
getXPathReferences
in interface XPathReferenceContainer
Copyright © 2019. All Rights Reserved.