Class SimpleSoapAttachmentValidator
java.lang.Object
org.citrusframework.ws.validation.AbstractSoapAttachmentValidator
org.citrusframework.ws.validation.SimpleSoapAttachmentValidator
- All Implemented Interfaces:
SoapAttachmentValidator
- Direct Known Subclasses:
XmlSoapAttachmentValidator
Simple implementation of a
AbstractSoapAttachmentValidator.
Attachment content body is validated through simple string equals assertion.- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets flag marking that all whitespaces are ignored.voidsetIgnoreAllWhitespaces(boolean ignoreAllWhitespaces) Sets ignore all whitespaces flag.protected voidvalidateAttachmentContent(SoapAttachment receivedAttachment, SoapAttachment controlAttachment) Delegate content body validation to subclasses.protected voidvalidateAttachmentContentData(String receivedContent, String controlContent, String controlContentId) Validates content data.Methods inherited from class org.citrusframework.ws.validation.AbstractSoapAttachmentValidator
findAttachment, validateAttachment, validateAttachmentContentId, validateAttachmentContentType
-
Constructor Details
-
SimpleSoapAttachmentValidator
public SimpleSoapAttachmentValidator()
-
-
Method Details
-
validateAttachmentContent
protected void validateAttachmentContent(SoapAttachment receivedAttachment, SoapAttachment controlAttachment) Description copied from class:AbstractSoapAttachmentValidatorDelegate content body validation to subclasses.- Specified by:
validateAttachmentContentin classAbstractSoapAttachmentValidator
-
validateAttachmentContentData
protected void validateAttachmentContentData(String receivedContent, String controlContent, String controlContentId) Validates content data.- Parameters:
receivedContent-controlContent-controlContentId-
-
isIgnoreAllWhitespaces
public boolean isIgnoreAllWhitespaces()Gets flag marking that all whitespaces are ignored.- Returns:
-
setIgnoreAllWhitespaces
public void setIgnoreAllWhitespaces(boolean ignoreAllWhitespaces) Sets ignore all whitespaces flag.- Parameters:
ignoreAllWhitespaces-
-