Class

com.github.eerohele.expek

XsltResultMatcher

Related Doc: package expek

Permalink

sealed class XsltResultMatcher[T <: Transformation] extends Matcher[T] with MatchResultCombinators

A specs2 matcher that matches against the result of an XSLT transformation.

The result of an XSLT transformation can either be a node, which can be one of:

Or it can be an atomic value, which, when converted into a native Java type, can be one of:

Element and document nodes are converted into Source so that we can compare them with XMLUnit.

Node instances in the expected Vector are also converted into a Source so that we can compare those to XSLT transformation results.

Other node types are kept as is and we compare their string representations.

Atomic values that are the result of an XSLT transformation are converted to native Java types with Saxon's XdmAtomicValue.getValue() method and compared to the expected values.

Linear Supertypes
MatchResultCombinators, ResultLogicalCombinators, Results, MatchResultLogicalCombinators, Expectations, ExpectationsDescription, TypedEqual, ExpectationsCreation, MatchResultStackTrace, Matcher[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XsltResultMatcher
  2. MatchResultCombinators
  3. ResultLogicalCombinators
  4. Results
  5. MatchResultLogicalCombinators
  6. Expectations
  7. ExpectationsDescription
  8. TypedEqual
  9. ExpectationsCreation
  10. MatchResultStackTrace
  11. Matcher
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new XsltResultMatcher(expected: Vector[Any])(implicit matcher: (Source) ⇒ CompareMatcher)

    Permalink

Type Members

  1. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  2. class ExpectationDescription extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  3. class MatchResultCombinator[T] extends AnyRef

    Permalink
    Definition Classes
    MatchResultLogicalCombinators
  4. class ResultLogicalCombinator extends AnyRef

    Permalink
    Definition Classes
    ResultLogicalCombinators
  5. class TypedEqualExpectation[T] extends AnyRef

    Permalink
    Definition Classes
    TypedEqual

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ^^[S](f: (S) ⇒ Expectable[T], dummy: Int): Matcher[S]

    Permalink
    Definition Classes
    Matcher
  5. def ^^[S](f: (S) ⇒ T): Matcher[S]

    Permalink
    Definition Classes
    Matcher
  6. def and[S <: T](m: ⇒ Matcher[S]): Matcher[S]

    Permalink
    Definition Classes
    Matcher
  7. def apply[S <: T](expectable: Expectable[S]): MatchResult[S]

    Permalink
    Definition Classes
    XsltResultMatcher → Matcher
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def booleanToSimpleResult(b: Boolean): Result

    Permalink
    Definition Classes
    Results
  10. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  11. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  12. def checkResultFailure(r: ⇒ Result): Result

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. implicit def combineBoolean(b: ⇒ Boolean): ResultLogicalCombinator

    Permalink
    Definition Classes
    ResultLogicalCombinators
  15. implicit def combineMatchResult[T](m: ⇒ MatchResult[T]): MatchResultCombinator[T]

    Permalink
    Definition Classes
    MatchResultLogicalCombinators
  16. implicit def combineResult(r: ⇒ Result): ResultLogicalCombinator

    Permalink
    Definition Classes
    ResultLogicalCombinators
  17. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  18. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  19. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  20. def createExpectable[T](t: ⇒ T): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  21. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  22. implicit def describe[T](t: ⇒ T): Descriptible[T]

    Permalink
    Definition Classes
    ExpectationsDescription
  23. implicit def describeExpectation(description: String): ExpectationDescription

    Permalink
    Definition Classes
    ExpectationsDescription
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. def eventually(retries: Int, sleep: Duration): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  27. def eventually: Matcher[T]

    Permalink
    Definition Classes
    Matcher
  28. def failure[S <: T](message: ⇒ String, value: Expectable[S]): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  29. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. def iff(b: Boolean): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def lazily: Matcher[() ⇒ T]

    Permalink
    Definition Classes
    Matcher
  35. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  36. def mute: Matcher[T]

    Permalink
    Definition Classes
    Matcher
  37. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. def negate(r: Result): Result

    Permalink
    Definition Classes
    Results
  39. def negateWhen(condition: Boolean)(r: Result): Result

    Permalink
    Definition Classes
    Results
  40. def not: Matcher[T]

    Permalink
    Definition Classes
    Matcher
  41. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. def or[S <: T](m: ⇒ Matcher[S]): Matcher[S]

    Permalink
    Definition Classes
    Matcher
  44. def orPending(message: (String) ⇒ String): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  45. def orPending(m: String): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  46. def orPending: Matcher[T]

    Permalink
    Definition Classes
    Matcher
  47. def orSkip(message: (String) ⇒ String): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  48. def orSkip(m: String): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  49. def orSkip: Matcher[T]

    Permalink
    Definition Classes
    Matcher
  50. def result[S <: T](other: org.specs2.matcher.MatchResultMessages.MatchResultMessage, value: Expectable[S]): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  51. def result[S <: T](other: Result, value: Expectable[S]): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  52. def result[S <: T](other: MatchResult[_], value: Expectable[S]): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  53. def result[S <: T](test: ⇒ Boolean, okMessage: ⇒ String, koMessage: ⇒ String, value: Expectable[S], details: Details): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  54. def result[S <: T](test: ⇒ Boolean, okMessage: ⇒ String, koMessage: ⇒ String, value: Expectable[S], expected: String, actual: String): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  55. def result[S <: T](triplet: ⇒ (Boolean, String, String), value: Expectable[S]): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  56. def result[S <: T](test: ⇒ Boolean, okMessage: ⇒ String, koMessage: ⇒ String, value: Expectable[S]): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  57. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  58. def setMessage(message: String): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  59. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  60. def success[S <: T](message: ⇒ String, value: Expectable[S]): MatchResult[S]

    Permalink
    Attributes
    protected
    Definition Classes
    Matcher
  61. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  62. def test: (T) ⇒ Boolean

    Permalink
    Definition Classes
    Matcher
  63. implicit def toResult(b: Boolean): Result

    Permalink
    Definition Classes
    Results
  64. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  65. implicit def typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[T]

    Permalink
    Definition Classes
    TypedEqual
  66. def unless(b: Boolean, m: String): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  67. def updateMessage(f: (String) ⇒ String): Matcher[T]

    Permalink
    Definition Classes
    Matcher
  68. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. def when(b: Boolean, m: String): Matcher[T]

    Permalink
    Definition Classes
    Matcher

Inherited from MatchResultCombinators

Inherited from ResultLogicalCombinators

Inherited from Results

Inherited from MatchResultLogicalCombinators

Inherited from Expectations

Inherited from ExpectationsDescription

Inherited from TypedEqual

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from Matcher[T]

Inherited from AnyRef

Inherited from Any

Ungrouped