org.specs2.matcher

TraversableMatchers

object TraversableMatchers extends TraversableMatchers

Linear Supertypes
TraversableMatchers, matcher.TraversableBeHaveMatchers, TraversableBaseMatchers, LazyParameters, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TraversableMatchers
  2. TraversableMatchers
  3. TraversableBeHaveMatchers
  4. TraversableBaseMatchers
  5. LazyParameters
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class HasSize[T] extends AnyRef

    Definition Classes
    TraversableBeHaveMatchers
  2. class OrderedSeqMatchResult[T] extends AnyRef

    Definition Classes
    TraversableBeHaveMatchers
  3. class TraversableBeHaveMatchers[T] extends AnyRef

    Definition Classes
    TraversableBeHaveMatchers
  4. trait TraversableMatcher[T] extends Matcher[GenTraversableOnce[T]]

    Definition Classes
    TraversableBaseMatchers

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def allElementsLike[T, S](like: PartialFunction[T, MatchResult[S]]): HaveAllElementsLike[T, S]

    Definition Classes
    TraversableBaseMatchers
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def beSorted[T](implicit arg0: Ordering[T]): OrderingMatcher[T]

    returns

    a matcher checking if the elements are ordered

    Definition Classes
    TraversableBaseMatchers
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def contain[T](t: LazyParameter[T]*): ContainMatcher[T]

    match if traversable contains (t1, t2)

    match if traversable contains (t1, t2)

    Definition Classes
    TraversableBaseMatchers
  11. def contain[T](t: ⇒ T): ContainMatcher[T]

    match if an traversable contains (t).

    match if an traversable contains (t). This definition looks redundant with the one below but it is necessary to avoid the implicit argThat method from Mockito to infer an improper matcher

    Definition Classes
    TraversableBaseMatchers
    See also

    the HtmlPrinterSpec failing with a NPE if that method is missing

  12. def containAllOf[T](seq: Seq[T]): ContainMatcher[T]

    match if traversable contains (seq2).

    match if traversable contains (seq2). n is a dummy paramter to allow overloading

    Definition Classes
    TraversableBaseMatchers
  13. def containAnyOf[T](seq: Seq[T]): ContainAnyOfMatcher[T]

    match if traversable contains one of (t1, t2)

    match if traversable contains one of (t1, t2)

    Definition Classes
    TraversableBaseMatchers
  14. def containMatch[T](t: ⇒ String): ContainLikeMatcher[T]

    match if traversable contains (x matches .

    match if traversable contains (x matches .*+t+.*)

    Definition Classes
    TraversableBaseMatchers
  15. def containPattern[T](t: ⇒ String): ContainLikeMatcher[T]

    match if traversable contains (x matches p)

    match if traversable contains (x matches p)

    Definition Classes
    TraversableBaseMatchers
  16. def containTheSameElementsAs[T](seq: Seq[T]): Matcher[Traversable[T]]

    does a containAll comparison in both ways

    does a containAll comparison in both ways

    Definition Classes
    TraversableBaseMatchers
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  22. def have[T](function: (T) ⇒ Boolean): Matcher[GenTraversableOnce[T]]

    Matches if there is one element in the traversable verifying the function parameter: (traversable.exists(function(_))

    Matches if there is one element in the traversable verifying the function parameter: (traversable.exists(function(_))

    Definition Classes
    TraversableBaseMatchers
  23. def haveAllElementsLike[T, S](like: PartialFunction[T, MatchResult[S]]): HaveAllElementsLike[T, S]

    Matches if all the elements are matching a "like" function

    Matches if all the elements are matching a "like" function

    Definition Classes
    TraversableBaseMatchers
  24. def haveLength[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  25. def haveOneElementLike[T, S](like: PartialFunction[T, MatchResult[S]]): HaveOneElementLike[T, S]

    Matches if there is at least one matching a "like" function

    Matches if there is at least one matching a "like" function

    Definition Classes
    TraversableBaseMatchers
  26. def haveSize[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    match if there is a way to size T

    match if there is a way to size T

    Definition Classes
    TraversableBaseMatchers
  27. def haveTheSameElementsAs[T](l: ⇒ Traversable[T], equality: (T, T) ⇒ Boolean = (_:T) == (_:T)): HaveTheSameElementsAs[T]

    Matches if there l contains the same elements as the Traversable traversable.

    Matches if there l contains the same elements as the Traversable traversable.
    This verification does not consider the order of the elements but checks the traversables recursively

    Definition Classes
    TraversableBaseMatchers
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. implicit def javaCollectionIsSized[T <: Collection[_]]: Sized[T]

    any java collection has a size

    any java collection has a size

    Definition Classes
    TraversableBaseMatchers
  30. implicit def lazyfy[T](value: ⇒ T): LazyParameter[T]

    transform a value to a zero-arg function returning that value

    transform a value to a zero-arg function returning that value

    Definition Classes
    LazyParameters
  31. def length[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  32. final def ne(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def oneElementLike[T, S](like: PartialFunction[T, MatchResult[S]]): HaveOneElementLike[T, S]

    Definition Classes
    TraversableBaseMatchers
  36. implicit def orderedSeqMatchResult[T](result: MatchResult[Seq[T]])(implicit arg0: Ordering[T]): OrderedSeqMatchResult[T]

    Definition Classes
    TraversableBeHaveMatchers
  37. implicit def scalaArrayIsSized[T]: Sized[Array[T]]

    any scala array has a size

    any scala array has a size

    Definition Classes
    TraversableBaseMatchers
  38. implicit def scalaTraversableIsSized[I <: GenTraversable[_]]: Sized[I]

    any scala collection has a size

    any scala collection has a size

    Definition Classes
    TraversableBaseMatchers
  39. def size[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  40. implicit def sized[T](s: MatchResult[T])(implicit arg0: Sized[T]): HasSize[T]

    Definition Classes
    TraversableBeHaveMatchers
  41. def sorted[T](implicit arg0: Ordering[T]): OrderingMatcher[T]

    alias for beSorted

    alias for beSorted

    Definition Classes
    TraversableBaseMatchers
  42. implicit def stringIsSized: Sized[String]

    a regular string has a size, without having to be converted to an Traversable

    a regular string has a size, without having to be converted to an Traversable

    Definition Classes
    TraversableBaseMatchers
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def toString(): String

    Definition Classes
    AnyRef → Any
  45. implicit def traversable[T](s: MatchResult[GenTraversableOnce[T]]): TraversableBeHaveMatchers[T]

    Definition Classes
    TraversableBeHaveMatchers
  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from TraversableMatchers

Inherited from matcher.TraversableBeHaveMatchers

Inherited from TraversableBaseMatchers

Inherited from LazyParameters

Inherited from AnyRef

Inherited from Any

Ungrouped