case class XmlMatcher(functions: Seq[PathFunction]) extends Matcher[Seq[Node]] with Product with Serializable
The XmlMatcher class matches an xml Node, or a list of Nodes against a list of search functions, which can either search for:
- a given direct child, with its label and/or attributes and/or attributes names and values
- a given child, direct or not (maybe deeply nested), with its label and/or attributes and/or attributes names and values
XmlMatchers can be "chained" by using the \ or the \\ methods. In that case, the resulting matcher has a new search function which tries to match the result of the preceding function. For example
will be ok.must \\("c").\("d")
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- XmlMatcher
- Serializable
- Product
- Equals
- Matcher
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new XmlMatcher(functions: Seq[PathFunction])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def \(label: String, attributeValues: (String, String), attributeValues2: (String, String)*): XmlMatcher
- def \(label: String, attributeNames: String*): XmlMatcher
alias for \ using the node label only
- def \(node: Node, attributeValues: (String, String), attributeValues2: (String, String)*): XmlMatcher
- def \(node: Node, attributeNames: String*): XmlMatcher
- def \>(t: String): XmlMatcher
alias for textIs
- def \>~(t: String): XmlMatcher
alias for textMatches
- def \\(label: String, attributeValues: (String, String), attributeValues2: (String, String)*): XmlMatcher
- def \\(label: String, attributeNames: String*): XmlMatcher
alias for \\ using the node label only
- def \\(node: Node, attributeValues: (String, String), attributeValues2: (String, String)*): XmlMatcher
- def \\(node: Node, attributeNames: String*): XmlMatcher
- def ^^[S](f: (S) => Expectable[Seq[Node]], dummy: Int): Matcher[S]
- Definition Classes
- Matcher
- def ^^[S](f: (S) => Seq[Node]): Matcher[S]
- Definition Classes
- Matcher
- def and[S <: Seq[Node]](m: => Matcher[S]): Matcher[S]
- Definition Classes
- Matcher
- def apply[S <: Seq[Node]](n: Expectable[S]): MatchResult[S]
checks that the
nodes
satisfy thefunctions
checks that the
nodes
satisfy thefunctions
- Definition Classes
- XmlMatcher → Matcher
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkFunctions(pathFunctions: Seq[PathFunction], nodes: Seq[Node], messages: (Boolean, String, String)): (Boolean, String, String)
checks that the
nodes
satisfy thefunctions
checks that the
nodes
satisfy thefunctions
- returns
a MatcherResult
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def eventually(retries: Int, sleep: Duration): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def eventually: Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def exactly: XmlMatcher
do an exact match on attributes and attributes values
- def failure[S <: Seq[Node]](message: => String, value: Expectable[S]): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val functions: Seq[PathFunction]
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def iff(b: Boolean): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lazily: Matcher[() => Seq[Node]]
- Definition Classes
- Matcher
- def mute: Matcher[Seq[Node]]
- Definition Classes
- Matcher
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def not: Matcher[Seq[Node]]
- Definition Classes
- Matcher
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def or[S <: Seq[Node]](m: => Matcher[S]): Matcher[S]
- Definition Classes
- Matcher
- def orPending(message: (String) => String): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def orPending(m: String): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def orPending: Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def orSkip(message: (String) => String): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def orSkip(m: String): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def orSkip: Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def result[S <: Seq[Node]](other: MatchResultMessages.MatchResultMessage, value: Expectable[S]): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def result[S <: Seq[Node]](other: Result, value: Expectable[S]): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def result[S <: Seq[Node]](other: MatchResult[_], value: Expectable[S]): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def result[S <: Seq[Node]](test: => Boolean, okMessage: => String, koMessage: => String, value: Expectable[S], details: Details): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def result[S <: Seq[Node]](test: => Boolean, okMessage: => String, koMessage: => String, value: Expectable[S], expected: String, actual: String): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def result[S <: Seq[Node]](triplet: => (Boolean, String, String), value: Expectable[S]): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def result[S <: Seq[Node]](test: => Boolean, okMessage: => String, koMessage: => String, value: Expectable[S]): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- def setMessage(message: String): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def success[S <: Seq[Node]](message: => String, value: Expectable[S]): MatchResult[S]
- Attributes
- protected
- Definition Classes
- Matcher
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def test: (Seq[Node]) => Boolean
- Definition Classes
- Matcher
- def textIs(t: String): XmlMatcher
specify the value of the node text
- def textMatches(regexp: String): XmlMatcher
specify the value of the node text
- def unless(b: Boolean, m: String): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- def updateMessage(f: (String) => String): Matcher[Seq[Node]]
- Definition Classes
- Matcher
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def when(b: Boolean, m: String): Matcher[Seq[Node]]
- Definition Classes
- Matcher