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

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.SimpleContainsAssertion
All Implemented Interfaces:
RequestAssertion, ResponseAssertion, ModelItem, PropertyChangeNotifier

public class SimpleContainsAssertion
extends WsdlMessageAssertion
implements RequestAssertion, ResponseAssertion

Assertion that checks for a specified text token in the associated WsdlTestRequests response XML message

Author:
Ole.Matzura

Nested Class Summary
 
Nested classes/interfaces inherited from class com.eviware.soapui.model.support.AbstractModelItem
AbstractModelItem.ShowModelItemAction
 
Field Summary
static java.lang.String ID
           
 
Fields inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
CONFIGURATION_PROPERTY, ERRORS_PROPERTY, STATUS_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, NAME_PROPERTY
 
Constructor Summary
SimpleContainsAssertion(com.eviware.soapui.config.RequestAssertionConfig assertionConfig, Assertable assertable)
           
 
Method Summary
 boolean configure()
           
protected  org.apache.xmlbeans.XmlObject createConfiguration()
           
 java.lang.String getToken()
           
protected  java.lang.String internalAssertRequest(WsdlMessageExchange messageExchange, SubmitContext context)
           
 java.lang.String internalAssertResponse(WsdlMessageExchange messageExchange, SubmitContext context)
           
 boolean isIgnoreCase()
           
 void setIgnoreCase(boolean ignoreCase)
           
 void setToken(java.lang.String token)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
assertRequest, assertResponse, getAssertable, getConfig, getConfiguration, getDescription, getErrors, getIcon, getName, getSettings, getStatus, isAllowMultiple, isClonable, isConfigurable, release, setConfiguration, setName, updateConfig
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, 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.impl.wsdl.teststeps.assertions.RequestAssertion
assertRequest
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.teststeps.assertions.ResponseAssertion
assertResponse
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

SimpleContainsAssertion

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

internalAssertResponse

public java.lang.String internalAssertResponse(WsdlMessageExchange messageExchange,
                                               SubmitContext context)
                                        throws AssertionException
Specified by:
internalAssertResponse in class WsdlMessageAssertion
Throws:
AssertionException

configure

public boolean configure()
Overrides:
configure in class WsdlMessageAssertion

isIgnoreCase

public boolean isIgnoreCase()

setIgnoreCase

public void setIgnoreCase(boolean ignoreCase)

getToken

public java.lang.String getToken()

setToken

public void setToken(java.lang.String token)

createConfiguration

protected org.apache.xmlbeans.XmlObject createConfiguration()

internalAssertRequest

protected java.lang.String internalAssertRequest(WsdlMessageExchange messageExchange,
                                                 SubmitContext context)
                                          throws AssertionException
Specified by:
internalAssertRequest in class WsdlMessageAssertion
Throws:
AssertionException


Copyright © 2005-2007 eviware.com. All Rights Reserved.