com.eviware.soapui.impl.wsdl.teststeps
Class WsdlMessageAssertion

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
All Implemented Interfaces:
ModelItem, PropertyExpansionContainer, TestAssertion, PropertyChangeNotifier
Direct Known Subclasses:
GroovyScriptAssertion, JdbcStatusAssertion, JdbcTimeoutAssertion, JMSStatusAssertion, JMSTimeoutAssertion, NotSoapFaultAssertion, ResponseSLAAssertion, SchemaComplianceAssertion, SimpleContainsAssertion, SimpleNotContainsAssertion, SoapFaultAssertion, SoapResponseAssertion, WSARequestAssertion, WSAResponseAssertion, WSSStatusAssertion, XPathContainsAssertion, XQueryContainsAssertion

public abstract class WsdlMessageAssertion
extends AbstractModelItem
implements PropertyExpansionContainer, TestAssertion

Base class for WsdlAssertions

Author:
Ole.Matzura

Field Summary
 
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
protected WsdlMessageAssertion(com.eviware.soapui.config.TestAssertionConfig assertionConfig, Assertable modelItem, boolean cloneable, boolean configurable, boolean multiple, boolean requiresResponseContent)
           
 
Method Summary
 Assertable.AssertionStatus assertRequest(MessageExchange messageExchange, SubmitContext context)
           
 Assertable.AssertionStatus assertResponse(MessageExchange messageExchange, SubmitContext context)
           
 boolean configure()
           
 Assertable getAssertable()
           
 com.eviware.soapui.config.TestAssertionConfig getConfig()
           
 org.apache.xmlbeans.XmlObject getConfiguration()
           
 java.lang.String getDescription()
           
 AssertionError[] getErrors()
           
 javax.swing.ImageIcon getIcon()
           
 java.lang.String getId()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 ModelItem getParent()
           
 PropertyExpansion[] getPropertyExpansions()
           
 Settings getSettings()
           
 Assertable.AssertionStatus getStatus()
           
protected abstract  java.lang.String internalAssertRequest(MessageExchange messageExchange, SubmitContext context)
           
protected abstract  java.lang.String internalAssertResponse(MessageExchange messageExchange, SubmitContext context)
           
 boolean isAllowMultiple()
           
 boolean isClonable()
           
 boolean isConfigurable()
           
 boolean isDisabled()
           
 boolean isFailed()
           
 boolean isValid()
           
 void prepare(TestCaseRunner testRunner, TestCaseRunContext testRunContext)
           
 void release()
           
 void resolve(ResolveContext<?> context)
           
 void setConfiguration(org.apache.xmlbeans.XmlObject configuration)
           
 void setDisabled(boolean disabled)
           
 void setName(java.lang.String name)
           
 void updateConfig(com.eviware.soapui.config.TestAssertionConfig config)
           
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, 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.ModelItem
getChildren
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

WsdlMessageAssertion

protected WsdlMessageAssertion(com.eviware.soapui.config.TestAssertionConfig assertionConfig,
                               Assertable modelItem,
                               boolean cloneable,
                               boolean configurable,
                               boolean multiple,
                               boolean requiresResponseContent)
Method Detail

getConfiguration

public org.apache.xmlbeans.XmlObject getConfiguration()

setConfiguration

public void setConfiguration(org.apache.xmlbeans.XmlObject configuration)

getName

public java.lang.String getName()
Specified by:
getName in interface ModelItem

getStatus

public Assertable.AssertionStatus getStatus()
Specified by:
getStatus in interface TestAssertion

getErrors

public AssertionError[] getErrors()
Specified by:
getErrors in interface TestAssertion

isAllowMultiple

public boolean isAllowMultiple()
Specified by:
isAllowMultiple in interface TestAssertion

assertResponse

public Assertable.AssertionStatus assertResponse(MessageExchange messageExchange,
                                                 SubmitContext context)

internalAssertResponse

protected abstract java.lang.String internalAssertResponse(MessageExchange messageExchange,
                                                           SubmitContext context)
                                                    throws AssertionException
Throws:
AssertionException

assertRequest

public Assertable.AssertionStatus assertRequest(MessageExchange messageExchange,
                                                SubmitContext context)

internalAssertRequest

protected abstract java.lang.String internalAssertRequest(MessageExchange messageExchange,
                                                          SubmitContext context)
                                                   throws AssertionException
Throws:
AssertionException

isConfigurable

public boolean isConfigurable()
Specified by:
isConfigurable in interface TestAssertion

isClonable

public boolean isClonable()
Specified by:
isClonable in interface TestAssertion

configure

public boolean configure()
Specified by:
configure in interface TestAssertion

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ModelItem

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in interface ModelItem

updateConfig

public void updateConfig(com.eviware.soapui.config.TestAssertionConfig config)

getConfig

public com.eviware.soapui.config.TestAssertionConfig getConfig()

getSettings

public Settings getSettings()
Specified by:
getSettings in interface ModelItem

release

public void release()

getAssertable

public Assertable getAssertable()
Specified by:
getAssertable in interface TestAssertion

getId

public java.lang.String getId()
Specified by:
getId in interface ModelItem

getPropertyExpansions

public PropertyExpansion[] getPropertyExpansions()
Specified by:
getPropertyExpansions in interface PropertyExpansionContainer

setName

public void setName(java.lang.String name)

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface TestAssertion

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface TestAssertion

setDisabled

public void setDisabled(boolean disabled)

getParent

public ModelItem getParent()
Specified by:
getParent in interface ModelItem

isValid

public boolean isValid()

isFailed

public boolean isFailed()

prepare

public void prepare(TestCaseRunner testRunner,
                    TestCaseRunContext testRunContext)
             throws java.lang.Exception
Specified by:
prepare in interface TestAssertion
Throws:
java.lang.Exception

resolve

public void resolve(ResolveContext<?> context)


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