Class EqualToXmlPattern
java.lang.Object
com.github.tomakehurst.wiremock.matching.ContentPattern<String>
com.github.tomakehurst.wiremock.matching.StringValuePattern
com.github.tomakehurst.wiremock.matching.EqualToXmlPattern
- All Implemented Interfaces:
NamedValueMatcher<String>,ValueMatcher<String>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum represents how the pattern will treat XML namespaces when matching. -
Field Summary
Fields inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
expectedValue -
Constructor Summary
ConstructorsConstructorDescriptionEqualToXmlPattern(String expectedValue) EqualToXmlPattern(String expectedValue, Boolean enablePlaceholders, boolean ignoreOrderOfSameNode) EqualToXmlPattern(String expectedValue, Boolean enablePlaceholders, String placeholderOpeningDelimiterRegex, String placeholderClosingDelimiterRegex, Set<org.xmlunit.diff.ComparisonType> exemptedComparisons, Boolean ignoreOrderOfSameNode, EqualToXmlPattern.NamespaceAwareness namespaceAwareness) -
Method Summary
Modifier and TypeMethodDescriptionexemptingComparisons(org.xmlunit.diff.ComparisonType... comparisons) Set<org.xmlunit.diff.ComparisonType>withNamespaceAwareness(EqualToXmlPattern.NamespaceAwareness namespaceAwareness) Methods inherited from class com.github.tomakehurst.wiremock.matching.StringValuePattern
and, equals, getName, hashCode, isAbsent, isPresent, nullSafeIsAbsent, or, toStringMethods inherited from class com.github.tomakehurst.wiremock.matching.ContentPattern
getValue, isNullValuePermitted
-
Constructor Details
-
EqualToXmlPattern
-
EqualToXmlPattern
-
EqualToXmlPattern
public EqualToXmlPattern(String expectedValue, Boolean enablePlaceholders, String placeholderOpeningDelimiterRegex, String placeholderClosingDelimiterRegex, Set<org.xmlunit.diff.ComparisonType> exemptedComparisons, Boolean ignoreOrderOfSameNode, EqualToXmlPattern.NamespaceAwareness namespaceAwareness)
-
-
Method Details
-
getEqualToXml
-
getExpected
- Specified by:
getExpectedin interfaceNamedValueMatcher<String>- Overrides:
getExpectedin classStringValuePattern
-
isEnablePlaceholders
-
isIgnoreOrderOfSameNode
-
getPlaceholderOpeningDelimiterRegex
-
getPlaceholderClosingDelimiterRegex
-
getExemptedComparisons
-
getNamespaceAwareness
-
match
-
exemptingComparisons
-
withNamespaceAwareness
public EqualToXmlPattern withNamespaceAwareness(EqualToXmlPattern.NamespaceAwareness namespaceAwareness)
-