Package | Description |
---|---|
org.springframework.cloud.contract.verifier.util.xml |
Modifier and Type | Interface and Description |
---|---|
interface |
XmlArrayVerifiable
Contract to match an array in a parsed XML via XPath
|
Modifier and Type | Method and Description |
---|---|
static XmlVerifiable |
XmlAssertion.assertThat(Document parsedXml)
Starts assertions for the XML provided as
Document |
static XmlVerifiable |
XmlAssertion.assertThat(String xml)
Starts assertions for the XML provided as
String |
static XmlVerifiable |
XmlAssertion.assertThatXml(Document parsedXml)
Helper method so that there are no clashes with other static methods of that name
|
static XmlVerifiable |
XmlAssertion.assertThatXml(String body)
Helper method so that there are no clashes with other static methods of that name
|
static XmlVerifiable |
XPathBuilder.builder()
Returns a builder of
XmlVerifiable with which you can build your
XPath. |
static XmlVerifiable |
XPathBuilder.builder(String xml)
Using a XPath builder for the given XML you can read its value.
|
XmlVerifiable |
XmlVerifiable.index(int index)
Adds an index to xPath
|
XmlVerifiable |
XmlVerifiable.isEqualTo(Boolean value)
Equality comparison with a Boolean
|
XmlVerifiable |
XmlVerifiable.isEqualTo(Number value)
Equality comparison with a Number
|
XmlVerifiable |
XmlVerifiable.isEqualTo(Object value)
Equality comparison with any object
|
XmlVerifiable |
XmlVerifiable.isEqualTo(String value)
Equality comparison with String
|
XmlVerifiable |
XmlVerifiable.isNull()
Equality comparison to null
|
XmlVerifiable |
XmlVerifiable.matches(String value)
Regex matching for strings
|
XmlVerifiable |
XmlVerifiable.node(String... nodeNames)
Field assertions.
|
XmlVerifiable |
XmlVerifiable.node(String nodeName)
Field assertion.
|
XmlVerifiable |
XmlVerifiable.text()
Adds a
text() call to xPath |
XmlVerifiable |
XmlVerifiable.withAttribute(String attribute)
Adds attribute query to xPath without comparing with any provided value
|
XmlVerifiable |
XmlVerifiable.withAttribute(String attribute,
String attributeValue)
Field assertion.
|
XmlVerifiable |
XmlVerifiable.withoutThrowingException()
Calling this method will setup the fluent interface to ignore any XPath verification
|
Copyright © 2016–2019 Spring. All rights reserved.