public class JsonSchemaComplianceAssertion extends WsdlMessageAssertion implements ResponseAssertion
Modifier and Type | Class and Description |
---|---|
static class |
JsonSchemaComplianceAssertion.Factory |
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static String |
LABEL |
assertionErrors, assertionStatus, NO_RESPONSE
CONFIGURATION_PROPERTY, DISABLED_PROPERTY, ERRORS_PROPERTY, STATUS_PROPERTY
Constructor and Description |
---|
JsonSchemaComplianceAssertion(TestAssertionConfig assertionConfig,
Assertable modelItem)
Assertions need to have a constructor that takes a TestAssertionConfig and the ModelItem to be asserted
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure() |
protected org.apache.xmlbeans.XmlObject |
createConfiguration() |
protected String |
internalAssertProperty(TestPropertyHolder source,
String propertyName,
MessageExchange messageExchange,
SubmitContext context) |
protected String |
internalAssertResponse(MessageExchange messageExchange,
SubmitContext submitContext) |
boolean |
isConfigurable() |
void |
setSchemaUrl(String endpoint) |
appliesToRequest, assertProperty, assertRequest, assertResponse, createEventBusMessage, getAssertable, getConfig, getConfiguration, getDescription, getErrors, getIcon, getId, getIndexOfAssertion, getLabel, getName, getParent, getPropertyExpansions, getSettings, getStatus, internalAssertRequest, isAllowMultiple, isClonable, isDisabled, isFailed, isValid, prepare, prepare, release, resolve, setAssertable, setConfiguration, setDisabled, setErrors, setName, setStatus, updateConfig
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, getChildren, getDashboardDbId, getProject, initItemOrder, isNotifyPropertyChanged, notifyPropertyChanged, removeModelItemFromConfig, removePropertyChangeListener, removePropertyChangeListener, setDashboardDbId, setNotifyPropertyChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assertResponse
public static final String ID
public static final String LABEL
public JsonSchemaComplianceAssertion(TestAssertionConfig assertionConfig, Assertable modelItem)
public boolean isConfigurable()
isConfigurable
in interface TestAssertion
isConfigurable
in class WsdlMessageAssertion
public boolean configure()
configure
in interface TestAssertion
configure
in class WsdlMessageAssertion
public void setSchemaUrl(String endpoint)
protected org.apache.xmlbeans.XmlObject createConfiguration()
protected String internalAssertResponse(MessageExchange messageExchange, SubmitContext submitContext) throws AssertionException
internalAssertResponse
in class WsdlMessageAssertion
AssertionException
protected String internalAssertProperty(TestPropertyHolder source, String propertyName, MessageExchange messageExchange, SubmitContext context) throws AssertionException
internalAssertProperty
in class WsdlMessageAssertion
AssertionException
Copyright © 2019. All rights reserved.