com.eviware.soapui.impl.wsdl.teststeps.assertions
Class XQueryContainsAssertion

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
          extended by com.eviware.soapui.impl.wsdl.teststeps.assertions.XQueryContainsAssertion
All Implemented Interfaces:
ModelItem, PropertyExpansionContainer, XPathReferenceContainer, RequestAssertion, ResponseAssertion, TestAssertion, PropertyChangeNotifier

public class XQueryContainsAssertion
extends WsdlMessageAssertion
implements RequestAssertion, ResponseAssertion, XPathReferenceContainer

Assertion that matches a specified XQuery expression and its expected result against the associated WsdlTestRequests response message

Author:
Ole.Matzura

Nested Class Summary
 class XQueryContainsAssertion.CancelAction
           
 class XQueryContainsAssertion.DeclareNamespacesFromCurrentAction
           
 class XQueryContainsAssertion.OkAction
           
 class XQueryContainsAssertion.SelectFromCurrentAction
           
 class XQueryContainsAssertion.TestPathAction
           
 
Field Summary
static java.lang.String ID
           
static java.lang.String LABEL
           
 
Fields inherited from interface com.eviware.soapui.model.testsuite.TestAssertion
CONFIGURATION_PROPERTY, DISABLED_PROPERTY, ERRORS_PROPERTY, STATUS_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Constructor Summary
XQueryContainsAssertion(com.eviware.soapui.config.RequestAssertionConfig assertionConfig, Assertable assertable)
           
 
Method Summary
protected  void addMatchEditorActions(JXToolBar toolbar)
           
protected  void addPathEditorActions(JXToolBar toolbar)
           
 java.lang.String assertContent(java.lang.String response, SubmitContext context, java.lang.String type)
           
protected  void buildConfigurationDialog()
           
 boolean configure()
           
 org.apache.xmlbeans.XmlObject createConfiguration()
           
 javax.swing.JTextArea getContentArea()
           
 java.lang.String getExpectedContent()
           
 java.lang.String getPath()
           
 javax.swing.JTextArea getPathArea()
           
 PropertyExpansion[] getPropertyExpansions()
           
 XPathReference[] getXPathReferences()
           
protected  java.lang.String internalAssertRequest(WsdlMessageExchange messageExchange, SubmitContext context)
           
protected  java.lang.String internalAssertResponse(WsdlMessageExchange messageExchange, SubmitContext context)
           
 boolean isAllowWildcards()
           
 void selectFromCurrent()
           
 void setAllowWildcards(boolean allowWildcards)
           
 void setContent(java.lang.String content)
          Deprecated.  
 void setExpectedContent(java.lang.String expectedContent)
           
 void setPath(java.lang.String path)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
assertRequest, assertResponse, getAssertable, getChildren, getConfig, getConfiguration, getDescription, getErrors, getIcon, getId, getLabel, getName, getParent, getSettings, getStatus, isAllowMultiple, isClonable, isConfigurable, isDisabled, isFailed, isValid, release, setConfiguration, setDisabled, setName, updateConfig
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.model.testsuite.RequestAssertion
assertRequest
 
Methods inherited from interface com.eviware.soapui.model.testsuite.ResponseAssertion
assertResponse
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

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
Constructor Detail

XQueryContainsAssertion

public XQueryContainsAssertion(com.eviware.soapui.config.RequestAssertionConfig assertionConfig,
                               Assertable assertable)
Method Detail

getExpectedContent

public java.lang.String getExpectedContent()

setExpectedContent

public void setExpectedContent(java.lang.String expectedContent)

setContent

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)

internalAssertResponse

protected java.lang.String internalAssertResponse(WsdlMessageExchange 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(WsdlMessageExchange 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-2007 eviware.com. All Rights Reserved.