com.eviware.soapui.impl.wsdl.teststeps.assertions.basic
Class SchemaComplianceAssertion

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.basic.SchemaComplianceAssertion
All Implemented Interfaces:
ModelItem, PropertyExpansionContainer, RequestAssertion, ResponseAssertion, TestAssertion, PropertyChangeNotifier

public class SchemaComplianceAssertion
extends WsdlMessageAssertion
implements RequestAssertion, ResponseAssertion

Asserts that a request or response message complies with its related WSDL definition / XML Schema

Author:
Ole.Matzura

Nested Class Summary
static class SchemaComplianceAssertion.Factory
           
 
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
SchemaComplianceAssertion(com.eviware.soapui.config.TestAssertionConfig assertionConfig, Assertable assertable)
           
 
Method Summary
 boolean configure()
           
protected  org.apache.xmlbeans.XmlObject createConfiguration()
           
protected  java.lang.String internalAssertRequest(MessageExchange messageExchange, SubmitContext context)
           
protected  java.lang.String internalAssertResponse(MessageExchange messageExchange, SubmitContext context)
           
 void prepare(TestRunner testRunner, TestRunContext testRunContext)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion
assertRequest, assertResponse, getAssertable, getConfig, getConfiguration, getDescription, getErrors, getIcon, getId, getLabel, getName, getParent, getPropertyExpansions, getSettings, getStatus, isAllowMultiple, isClonable, isConfigurable, isDisabled, isFailed, isValid, 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
 
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.model.ModelItem
getChildren
 
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

SchemaComplianceAssertion

public SchemaComplianceAssertion(com.eviware.soapui.config.TestAssertionConfig assertionConfig,
                                 Assertable assertable)
Method Detail

prepare

public void prepare(TestRunner testRunner,
                    TestRunContext testRunContext)
             throws java.lang.Exception
Specified by:
prepare in interface TestAssertion
Overrides:
prepare in class WsdlMessageAssertion
Throws:
java.lang.Exception

internalAssertResponse

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

configure

public boolean configure()
Specified by:
configure in interface TestAssertion
Overrides:
configure in class WsdlMessageAssertion

createConfiguration

protected org.apache.xmlbeans.XmlObject createConfiguration()

internalAssertRequest

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


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