Trait/Object

org.specs2.matcher

SequenceMatchersCreation

Related Docs: object SequenceMatchersCreation | package matcher

Permalink

trait SequenceMatchersCreation extends ExpectationsCreation with ResultImplicits

Self Type
SequenceMatchersCreation
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SequenceMatchersCreation
  2. ResultImplicits
  3. ExpectationsCreation
  4. MatchResultStackTrace
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class InvariantMatcherFunction[T] extends AnyRef

    Permalink
  2. implicit class resultFunction[T, R] extends AnyRef

    Permalink

    Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers

    Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers

    Definition Classes
    ResultImplicits

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def atLeastOnce[T](matcher: Matcher[T]): ContainWithResult[T]

    Permalink

    apply a matcher atLeast one value

  6. def atLeastOnce[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for at least one value

  7. def atLeastOnceWhen[T, R](values: Traversable[T])(f: PartialFunction[T, R])(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for at least one value, where the PartialFunction is defined

  8. def atMostOnce[T](matcher: Matcher[T]): ContainWithResult[T]

    Permalink

    apply a matcher atLeast one value

  9. def atMostOnce[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for at least one value

  10. def atMostOnceWhen[T, R](values: Traversable[T])(f: PartialFunction[T, R])(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for at least one value, where the PartialFunction is defined

  11. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

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

    Permalink

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

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

    Permalink

    this method can be overridden to throw exceptions when checking the result

    this method can be overridden to throw exceptions when checking the result

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  15. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description

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

    Permalink

    returns

    an Expectable

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

    Permalink

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ExpectationsCreation
  20. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def forall[T](matcher: Matcher[T]): ContainWithResult[T]

    Permalink

    apply a matcher for all values

  23. def forall[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for all the values, stopping after the first failure

  24. def forallWhen[T, U](values: Traversable[T])(f: PartialFunction[T, MatchResult[U]]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined

  25. def foreach[T](matcher: Matcher[T]): ContainWithResult[T]

    Permalink

    apply a matcher foreach value

  26. def foreach[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for all the values, and collect all failures

  27. def foreachWhen[T, R](values: Traversable[T])(f: PartialFunction[T, R])(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]

    Permalink

    verify the function f for all the values, and collect all failures, where the PartialFunction is defined

  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  29. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  35. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink

    returns

    the match result without any side-effects

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  36. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from ResultImplicits

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from AnyRef

Inherited from Any

Ungrouped