Trait

com.wix.accord.scalatest

CombinatorTestSpec

Related Doc: package scalatest

Permalink

trait CombinatorTestSpec extends AnyWordSpec with Matchers with ResultMatchers

An opinionated helper trait for combinator specifications. The recommended practice for defining new combinators is test-first via this specification:

class MyCombinatorSpec extends AnyWordSpec with ResultMatchers with Matchers {

  def isMonotonous[ T ]: Validator[ Iterable[ T ] ] = ???

  "isMonotonous" should {
    "successfully validate a monotonously-increasing sequence of numbers" in {
      isMonotonous( Seq( 1, 2, 3, 4, 5 ) ) should be( aSuccess )
    }

    "correctly render violations on a random sequence" in {
      isMonotonous( Seq( 5, 4, 3, 2, 1 ) ) should failWith( "is not monotonously-increasing" )
    }
  }

}
Linear Supertypes
ResultMatchers, Matchers, Explicitly, MatcherWords, Tolerance, AnyWordSpec, AnyWordSpecLike, Documenting, Alerting, Notifying, Informing, CanVerb, MustVerb, ShouldVerb, TestRegistration, TestSuite, Suite, Serializable, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CombinatorTestSpec
  2. ResultMatchers
  3. Matchers
  4. Explicitly
  5. MatcherWords
  6. Tolerance
  7. AnyWordSpec
  8. AnyWordSpecLike
  9. Documenting
  10. Alerting
  11. Notifying
  12. Informing
  13. CanVerb
  14. MustVerb
  15. ShouldVerb
  16. TestRegistration
  17. TestSuite
  18. Suite
  19. Serializable
  20. Serializable
  21. Assertions
  22. TripleEquals
  23. TripleEqualsSupport
  24. AnyRef
  25. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class AWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  2. final class AfterWord extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  3. final class AnWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  4. sealed class AnyShouldWrapper[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  5. class CheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  6. sealed class Collected extends Serializable

    Permalink
    Attributes
    protected
    Definition Classes
    Matchers
  7. class DecidedByEquality[A] extends Equality[A]

    Permalink
    Definition Classes
    Explicitly
  8. class DecidedWord extends AnyRef

    Permalink
    Definition Classes
    Explicitly
  9. class DeterminedByEquivalence[T] extends Equivalence[T]

    Permalink
    Definition Classes
    Explicitly
  10. class DeterminedWord extends AnyRef

    Permalink
    Definition Classes
    Explicitly
  11. class Equalizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  12. case class GroupViolationMatcher(value: Any = null, constraint: String = null, legacyDescription: String = null, path: Path = null, violations: Set[(ResultMatchers.this)#ViolationMatcher] = null) extends (ResultMatchers.this)#ViolationMatcher with Product with Serializable

    Permalink

    A matcher over com.wix.accord.GroupViolations.

    A matcher over com.wix.accord.GroupViolations. To generate a violation rule "pattern", call the constructor with the required predicates, for example:

    val firstNameNotEmpty = RuleViolationMatcher( path = Path( Generic( "firstName" ) ), constraint = "must not be empty" ) val lastNameNotEmpty = RuleViolationMatcher( path = Path( Generic( "lastName" ) ), constraint = "must not be empty" ) val orPredicateFailed = GroupViolationMatcher( constraint = "doesn't meet any of the requirements", violations = firstNameNotEmpty :: lastNameNotEmpty :: Nil ) val validationResult: Result = ... validationResult must failWith( orPredicateFailed )

    value

    A predicate specifying the object under validation.

    constraint

    A predicate specifying the constraint being violated.

    legacyDescription

    Retained for backwards compatibility; matches against the rendered description of the object being validated. See com.wix.accord.Descriptions.render for details of how descriptions are rendered into strings.

    path

    A predicate specifying the path of the object being validated.

    violations

    The set of violations that comprise the group being validated.

    Definition Classes
    ResultMatchers
    See also

    com.wix.accord.GroupViolation

  13. final class HavePropertyMatcherGenerator extends AnyRef

    Permalink
    Definition Classes
    Matchers
  14. final class ItWord extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  15. final class KeyWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  16. trait NoArgTest extends () ⇒ Outcome with TestData

    Permalink
    Attributes
    protected
    Definition Classes
    TestSuite
  17. final class PlusOrMinusWrapper[T] extends AnyRef

    Permalink
    Definition Classes
    Tolerance
  18. final class RegexWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  19. final class RegexWrapper extends AnyRef

    Permalink
    Definition Classes
    Matchers
  20. case class ResultMatcher(expectedViolations: Set[(ResultMatchers.this)#ViolationMatcher]) extends Matcher[Result] with Product with Serializable

    Permalink

    A matcher over validation com.wix.accord.Results.

    A matcher over validation com.wix.accord.Results. Takes a set of expected violations and return a suitable match result in case of failure.

    expectedViolations

    The set of expected violations for this matcher.

    Definition Classes
    ResultMatchers
  21. class ResultOfBeWordForAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  22. sealed class ResultOfBeWordForCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  23. final class ResultOfBeWordForCollectedArray[T] extends ResultOfBeWordForCollectedAny[Array[T]]

    Permalink
    Definition Classes
    Matchers
  24. final class ResultOfCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  25. final class ResultOfContainWordForCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  26. final class ResultOfEndWithWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  27. final class ResultOfEndWithWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  28. final class ResultOfFullyMatchWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  29. final class ResultOfFullyMatchWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  30. final class ResultOfHaveWordForCollectedExtent[A] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  31. final class ResultOfHaveWordForExtent[A] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  32. final class ResultOfIncludeWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  33. final class ResultOfIncludeWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  34. final class ResultOfNotWordForCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  35. final class ResultOfStartWithWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  36. final class ResultOfStartWithWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  37. final class ResultOfTaggedAsInvocationOnString extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  38. case class RuleViolationMatcher(value: Any = null, constraint: String = null, legacyDescription: String = null, path: Path = null) extends (ResultMatchers.this)#ViolationMatcher with Product with Serializable

    Permalink

    A matcher over com.wix.accord.RuleViolations.

    A matcher over com.wix.accord.RuleViolations. To generate a violation rule "pattern", call the constructor with the required predicates, for example:

    val firstNameNotEmpty = RuleViolationMatcher( description = Path( Generic( "firstName" ) ), constraint = "must not be empty" ) val validationResult: Result = ... validationResult must failWith( firstNameNotEmpty )

    value

    A predicate specifying the object under validation.

    constraint

    A predicate specifying the constraint being violated.

    legacyDescription

    Retained for backwards compatibility; matches against the rendered description of the object being validated. See com.wix.accord.Descriptions.render for details of how descriptions are rendered into strings.

    path

    A predicate specifying the path to the object being validated.

    Definition Classes
    ResultMatchers
    See also

    com.wix.accord.RuleViolation

  39. trait StringCanWrapperForVerb extends AnyRef

    Permalink
    Definition Classes
    CanVerb
  40. trait StringMustWrapperForVerb extends AnyRef

    Permalink
    Definition Classes
    MustVerb
  41. final class StringShouldWrapper extends AnyShouldWrapper[String] with org.scalatest.matchers.should.Matchers.StringShouldWrapperForVerb

    Permalink
    Definition Classes
    Matchers
  42. trait StringShouldWrapperForVerb extends AnyRef

    Permalink
    Definition Classes
    ShouldVerb
  43. class TheAfterWord extends AnyRef

    Permalink
    Definition Classes
    Explicitly
  44. final class TheSameInstanceAsPhrase extends AnyRef

    Permalink
    Definition Classes
    Matchers
  45. final class TheyWord extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  46. final class ValueWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  47. sealed trait ViolationMatcher extends Matcher[Violation]

    Permalink

    Abstracts over validators for the various violation type.

    Abstracts over validators for the various violation type.

    Definition Classes
    ResultMatchers
  48. final class WordSpecStringWrapper extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  5. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  6. def <[T](right: T)(implicit arg0: Ordering[T]): ResultOfLessThanComparison[T]

    Permalink
    Definition Classes
    Matchers
  7. def <=[T](right: T)(implicit arg0: Ordering[T]): ResultOfLessThanOrEqualToComparison[T]

    Permalink
    Definition Classes
    Matchers
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  10. def ===(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  11. def ===[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  12. def >[T](right: T)(implicit arg0: Ordering[T]): ResultOfGreaterThanComparison[T]

    Permalink
    Definition Classes
    Matchers
  13. def >=[T](right: T)(implicit arg0: Ordering[T]): ResultOfGreaterThanOrEqualToComparison[T]

    Permalink
    Definition Classes
    Matchers
  14. def a[T](implicit arg0: ClassTag[T]): ResultOfATypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  15. val a: AWord

    Permalink
    Definition Classes
    Matchers
  16. val aFailure: BeMatcher[Result]

    Permalink

    Enables syntax like someResult should be( aFailure )

    Enables syntax like someResult should be( aFailure )

    Definition Classes
    ResultMatchers
  17. val aSuccess: BeMatcher[Result]

    Permalink

    Enables syntax like someResult should be( aSuccess )

    Enables syntax like someResult should be( aSuccess )

    Definition Classes
    ResultMatchers
  18. val after: TheAfterWord

    Permalink
    Definition Classes
    Explicitly
  19. def afterWord(text: String): AfterWord

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  20. def alert: Alerter

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike → Alerting
  21. def all(xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  22. def all[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  23. def all[K, V, MAP[k, v] <: GenMap[k, v]](xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    Permalink
    Definition Classes
    Matchers
  24. def all[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  25. def allElementsOf[R](elements: GenTraversable[R]): ResultOfAllElementsOfApplication

    Permalink
    Definition Classes
    Matchers
  26. def allOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfAllOfApplication

    Permalink
    Definition Classes
    Matchers
  27. def an[T](implicit arg0: ClassTag[T]): ResultOfAnTypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  28. val an: AnWord

    Permalink
    Definition Classes
    Matchers
  29. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  30. macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  31. macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  32. macro def assertCompiles(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  33. macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  34. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  35. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  36. def assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  37. macro def assertTypeError(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  38. macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  39. macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  40. def atLeast(num: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  41. def atLeast[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  42. def atLeast[K, V, MAP[k, v] <: GenMap[k, v]](num: Int, xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    Permalink
    Definition Classes
    Matchers
  43. def atLeast[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  44. def atLeastOneElementOf(elements: GenTraversable[Any]): ResultOfAtLeastOneElementOfApplication

    Permalink
    Definition Classes
    Matchers
  45. def atLeastOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfAtLeastOneOfApplication

    Permalink
    Definition Classes
    Matchers
  46. def atMost(num: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  47. def atMost[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  48. def atMost[K, V, MAP[k, v] <: GenMap[k, v]](num: Int, xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    Permalink
    Definition Classes
    Matchers
  49. def atMost[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  50. def atMostOneElementOf[R](elements: GenTraversable[R]): ResultOfAtMostOneElementOfApplication

    Permalink
    Definition Classes
    Matchers
  51. def atMostOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfAtMostOneOfApplication

    Permalink
    Definition Classes
    Matchers
  52. val be: BeWord

    Permalink
    Definition Classes
    MatcherWords
  53. val behave: BehaveWord

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  54. def between(from: Int, upTo: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  55. def between[K, V, JMAP[k, v] <: Map[k, v]](from: Int, upTo: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  56. def between[E, C[_]](from: Int, upTo: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  57. def cancel(cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  58. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  59. def cancel(message: String)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  60. def cancel()(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  61. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. val compile: CompileWord

    Permalink
    Definition Classes
    MatcherWords
  63. val contain: ContainWord

    Permalink
    Definition Classes
    MatcherWords
  64. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  65. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  66. implicit def convertNumericToPlusOrMinusWrapper[T](pivot: T)(implicit arg0: Numeric[T]): PlusOrMinusWrapper[T]

    Permalink
    Definition Classes
    Tolerance
  67. implicit def convertSymbolToHavePropertyMatcherGenerator(symbol: Symbol)(implicit prettifier: Prettifier, pos: Position): HavePropertyMatcherGenerator

    Permalink
    Definition Classes
    Matchers
  68. implicit def convertToAnyShouldWrapper[T](o: T)(implicit pos: Position, prettifier: Prettifier): AnyShouldWrapper[T]

    Permalink
    Definition Classes
    Matchers
  69. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  70. implicit def convertToEqualizer[T](left: T): Equalizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  71. implicit def convertToRegexWrapper(o: Regex): RegexWrapper

    Permalink
    Definition Classes
    Matchers
  72. implicit def convertToStringCanWrapper(o: String)(implicit position: Position): StringCanWrapperForVerb

    Permalink
    Definition Classes
    CanVerb
  73. implicit def convertToStringMustWrapperForVerb(o: String)(implicit position: Position): StringMustWrapperForVerb

    Permalink
    Definition Classes
    MustVerb
  74. implicit def convertToStringShouldWrapper(o: String)(implicit pos: Position, prettifier: Prettifier): StringShouldWrapper

    Permalink
    Definition Classes
    Matchers
  75. implicit def convertToStringShouldWrapperForVerb(o: String)(implicit position: Position): StringShouldWrapperForVerb

    Permalink
    Definition Classes
    ShouldVerb
  76. implicit def convertToWordSpecStringWrapper(s: String): WordSpecStringWrapper

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  77. val decided: DecidedWord

    Permalink
    Definition Classes
    Explicitly
  78. def defaultEquality[A]: Equality[A]

    Permalink
    Definition Classes
    TripleEqualsSupport
  79. val defined: DefinedWord

    Permalink
    Definition Classes
    MatcherWords
  80. def definedAt[T](right: T): ResultOfDefinedAt[T]

    Permalink
    Definition Classes
    Matchers
  81. val determined: DeterminedWord

    Permalink
    Definition Classes
    Explicitly
  82. implicit def elevateStringToRuleViolationMatcher(s: String): RuleViolationMatcher

    Permalink
  83. val empty: EmptyWord

    Permalink
    Definition Classes
    MatcherWords
  84. val endWith: EndWithWord

    Permalink
    Definition Classes
    MatcherWords
  85. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  86. def equal(o: Null): Matcher[AnyRef]

    Permalink
    Definition Classes
    Matchers
  87. def equal[T](spread: Spread[T]): Matcher[T]

    Permalink
    Definition Classes
    Matchers
  88. def equal(right: Any): MatcherFactory1[Any, Equality]

    Permalink
    Definition Classes
    MatcherWords
  89. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  90. def every(xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  91. def every[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  92. def every[K, V, MAP[k, v] <: Map[k, v]](xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    Permalink
    Definition Classes
    Matchers
  93. def every[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  94. def exactly(num: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  95. def exactly[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  96. def exactly[K, V, MAP[k, v] <: GenMap[k, v]](num: Int, xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    Permalink
    Definition Classes
    Matchers
  97. def exactly[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  98. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit

    Permalink
    Definition Classes
    Suite
  99. val exist: ExistWord

    Permalink
    Definition Classes
    MatcherWords
  100. def expectedTestCount(filter: Filter): Int

    Permalink
    Definition Classes
    Suite
  101. def fail(cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  102. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  103. def fail(message: String)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  104. def fail()(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  105. def failWith(expectedViolations: ViolationMatcher*): Matcher[Result]

    Permalink

    A convenience method for matching failures.

    A convenience method for matching failures. Enables syntax like:

    val result: Result = ... result should failWith( Path( Generic( "firstName" ) ) -> "must not be empty", Path( Generic( "lastName" ) ) -> "must not be empty" )

    expectedViolations

    The set of expected violations.

    returns

    A matcher over validation com.wix.accord.Results.

    Definition Classes
    ResultMatchers
  106. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  107. val fullyMatch: FullyMatchWord

    Permalink
    Definition Classes
    MatcherWords
  108. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  109. def group[T](path: Path, constraint: String, expectedViolations: T*)(implicit ev: (T) ⇒ RuleViolationMatcher): GroupViolationMatcher

    Permalink

    A convenience method for matching violation groups.

    A convenience method for matching violation groups. Enables syntax like:

    val result: Result = ... result should failWith( group( Path( Generic( "teacher" ) ), "is invalid", // The group context Path( Generic( "firstName ) ) -> "must not be empty" ) ) // The rule violations

    path

    A predicate specifying the path to the object being validated.

    constraint

    A textual description of the constraint being violated (for example, "must not be empty").

    expectedViolations

    The set of expected violations that comprise the group.

    returns

    A matcher over com.wix.accord.GroupViolations.

    Definition Classes
    ResultMatchers
  110. def group(path: Path, constraint: String, expectedViolations: (Path, String)*): GroupViolationMatcher

    Permalink

    A convenience method for matching violation groups.

    A convenience method for matching violation groups. Enables syntax like:

    val result: Result = ... result should failWith( group( Path( Generic( "teacher" ) ), "is invalid", // The group context Path( Generic( "firstName ) ) -> "must not be empty" ) ) // The rule violations

    path

    A predicate specifying the path to the object being validated.

    constraint

    A textual description of the constraint being violated (for example, "must not be empty").

    expectedViolations

    The set of expected violations that comprise the group.

    returns

    A matcher over com.wix.accord.GroupViolations.

    Definition Classes
    ResultMatchers
  111. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  112. val have: HaveWord

    Permalink
    Definition Classes
    MatcherWords
  113. def inOrder(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfInOrderApplication

    Permalink
    Definition Classes
    Matchers
  114. def inOrderElementsOf[R](elements: GenTraversable[R]): ResultOfInOrderElementsOfApplication

    Permalink
    Definition Classes
    Matchers
  115. def inOrderOnly[T](firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfInOrderOnlyApplication

    Permalink
    Definition Classes
    Matchers
  116. val include: IncludeWord

    Permalink
    Definition Classes
    MatcherWords
  117. def info: Informer

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike → Informing
  118. def intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): T

    Permalink
    Definition Classes
    Assertions
  119. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  120. val it: ItWord

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  121. val key: KeyWord

    Permalink
    Definition Classes
    Matchers
  122. val length: LengthWord

    Permalink
    Definition Classes
    MatcherWords
  123. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  124. def markup: Documenter

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike → Documenting
  125. val matchPattern: MatchPatternWord

    Permalink
    Definition Classes
    MatcherWords
  126. def message(expectedMessage: String): ResultOfMessageWordApplication

    Permalink
    Definition Classes
    Matchers
  127. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  128. def nestedSuites: IndexedSeq[Suite]

    Permalink
    Definition Classes
    Suite
  129. def no(xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  130. def no[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  131. def no[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  132. def noElementsOf(elements: GenTraversable[Any]): ResultOfNoElementsOfApplication

    Permalink
    Definition Classes
    Matchers
  133. def noException(implicit pos: Position): NoExceptionWord

    Permalink
    Definition Classes
    MatcherWords
  134. def noneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfNoneOfApplication

    Permalink
    Definition Classes
    Matchers
  135. val not: NotWord

    Permalink
    Definition Classes
    MatcherWords
  136. def note: Notifier

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike → Notifying
  137. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  139. def of[T](implicit ev: ClassTag[T]): ResultOfOfTypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  140. def oneElementOf(elements: GenTraversable[Any]): ResultOfOneElementOfApplication

    Permalink
    Definition Classes
    Matchers
  141. def oneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfOneOfApplication

    Permalink
    Definition Classes
    Matchers
  142. def only(xs: Any*)(implicit pos: Position): ResultOfOnlyApplication

    Permalink
    Definition Classes
    Matchers
  143. implicit def path2RuleViolationMatcher(path: Path): RuleViolationMatcher

    Permalink

    A convenience implicit to simplify test code.

    A convenience implicit to simplify test code. Enables syntax like:

    val rule: RuleViolationMatcher = Path( Generic( "firstName" ) ) // ... which is equivalent to val rule = RuleViolationMatcher( path = Path( Generic( "firstName" ) ) )

    Definition Classes
    ResultMatchers
  144. implicit def pathAndConstraintTuple2RuleMatcher(v: (Path, String)): RuleViolationMatcher

    Permalink

    A convenience implicit to simplify test code.

    A convenience implicit to simplify test code. Enables syntax like:

    val rule: RuleViolationMatcher = Path( Generic( "firstName" ) ) -> "must not be empty" // ... which is equivalent to val rule = RuleViolationMatcher( path = Path( Generic( "firstName" ) ), constraint = "must not be empty" )

    Definition Classes
    ResultMatchers
  145. def pending: Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  146. def pendingUntilFixed(f: ⇒ Unit)(implicit pos: Position): Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  147. val readable: ReadableWord

    Permalink
    Definition Classes
    MatcherWords
  148. val regex: RegexWord

    Permalink
    Definition Classes
    Matchers
  149. final def registerIgnoredTest(testText: String, testTags: Tag*)(testFun: ⇒ Any)(implicit pos: Position): Unit

    Permalink
    Definition Classes
    AnyWordSpecLike → TestRegistration
  150. final def registerTest(testText: String, testTags: Tag*)(testFun: ⇒ Any)(implicit pos: Position): Unit

    Permalink
    Definition Classes
    AnyWordSpecLike → TestRegistration
  151. def rerunner: Option[String]

    Permalink
    Definition Classes
    Suite
  152. def run(testName: Option[String], args: Args): Status

    Permalink
    Definition Classes
    AnyWordSpecLike → Suite
  153. def runNestedSuites(args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    Suite
  154. def runTest(testName: String, args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike → TestSuite → Suite
  155. def runTests(testName: Option[String], args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike → Suite
  156. val size: SizeWord

    Permalink
    Definition Classes
    MatcherWords
  157. val sorted: SortedWord

    Permalink
    Definition Classes
    MatcherWords
  158. val startWith: StartWithWord

    Permalink
    Definition Classes
    MatcherWords
  159. implicit val subjectRegistrationFunction: StringVerbBlockRegistration

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  160. implicit val subjectWithAfterWordRegistrationFunction: SubjectWithAfterWordRegistration

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  161. final val succeed: Assertion

    Permalink
    Definition Classes
    Assertions
  162. def suiteId: String

    Permalink
    Definition Classes
    Suite
  163. def suiteName: String

    Permalink
    Definition Classes
    Suite
  164. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  165. def tags: Map[String, Set[String]]

    Permalink
    Definition Classes
    AnyWordSpecLike → Suite
  166. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Permalink
    Definition Classes
    AnyWordSpecLike → Suite
  167. def testNames: Set[String]

    Permalink
    Definition Classes
    AnyWordSpecLike → Suite
  168. def the[T](implicit arg0: ClassTag[T], pos: Position): ResultOfTheTypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  169. def theSameElementsAs(xs: GenTraversable[_]): ResultOfTheSameElementsAsApplication

    Permalink
    Definition Classes
    Matchers
  170. def theSameElementsInOrderAs(xs: GenTraversable[_]): ResultOfTheSameElementsInOrderAsApplication

    Permalink
    Definition Classes
    Matchers
  171. val theSameInstanceAs: TheSameInstanceAsPhrase

    Permalink
    Definition Classes
    Matchers
  172. val they: TheyWord

    Permalink
    Attributes
    protected
    Definition Classes
    AnyWordSpecLike
  173. def thrownBy(fun: ⇒ Any): ResultOfThrownByApplication

    Permalink
    Definition Classes
    Matchers
  174. def toString(): String

    Permalink
    Definition Classes
    AnyWordSpec → AnyRef → Any
  175. val typeCheck: TypeCheckWord

    Permalink
    Definition Classes
    MatcherWords
  176. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  177. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  178. val value: ValueWord

    Permalink
    Definition Classes
    Matchers
  179. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  182. def withClue[T](clue: Any)(fun: ⇒ T): T

    Permalink
    Definition Classes
    Assertions
  183. def withFixture(test: NoArgTest): Outcome

    Permalink
    Attributes
    protected
    Definition Classes
    TestSuite
  184. val writable: WritableWord

    Permalink
    Definition Classes
    MatcherWords

Deprecated Value Members

  1. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The conversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  2. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToAToBConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  3. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToBToAConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  4. implicit def description2RuleViolationMatcher(desc: Description): RuleViolationMatcher

    Permalink

    A convenience implicit to simplify test code.

    A convenience implicit to simplify test code. Enables syntax like:

    val rule: RuleViolationMatcher = Generic( "firstName" ) // ... which is equivalent to val rule = RuleViolationMatcher( path = Path( Generic( "firstName" ) ) )

    Definition Classes
    ResultMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.7)

  5. implicit def descriptionAndConstraintTuple2RuleMatcher(v: (Description, String)): RuleViolationMatcher

    Permalink

    A convenience implicit to simplify test code.

    A convenience implicit to simplify test code. Enables syntax like:

    val rule: RuleViolationMatcher = Generic( "firstName" ) -> "must not be empty" // ... which is equivalent to val rule = RuleViolationMatcher( path = Path( Generic( "firstName" ) ), constraint = "must not be empty" )

    Definition Classes
    ResultMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.7)

  6. def group[T](legacyDescription: String, constraint: String, expectedViolations: T*)(implicit ev: (T) ⇒ RuleViolationMatcher): GroupViolationMatcher

    Permalink

    A convenience method for matching violation groups.

    A convenience method for matching violation groups. Enables syntax like:

    val result: Result = ... result should failWith( group( "teacher", "is invalid", // The group context "firstName" -> "must not be empty" ) ) // The rule violations

    legacyDescription

    Retained for backwards compatibility; matches against the rendered description of the object being validated. See com.wix.accord.Descriptions.render for details of how descriptions are rendered into strings.

    constraint

    A textual description of the constraint being violated (for example, "must not be empty").

    expectedViolations

    The set of expected violations that comprise the group.

    returns

    A matcher over com.wix.accord.GroupViolations.

    Definition Classes
    ResultMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6) Intended for backwards compatibility. It is recommended to match against paths instead.

  7. def group(legacyDescription: String, constraint: String, expectedViolations: (String, String)*): GroupViolationMatcher

    Permalink

    A convenience method for matching violation groups.

    A convenience method for matching violation groups. Enables syntax like:

    val result: Result = ... result should failWith( group( "teacher", "is invalid", // The group context "firstName" -> "must not be empty" ) ) // The rule violations

    legacyDescription

    Retained for backwards compatibility; matches against the rendered description of the object being validated. See com.wix.accord.Descriptions.render for details of how descriptions are rendered into strings.

    constraint

    A textual description of the constraint being violated (for example, "must not be empty").

    expectedViolations

    The set of expected violations that comprise the group.

    returns

    A matcher over com.wix.accord.GroupViolations.

    Definition Classes
    ResultMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6) Intended for backwards compatibility. It is recommended to match against paths instead.

  8. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The lowPriorityConversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  9. implicit def stringTuple2RuleMatcher(v: (String, String)): RuleViolationMatcher

    Permalink

    A convenience implicit to simplify test code.

    A convenience implicit to simplify test code. Enables syntax like:

    val rule: RuleViolationMatcher = "firstName" -> "must not be empty" // ... which is equivalent to val rule = RuleViolationMatcher( legacyDescription = "firstName", constraint = "must not be empty" )

    Definition Classes
    ResultMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6)

  10. final val styleName: String

    Permalink
    Definition Classes
    AnyWordSpecLike → Suite
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.

Inherited from ResultMatchers

Inherited from Matchers

Inherited from Explicitly

Inherited from MatcherWords

Inherited from Tolerance

Inherited from AnyWordSpec

Inherited from AnyWordSpecLike

Inherited from Documenting

Inherited from Alerting

Inherited from Notifying

Inherited from Informing

Inherited from CanVerb

Inherited from MustVerb

Inherited from ShouldVerb

Inherited from TestRegistration

Inherited from TestSuite

Inherited from Suite

Inherited from Serializable

Inherited from Serializable

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped