Matchers

org.specs2.matcher.Matchers
See theMatchers companion object

Trait aggregating the most common specs2 matchers

Attributes

Companion
object
Graph
Supertypes
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Known subtypes
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all

Members list

Type members

Inherited classlikes

implicit class AdaptFunction[T, S](f: T => S)

this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:

this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:

  • def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)

Attributes

Inherited from:
MatchersCreation
Supertypes
class Object
trait Matchable
class Any
class AnyBeHaveMatchers[T](result: MatchResult[T])

Attributes

Inherited from:
AnyBeHaveMatchers
Supertypes
class Object
trait Matchable
class Any
class AnyMatcherResult(result: MatchResult[AnyRef])

Attributes

Inherited from:
AnyBeHaveMatchers
Supertypes
class Object
trait Matchable
class Any
class AnyRefMatcherResult[T <: AnyRef](result: MatchResult[T])

Attributes

Inherited from:
AnyBeHaveMatchers
Supertypes
class Object
trait Matchable
class Any
class AnyWithEmptyMatchers[T](result: MatchResult[T])(implicit evidence$17: Sized[T])

Attributes

Inherited from:
AnyBeHaveMatchers
Supertypes
class Object
trait Matchable
class Any
class BeLikeResultMatcher[T](result: MatchResult[T])

Attributes

Inherited from:
AnyBeHaveMatchers
Supertypes
class Object
trait Matchable
class Any
class ClassMatcherResult[T](result: MatchResult[Class[_]])(implicit evidence$15: ClassTag[T])

Attributes

Inherited from:
AnyBeHaveMatchers
Supertypes
class Object
trait Matchable
class Any
case class ContainSeqMatcherFunction[T](seq: Seq[T])

Attributes

Inherited from:
MatcherZipOperators
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class Descriptible[T](value: => T)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
implicit class EitherResultMatcher[L, R](result: MatchResult[Either[L, R]])(implicit evidence$3: Diffable[L], evidence$4: Diffable[R])

Attributes

Inherited from:
EitherBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class ExceptionClassMatcher(klass: Class[_]) extends Matcher[Any]

Exception matcher checking the type of a thrown exception.

Exception matcher checking the type of a thrown exception.

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
Supertypes
trait Matcher[Any]
class Object
trait Matchable
class Any
class ExceptionMatcher[E <: Throwable](exception: E) extends Matcher[Any]

This matchers matches exception instances.

This matchers matches exception instances.

Attributes

See also

throwA

Inherited from:
ExceptionBaseMatchers (hidden)
Supertypes
trait Matcher[Any]
class Object
trait Matchable
class Any
implicit class ExceptionMatcherResult[T](result: MatchResult[T])

Attributes

Inherited from:
ExceptionBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class ExpectationDescription(description: String)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
class FindMatcher(t: => String) extends Matcher[String]

Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups

Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups

Attributes

Inherited from:
StringBaseMatchers (hidden)
Supertypes
trait Matcher[String]
class Object
trait Matchable
class Any
Known subtypes
class FindMatcherPattern(p: Pattern) extends FindMatcher

Matcher to find if the pattern p is found inside b.

Matcher to find if the pattern p is found inside b.

Attributes

Inherited from:
StringBaseMatchers (hidden)
Supertypes
class FindMatcher
trait Matcher[String]
class Object
trait Matchable
class Any
Known subtypes
class FindMatcherPatternWithGroups(p: Pattern, groups: String*) extends FindMatcherWithGroups

Matcher to find if the pattern p is found inside b.

Matcher to find if the pattern p is found inside b.

Attributes

Inherited from:
StringBaseMatchers (hidden)
Supertypes
trait Matcher[String]
class Object
trait Matchable
class Any
class FindMatcherRegex(r: Regex) extends FindMatcherPattern

Matcher to find if the Regex r is found inside b.

Matcher to find if the Regex r is found inside b.

Attributes

Inherited from:
StringBaseMatchers (hidden)
Supertypes
class FindMatcher
trait Matcher[String]
class Object
trait Matchable
class Any
Show all
class FindMatcherWithGroups(t: => String, groups: String*) extends Matcher[String]

Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected

Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected

Attributes

Inherited from:
StringBaseMatchers (hidden)
Supertypes
trait Matcher[String]
class Object
trait Matchable
class Any
Known subtypes
implicit class FutureMatchable[T](m: Matcher[T])(implicit ee: ExecutionEnv)

add an await method to any matcher Matcher[T] so that it can be transformed into a Matcher[Future[T]]

add an await method to any matcher Matcher[T] so that it can be transformed into a Matcher[Future[T]]

Attributes

Inherited from:
FutureMatchers
Supertypes
class Object
trait Matchable
class Any
class HasSize[T](s: MatchResult[T])(implicit evidence$16: Sized[T])

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any
implicit class InvariantMatcherFunction[T](f: T => Matcher[T])

Attributes

Inherited from:
SequenceMatchersCreation
Supertypes
class Object
trait Matchable
class Any
class MapKeyResultMatcher[K](result: MatchResult[Iterable[(K, Any)]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class MapResultMatcher[K, V](result: MatchResult[Iterable[(K, V)]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class MapValueResultMatcher[V](result: MatchResult[Iterable[(Any, V)]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class MatchResultCombinator[T](mr: => MatchResult[T])

Attributes

Inherited from:
MatchResultLogicalCombinators
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class NeutralStringMatcher(result: NeutralMatcher[Any])

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class NotStringMatcher(result: NotMatcher[Any])

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class NumericResultMatcher[S](result: MatchResult[S])(implicit evidence$18: Numeric[S])

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class OptionResultMatcher[T](result: MatchResult[Option[T]])

Attributes

Inherited from:
OptionBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class OrderedResultMatcher[S](result: MatchResult[S])(implicit convert: S => Ordered[S])

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class OrderedSeqMatchResult[T](result: MatchResult[Seq[T]])(implicit evidence$18: Ordering[T])

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class PartialFunctionResultMatcher[K, V](result: MatchResult[PartialFunction[K, V]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class ResultLogicalCombinator(res: => Result)

Attributes

Inherited from:
ResultLogicalCombinators
Supertypes
class Object
trait Matchable
class Any
implicit class SignificantFiguresSyntax(value: Int)

implicit definition to create significant figures for the beCloseTo matcher

implicit definition to create significant figures for the beCloseTo matcher

Attributes

Inherited from:
NumericMatchers
Supertypes
class Object
trait Matchable
class Any
implicit class SignificantSyntax[N](target: N)(implicit evidence$6: Numeric[N])

implicit definition to create significant figures for the beCloseTo matcher

implicit definition to create significant figures for the beCloseTo matcher

Attributes

Inherited from:
NumericMatchers
Supertypes
class Object
trait Matchable
class Any
class StringResultMatcher(result: MatchResult[String])

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class TraversableBeHaveMatchers[T](s: MatchResult[Iterable[T]])

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class TryResultMatcher[T](result: MatchResult[Try[T]])

Attributes

Inherited from:
TryBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher2[T1, T2](t: (T1, T2))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher3[T1, T2, T3](t: (T1, T2, T3))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher4[T1, T2, T3, T4](t: (T1, T2, T3, T4))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher5[T1, T2, T3, T4, T5](t: (T1, T2, T3, T4, T5))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher6[T1, T2, T3, T4, T5, T6](t: (T1, T2, T3, T4, T5, T6))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher7[T1, T2, T3, T4, T5, T6, T7](t: (T1, T2, T3, T4, T5, T6, T7))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher8[T1, T2, T3, T4, T5, T6, T7, T8](t: (T1, T2, T3, T4, T5, T6, T7, T8))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
implicit class TupleMatcher9[T1, T2, T3, T4, T5, T6, T7, T8, T9](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9))

Attributes

Inherited from:
MatcherZipOperators
Supertypes
class Object
trait Matchable
class Any
class TypedEqualExpectation[T](t: => T)

Attributes

Inherited from:
TypedEqual
Supertypes
class Object
trait Matchable
class Any
implicit class futureAsResult[T](f: => Future[T])(implicit ee: ExecutionEnv, asResult: AsResult[T])

when a Future contains a result, it can be awaited to return this result

when a Future contains a result, it can be awaited to return this result

Attributes

Inherited from:
FutureMatchers
Supertypes
class Object
trait Matchable
class Any
implicit class resultFunction[T, R](f: T => R)(implicit evidence$2: AsResult[R])

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

Attributes

Inherited from:
ResultImplicits
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def !=/(s: String): Matcher[Any]

matches if a.toLowerCase.trim != b.toLowerCase.trim

matches if a.toLowerCase.trim != b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def !==[T : Diffable](t: => T): Matcher[T]

matches if a != b

matches if a != b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def <[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

alias for beLessThan

alias for beLessThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def <=[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

alias for beLessThanOrEqualTo

alias for beLessThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def ==/(s: String): AdaptableMatcher[Any]

matches if a.toLowerCase.trim = b.toLowerCase.trim

matches if a.toLowerCase.trim = b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def ===[T : Diffable](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def ==~[T : Diffable, S](s: => S)(implicit evidence$7: Diffable[T], convert: S => T): Matcher[T]

matches if a == b after an implicit conversion

matches if a == b after an implicit conversion

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def =~(r: Regex): BeMatchingRegex

alias for beMatching but matching just a fragment of the string

alias for beMatching but matching just a fragment of the string

Attributes

Inherited from:
StringBaseMatchers (hidden)
def =~(p: Pattern): BeMatchingPattern

alias for beMatching but matching just a fragment of the string

alias for beMatching but matching just a fragment of the string

Attributes

Inherited from:
StringBaseMatchers (hidden)
def =~(t: => String): BeMatching

alias for beMatching but matching just a fragment of the string

alias for beMatching but matching just a fragment of the string

Attributes

Inherited from:
StringBaseMatchers (hidden)
def >[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThan

alias for beGreaterThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def >=[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThanOrEqualTo

alias for beGreaterThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def aFailedTry[T](t: Throwable): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def aFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)
def allOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def anInstanceOf[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBeHaveMatchers
def anyOf[T](t: T*): Matcher[Any]

Attributes

Inherited from:
AnyBeHaveMatchers
def asNoneAs[T](other: => Option[T]): Matcher[Option[T]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def asNullAs[T](a: => T): Matcher[Any]

Attributes

Inherited from:
AnyBeHaveMatchers
def assignableFrom[T : ClassTag]: Matcher[Class[_]]

Attributes

Inherited from:
AnyBeHaveMatchers
def atLeast[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def atLeastOnce[T](matcher: Matcher[T]): ContainWithResult[T]

apply a matcher atLeast one value

apply a matcher atLeast one value

Attributes

Inherited from:
SequenceMatchersCreation
def atLeastOnce[T, R : AsResult](values: Iterable[T])(f: T => R): MatchResult[Iterable[T]]

verify the function f for at least one value

verify the function f for at least one value

Attributes

Inherited from:
SequenceMatchersCreation
def atLeastOnceWhen[T, R : AsResult](values: Iterable[T])(f: PartialFunction[T, R]): MatchResult[Iterable[T]]

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

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

Attributes

Inherited from:
SequenceMatchersCreation
def atMost[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def atMostOnce[T](matcher: Matcher[T]): ContainWithResult[T]

apply a matcher atLeast one value

apply a matcher atLeast one value

Attributes

Inherited from:
SequenceMatchersCreation
def atMostOnce[T, R : AsResult](values: Iterable[T])(f: T => R): MatchResult[Iterable[T]]

verify the function f for at least one value

verify the function f for at least one value

Attributes

Inherited from:
SequenceMatchersCreation
def atMostOnceWhen[T, R : AsResult](values: Iterable[T])(f: PartialFunction[T, R]): MatchResult[Iterable[T]]

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

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

Attributes

Inherited from:
SequenceMatchersCreation
def await[T](m: Matcher[T])(retries: Int, timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def await[T](m: Matcher[T])(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def awaitFor[T](m: Matcher[T])(timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def be: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def be[T <: AnyRef](t: => T): BeTheSameAs[T]

alias for beTheSameAs

alias for beTheSameAs

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beAFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beAnInstanceOf[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beAnyOf[T](t: T*): Matcher[T]

alias for beOneOf

alias for beOneOf

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beAsNoneAs[T](other: => Option[T]): Matcher[Option[T]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beAsNullAs[T](a: => T): Matcher[T]

matches if a is null when v is null and a is not null when v is not null

matches if a is null when v is null and a is not null when v is not null

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beAssignableFrom[T : ClassTag]: Matcher[Class[_]]

matches if v.isAssignableFrom(c)

matches if v.isAssignableFrom(c)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beBetween[T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

matches if a value is between 2 others according to an Ordering

matches if a value is between 2 others according to an Ordering

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](target: SignificantTarget[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](target: S, figures: SignificantFigures): Matcher[S]

matches if target - actual < 10 pow (log actual - significantDigits)

matches if target - actual < 10 pow (log actual - significantDigits)

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](delta: PlusOrMinus[S]): Matcher[S]

matches if actual = n +/- delta

matches if actual = n +/- delta

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](n: S, delta: S): Matcher[S]

matches if actual = n +/- delta

matches if actual = n +/- delta

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beDefinedAt[K](values: K*): Matcher[PartialFunction[K, Any]]

matches if the partial function is defined at those values

matches if the partial function is defined at those values

Attributes

Inherited from:
MapBaseMatchers (hidden)
def beDefinedBy[K, V](values: (K, V)*): Matcher[PartialFunction[K, V]]

matches if the partial function is defined at those values and return expected values

matches if the partial function is defined at those values and return expected values

Attributes

Inherited from:
MapBaseMatchers (hidden)
def beEmpty[T : Sized]: Matcher[T]

matches if a.isEmpty

matches if a.isEmpty

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beEqualTo[T](t: => T): BeEqualTo

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beFalse: Matcher[Boolean]

matches if a == false

matches if a == false

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beGreaterThan[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

matches if x > n

matches if x > n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beGreaterThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

matches if x >= n

matches if x >= n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beLeft[T](implicit p: ImplicitParam): LeftMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def beLessThan[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

matches if x < n

matches if x < n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beLessThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

matches if x <= n

matches if x <= n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beLike[T](pattern: PartialFunction[T, MatchResult[_]]): Matcher[T]

matches if the value returns a successful result when applied to a PartialFunction

matches if the value returns a successful result when applied to a PartialFunction

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beLikeA[T](pattern: => PartialFunction[T, MatchResult[_]]): Matcher[T]

Attributes

Inherited from:
AnyBeHaveMatchers
def beMatching(a: Regex): BeMatchingRegex

matches if b matches the regex a

matches if b matches the regex a

Attributes

Inherited from:
StringBaseMatchers (hidden)
def beMatching(a: Pattern): BeMatchingPattern

matches if b matches the pattern a

matches if b matches the pattern a

Attributes

Inherited from:
StringBaseMatchers (hidden)
def beMatching(a: => String): BeMatching

matches if b matches the regular expression a

matches if b matches the regular expression a

Attributes

Inherited from:
StringBaseMatchers (hidden)
def beNone: Matcher[Option[Any]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beNull[T]: BeNull[T]

matches if the value is null

matches if the value is null

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beOneOf[T](t: T*): Matcher[T]

matches if t.toSeq.exists(_ == v)

matches if t.toSeq.exists(_ == v)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beRight[T](implicit p: ImplicitParam): RightMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def beSome[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beSome[T : Diffable]: SomeMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beSorted[T : Ordering]: OrderingMatcher[T]

Attributes

Returns

a matcher checking if the elements are ordered

Inherited from:
TraversableBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beTheSameAs[T <: AnyRef](t: => T): BeTheSameAs[T]

matches if a eq b

matches if a eq b

Attributes

Inherited from:
AnyBaseMatchers (hidden)

matches if a == true

matches if a == true

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beTypedEqualTo[T : Diffable](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be[[T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

alias for the adventurous: 5 must (be[(2, 7)[`)

alias for the adventurous: 5 must (be[(2, 7)[`)

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be][T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

alias for the adventurous: 5 must (be](2, 7)[`)

alias for the adventurous: 5 must (be](2, 7)[`)

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_!=[T](t: => T): Matcher[Any]

matches if a != b

matches if a != b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_!=/(a: String): Matcher[Any]

matches if a.toLowerCase.trim != b.toLowerCase.trim

matches if a.toLowerCase.trim != b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def be_!==[T : Diffable](t: => T): Matcher[T]

matches if a != b

matches if a != b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_<[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

alias for beLessThan

alias for beLessThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_<=[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

alias for beLessThanOrEqualTo

alias for beLessThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_==[T](t: => T): BeEqualTo

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_==/(a: String): AdaptableMatcher[Any]

matches if a.toLowerCase.trim = b.toLowerCase.trim

matches if a.toLowerCase.trim = b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def be_===[T : Diffable](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_==~[T : Diffable, S](s: => S)(implicit evidence$6: Diffable[T], convert: S => T): Matcher[T]

matches if a == b after an implicit conversion

matches if a == b after an implicit conversion

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_>[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThan

alias for beGreaterThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_>=[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThanOrEqualTo

alias for beGreaterThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def between[T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def booleanToSimpleResult(b: Boolean): Result

Attributes

Inherited from:
Results
protected def checkFailure[T](m: MatchResult[T]): MatchResult[T]

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

Inherited from:
ExpectationsCreation
protected def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

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

Inherited from:
ExpectationsCreation
protected def checkResultFailure(r: => Result): Result

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

Inherited from:
ExpectationsCreation
def closeTo[S : Numeric](target: SignificantTarget[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def closeTo[S : Numeric](target: S, figures: SignificantFigures): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def closeTo[S : Numeric](delta: PlusOrMinus[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def closeTo[S : Numeric](n: S, delta: S): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def contain[T, S](f: (=> T) => Matcher[S])(expected: => Seq[T]): Seq[S] => MatchResult[Seq[S]]

Attributes

Inherited from:
MatcherZipOperators
def contain(t: Char): Matcher[String]

matches if (b contains a)

matches if (b contains a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def contain(t: String): Matcher[String]

matches if (b contains a)

matches if (b contains a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T], t22: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T]): ContainWithResultSeq[T]

Additional contain methods using to avoid automatic tuple conversions

Additional contain methods using to avoid automatic tuple conversions

Attributes

Inherited from:
TraversableBaseMatchers (hidden)

COLLECTION MATCHERS

COLLECTION MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](check: ValueCheck[T]): ContainWithResult[T]

ELEMENTS MATCHERS

ELEMENTS MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containAllOf[T : Diffable](seq: Seq[T]): ContainWithResultSeq[T]

match if a traversable contains all the elements of seq (and maybe more)

match if a traversable contains all the elements of seq (and maybe more)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containAnyOf[T](seq: Seq[T]): ContainWithResult[T]

match if a traversable contains one of (t1, t2)

match if a traversable contains one of (t1, t2)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containMatch[T](t: => String): Matcher[Iterable[T]]

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

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

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containPattern[T](t: => String): Matcher[Iterable[T]]

match if traversable contains (x matches p)

match if traversable contains (x matches p)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containTheSameElementsAs[T](seq: Seq[T], equality: (T, T) => Boolean): Matcher[Iterable[T]]

does a containAll comparison in both ways

does a containAll comparison in both ways

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containing(s: String): Matcher[String]

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
def definedAt[K](values: K*): Matcher[PartialFunction[K, Any]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def definedBy[K, V](values: (K, V)*): Matcher[PartialFunction[K, Any]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def eachOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def empty[T : Sized]: Matcher[T]

Attributes

Inherited from:
AnyBeHaveMatchers
def endWith(t: => String): Matcher[String]

matches if b.endsWith(a)

matches if b.endsWith(a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def endingWith(s: => String): Matcher[String]

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
def equalTo[T](t: => T): BeEqualTo

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def eventually[T](nested: => Matcher[T]): Matcher[T]

Attributes

Returns

a matcher that will retry the nested matcher 40 times

Inherited from:
EventuallyMatchers
def eventually[T](nested: => Matcher[T], retries: Int, sleep: Duration): Matcher[T]

Attributes

Returns

a matcher that will retry the nested matcher a given number of times

Inherited from:
EventuallyMatchers
def eventually[T](nested: => Matcher[T], retries: Int, sleep: Int => Duration): Matcher[T]

Value parameters

sleep

the function applied on the retry number (first is 1)

Attributes

Returns

a matcher that will retry the nested matcher a given number of times

Inherited from:
EventuallyMatchers
def eventually[T : AsResult](result: => T): T

Attributes

Returns

a result that is retried at least 40 times until it's ok

Inherited from:
EventuallyResults
def eventually[T : AsResult](retries: Int, sleep: Duration)(result: => T): T

Attributes

Returns

a matcher that will retry the nested matcher a given number of times

Inherited from:
EventuallyResults
def eventually[T : AsResult](retries: Int, sleep: Int => Duration)(result: => T): T

Value parameters

sleep

the function applied on the retry number (first is 1)

Attributes

Returns

a matcher that will retry the nested matcher a given number of times

eventually(retries = 2, sleep = _ * 100.milliseconds) {
 aResult
}
Inherited from:
EventuallyResults
def exactly[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def failedTry[T](t: Throwable): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def failedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)
def find(r: Regex): FindMatcherRegex

matches if the regexp r is found inside b

matches if the regexp r is found inside b

Attributes

Inherited from:
StringBaseMatchers (hidden)
def find(p: Pattern): FindMatcherPattern

matches if the pattern p is found inside b

matches if the pattern p is found inside b

Attributes

Inherited from:
StringBaseMatchers (hidden)
def find(a: => String): FindMatcher

matches if the regexp a is found inside b

matches if the regexp a is found inside b

Attributes

Inherited from:
StringBaseMatchers (hidden)
def forall[T](matcher: Matcher[T]): ContainWithResult[T]

apply a matcher for all values

apply a matcher for all values

Attributes

Inherited from:
SequenceMatchersCreation
def forall[T, R : AsResult](values: Iterable[T])(f: T => R): MatchResult[Iterable[T]]

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

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

Attributes

Inherited from:
SequenceMatchersCreation
def forallWhen[T, U](values: Iterable[T])(f: PartialFunction[T, MatchResult[U]]): MatchResult[Iterable[T]]

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

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

Attributes

Inherited from:
SequenceMatchersCreation
def foreach[T](matcher: Matcher[T]): ContainWithResult[T]

apply a matcher foreach value

apply a matcher foreach value

Attributes

Inherited from:
SequenceMatchersCreation
def foreach[T, R : AsResult](values: Iterable[T])(f: T => R): MatchResult[Iterable[T]]

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

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

Attributes

Inherited from:
SequenceMatchersCreation
def foreachWhen[T, R : AsResult](values: Iterable[T])(f: PartialFunction[T, R]): MatchResult[Iterable[T]]

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

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

Attributes

Inherited from:
SequenceMatchersCreation
def greaterThan[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def greaterThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def have: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def haveClass[T : ClassTag]: Matcher[AnyRef]

matches if v.getClass == c

matches if v.getClass == c

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def haveInterface[T : ClassTag]: Matcher[AnyRef]

matches if x.getClass.getInterfaces.contains(T)

matches if x.getClass.getInterfaces.contains(T)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def haveKey[K](k: K): Matcher[Iterable[(Any, Any)]]

matches if map.contains(k)

matches if map.contains(k)

Attributes

Inherited from:
MapBaseMatchers (hidden)
def haveKeys[K](keys: K*): Matcher[Iterable[(K, Any)]]

matches if map.contains(k) forall key k

matches if map.contains(k) forall key k

Attributes

Inherited from:
MapBaseMatchers (hidden)
def haveLength[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveLength[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def havePair[K, V](p: (K, V)): Matcher[Iterable[(Any, Any)]]

matches if map contains a pair (key, value) == (k, v)

matches if map contains a pair (key, value) == (k, v)

Attributes

Inherited from:
MapBaseMatchers (hidden)
def havePairs[K, V](pairs: (K, V)*): Matcher[Iterable[(K, V)]]

matches if map contains all the specified pairs

matches if map contains all the specified pairs

Attributes

Inherited from:
MapBaseMatchers (hidden)
def haveSize[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveSize[T : Sized](n: Int): SizedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveSuperclass[T : ClassTag]: Matcher[AnyRef]

matches if c.isAssignableFrom(v.getClass.getSuperclass)

matches if c.isAssignableFrom(v.getClass.getSuperclass)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def haveValue[V](v: V): Matcher[Iterable[(Any, Any)]]

matches if map contains a pair (key, value) with value == v

matches if map contains a pair (key, value) with value == v

Attributes

Inherited from:
MapBaseMatchers (hidden)
def haveValues[V](values: V*): Matcher[Iterable[(Any, V)]]

matches if map contains a pair (key, value) with value == v for all value v

matches if map contains a pair (key, value) with value == v for all value v

Attributes

Inherited from:
MapBaseMatchers (hidden)
def interface[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBeHaveMatchers
def key[K](k: K): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def keys[K](ks: K*): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def klass[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBeHaveMatchers
def left[T](implicit p: ImplicitParam): LeftMatcher[Nothing]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def left[T](t: ValueCheck[T]): LeftCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def left[T : Diffable](t: T): LeftCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def length[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def length[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def lessThan[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def lessThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

matches if x <= n

matches if x <= n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def like[T](pattern: => PartialFunction[T, MatchResult[_]]): Matcher[T]

Attributes

Inherited from:
AnyBeHaveMatchers
def likeA[T](pattern: => PartialFunction[T, MatchResult[_]]): Matcher[T]

Attributes

Inherited from:
AnyBeHaveMatchers
protected def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

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

Inherited from:
ExpectationsCreation
def matching(r: Regex): BeMatchingRegex

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
def matching(t: Pattern): BeMatchingPattern

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
def matching(t: => String): BeMatching

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
def negate(r: Result): Result

Attributes

Inherited from:
Results
def negateWhen(condition: Boolean)(r: Result): Result

Attributes

Inherited from:
Results
def none: Matcher[Option[Any]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def not: NotMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def not[T](m: Matcher[T]): Matcher[T]

negate a matcher

negate a matcher

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def oneOf[T](t: T*): Matcher[Any]

Attributes

Inherited from:
AnyBeHaveMatchers
def pair[K, V](p: (K, V)): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def pairs[K, V](pairs: (K, V)*): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def retry[T](m: Matcher[T])(retries: Int)(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def right[T](implicit p: ImplicitParam): RightMatcher[Nothing]

Attributes

Inherited from:
EitherBaseMatchers (hidden)

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def right[T : Diffable](t: T): RightCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

Attributes

Returns

the match result without any side-effects

Inherited from:
ExpectationsCreation
protected def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

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

Inherited from:
MatchResultStackTrace
def size[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def size[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def some[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def some[T : Diffable]: SomeMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def sorted[T : Ordering]: OrderingMatcher[T]

alias for beSorted

alias for beSorted

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def startWith(a: String): Matcher[String]

matches if b.startsWith(a)

matches if b.startsWith(a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def startingWith(s: => String): Matcher[String]

Attributes

Inherited from:
StringBeHaveMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)

Attributes

Inherited from:
TryBaseMatchers (hidden)
def superClass[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBeHaveMatchers
def throwA[E <: Throwable](e: E): ExceptionMatcher[E]

Attributes

Returns

a matcher checking the value of an Exception

Inherited from:
ExceptionBaseMatchers (hidden)
def throwA[E <: Throwable](message: String)(implicit m: ClassTag[E]): Matcher[Any]

Attributes

Returns

a matcher checking the type of an Exception and its message (as a regexp)

Inherited from:
ExceptionBaseMatchers (hidden)
def throwA[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

Attributes

Returns

a matcher checking the type of an Exception

Inherited from:
ExceptionBaseMatchers (hidden)
def throwAn[E <: Throwable](e: E): ExceptionMatcher[E]

alias for throwA

alias for throwA

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
def throwAn[E <: Throwable](message: String)(implicit m: ClassTag[E]): Matcher[Any]

alias for throwA

alias for throwA

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
def throwAn[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

alias for throwA

alias for throwA

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
def typedEqualTo[T](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def value[V](v: V): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def valueIsTypedValueCheck[T](expected: T)(implicit di: Diffable[T]): ValueCheck[T]

an expected value can be used to check another value

an expected value can be used to check another value

Attributes

Inherited from:
ValueChecksBase
def values[V](vs: V*): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15], m16: (=> T16) => Matcher[S16], m17: (=> T17) => Matcher[S17], m18: (=> T18) => Matcher[S18], m19: (=> T19) => Matcher[S19], m20: (=> T20) => Matcher[S20], m21: (=> T21) => Matcher[S21], m22: (=> T22) => Matcher[S22]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15], m16: (=> T16) => Matcher[S16], m17: (=> T17) => Matcher[S17], m18: (=> T18) => Matcher[S18], m19: (=> T19) => Matcher[S19], m20: (=> T20) => Matcher[S20], m21: (=> T21) => Matcher[S21]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20, S21)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15], m16: (=> T16) => Matcher[S16], m17: (=> T17) => Matcher[S17], m18: (=> T18) => Matcher[S18], m19: (=> T19) => Matcher[S19], m20: (=> T20) => Matcher[S20]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15], m16: (=> T16) => Matcher[S16], m17: (=> T17) => Matcher[S17], m18: (=> T18) => Matcher[S18], m19: (=> T19) => Matcher[S19]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15], m16: (=> T16) => Matcher[S16], m17: (=> T17) => Matcher[S17], m18: (=> T18) => Matcher[S18]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17, S18)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15], m16: (=> T16) => Matcher[S16], m17: (=> T17) => Matcher[S17]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16, S17)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15], m16: (=> T16) => Matcher[S16]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15, S16)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14], m15: (=> T15) => Matcher[S15]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13], m14: (=> T14) => Matcher[S14]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12], m13: (=> T13) => Matcher[S13]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11], m12: (=> T12) => Matcher[S12]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10], m11: (=> T11) => Matcher[S11]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9], m10: (=> T10) => Matcher[S10]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9, S10)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, T9, S1, S2, S3, S4, S5, S6, S7, S8, S9](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8], m9: (=> T9) => Matcher[S9]): (=> (T1, T2, T3, T4, T5, T6, T7, T8, T9)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8, S9)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, T8, S1, S2, S3, S4, S5, S6, S7, S8](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7], m8: (=> T8) => Matcher[S8]): (=> (T1, T2, T3, T4, T5, T6, T7, T8)) => Matcher[(S1, S2, S3, S4, S5, S6, S7, S8)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, T7, S1, S2, S3, S4, S5, S6, S7](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6], m7: (=> T7) => Matcher[S7]): (=> (T1, T2, T3, T4, T5, T6, T7)) => Matcher[(S1, S2, S3, S4, S5, S6, S7)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, T6, S1, S2, S3, S4, S5, S6](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5], m6: (=> T6) => Matcher[S6]): (=> (T1, T2, T3, T4, T5, T6)) => Matcher[(S1, S2, S3, S4, S5, S6)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, T5, S1, S2, S3, S4, S5](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4], m5: (=> T5) => Matcher[S5]): (=> (T1, T2, T3, T4, T5)) => Matcher[(S1, S2, S3, S4, S5)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, T4, S1, S2, S3, S4](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3], m4: (=> T4) => Matcher[S4]): (=> (T1, T2, T3, T4)) => Matcher[(S1, S2, S3, S4)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, T3, S1, S2, S3](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2], m3: (=> T3) => Matcher[S3]): (=> (T1, T2, T3)) => Matcher[(S1, S2, S3)]

Attributes

Inherited from:
MatcherZipOperators
def zip[T1, T2, S1, S2](m1: (=> T1) => Matcher[S1], m2: (=> T2) => Matcher[S2]): (=> (T1, T2)) => Matcher[(S1, S2)]

Attributes

Inherited from:
MatcherZipOperators
def ~[S : Numeric](delta: PlusOrMinus[S]): Matcher[S]

alias for beCloseTo

alias for beCloseTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def ~[S : Numeric](n: S)(delta: S): Matcher[S]

alias for beCloseTo

alias for beCloseTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)

Implicits

Inherited implicits

final implicit def AdaptFunction[T, S](f: T => S): AdaptFunction[T, S]

this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:

this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:

  • def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)

Attributes

Inherited from:
MatchersCreation
final implicit def EitherResultMatcher[L : Diffable, R : Diffable](result: MatchResult[Either[L, R]]): EitherResultMatcher[L, R]

Attributes

Inherited from:
EitherBeHaveMatchers (hidden)
final implicit def ExceptionMatcherResult[T](result: MatchResult[T]): ExceptionMatcherResult[T]

Attributes

Inherited from:
ExceptionBeHaveMatchers (hidden)
final implicit def FutureMatchable[T](m: Matcher[T])(implicit ee: ExecutionEnv): FutureMatchable[T]

add an await method to any matcher Matcher[T] so that it can be transformed into a Matcher[Future[T]]

add an await method to any matcher Matcher[T] so that it can be transformed into a Matcher[Future[T]]

Attributes

Inherited from:
FutureMatchers
final implicit def InvariantMatcherFunction[T](f: T => Matcher[T]): InvariantMatcherFunction[T]

Attributes

Inherited from:
SequenceMatchersCreation
final implicit def SignificantFiguresSyntax(value: Int): SignificantFiguresSyntax

implicit definition to create significant figures for the beCloseTo matcher

implicit definition to create significant figures for the beCloseTo matcher

Attributes

Inherited from:
NumericMatchers
final implicit def SignificantSyntax[N : Numeric](target: N): SignificantSyntax[N]

implicit definition to create significant figures for the beCloseTo matcher

implicit definition to create significant figures for the beCloseTo matcher

Attributes

Inherited from:
NumericMatchers
implicit def ToDelta[S : Numeric](n: S): CanHaveDelta[S]

implicit definition to create delta for the beCloseTo matcher

implicit definition to create delta for the beCloseTo matcher

Attributes

Inherited from:
NumericMatchers
final implicit def TupleMatcher10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)): TupleMatcher10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)): TupleMatcher11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)): TupleMatcher12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)): TupleMatcher13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)): TupleMatcher14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)): TupleMatcher15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)): TupleMatcher16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)): TupleMatcher17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)): TupleMatcher18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)): TupleMatcher19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher2[T1, T2](t: (T1, T2)): TupleMatcher2[T1, T2]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)): TupleMatcher20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)): TupleMatcher21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)): TupleMatcher22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher3[T1, T2, T3](t: (T1, T2, T3)): TupleMatcher3[T1, T2, T3]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher4[T1, T2, T3, T4](t: (T1, T2, T3, T4)): TupleMatcher4[T1, T2, T3, T4]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher5[T1, T2, T3, T4, T5](t: (T1, T2, T3, T4, T5)): TupleMatcher5[T1, T2, T3, T4, T5]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher6[T1, T2, T3, T4, T5, T6](t: (T1, T2, T3, T4, T5, T6)): TupleMatcher6[T1, T2, T3, T4, T5, T6]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher7[T1, T2, T3, T4, T5, T6, T7](t: (T1, T2, T3, T4, T5, T6, T7)): TupleMatcher7[T1, T2, T3, T4, T5, T6, T7]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher8[T1, T2, T3, T4, T5, T6, T7, T8](t: (T1, T2, T3, T4, T5, T6, T7, T8)): TupleMatcher8[T1, T2, T3, T4, T5, T6, T7, T8]

Attributes

Inherited from:
MatcherZipOperators
final implicit def TupleMatcher9[T1, T2, T3, T4, T5, T6, T7, T8, T9](t: (T1, T2, T3, T4, T5, T6, T7, T8, T9)): TupleMatcher9[T1, T2, T3, T4, T5, T6, T7, T8, T9]

Attributes

Inherited from:
MatcherZipOperators
implicit def anyBeHaveMatcher[T](result: MatchResult[T]): AnyBeHaveMatchers[T]

Attributes

Inherited from:
AnyBeHaveMatchers
implicit def anyWithEmpty[T : Sized](result: MatchResult[T]): AnyWithEmptyMatchers[T]

Attributes

Inherited from:
AnyBeHaveMatchers
implicit def asResult[T](r: MatchResult[T]): Result

implicit definition to transform any MatchResult to a Result

implicit definition to transform any MatchResult to a Result

Attributes

Inherited from:
MatchResultImplicits
implicit def checkableSeqIsContainCheckSeq[T](seq: Seq[T])(implicit to: T => ValueCheck[T]): Seq[ValueCheck[T]]

Attributes

Inherited from:
TraversableBaseMatchersLowImplicits (hidden)
implicit def combineBoolean(b: => Boolean): ResultLogicalCombinator

Attributes

Inherited from:
ResultLogicalCombinators
implicit def combineMatchResult[T](m: => MatchResult[T]): MatchResultCombinator[T]

Attributes

Inherited from:
MatchResultLogicalCombinators
implicit def combineResult(r: => Result): ResultLogicalCombinator

Attributes

Inherited from:
ResultLogicalCombinators
implicit def describe[T](t: => T): Descriptible[T]

describe a value with the aka method

describe a value with the aka method

Attributes

Inherited from:
ExpectationsDescription
implicit def describeExpectation(description: String): ExpectationDescription

Attributes

Inherited from:
ExpectationsDescription
implicit def downcastBeEqualTypedValueCheck[T, S >: T](check: BeEqualTypedValueCheck[T]): ValueCheck[S]

a check of type T can be downcasted implicitly to a check of type S >: T

a check of type T can be downcasted implicitly to a check of type S >: T

Attributes

Inherited from:
ValueChecks
implicit def fromMatchResult(r: => MatchResult[_]): Boolean

implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure

implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure

Attributes

Inherited from:
MatchResultImplicits
implicit def functionAndKoMessageToMatcher[T](f: (T => Boolean, T => String)): Matcher[T]

This method transforms a function to a Matcher

This method transforms a function to a Matcher

Attributes

Inherited from:
MatchersCreation
implicit def functionAndMessagesToMatcher[T](f: (T => Boolean, T => String, T => String)): Matcher[T]

This method transforms a function, with function descriptors to a Matcher

This method transforms a function, with function descriptors to a Matcher

Attributes

Inherited from:
MatchersCreation
implicit def functionIsValueCheck[T, R : AsResult](f: T => R): ValueCheck[T]

a function returning an object having an AsResult instance can check a value

a function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecksLowImplicits
implicit def functionToMatcher[T](f: (T => Boolean, String)): Matcher[T]

This method transforms a function to a Matcher

This method transforms a function to a Matcher

Attributes

Inherited from:
MatchersCreation
implicit def functionToMatcher2[T](f: (T => Boolean, String, String)): Matcher[T]

This method transforms a function to a Matcher

This method transforms a function to a Matcher

Attributes

Inherited from:
MatchersCreation
final implicit def futureAsResult[T](f: => Future[T])(implicit ee: ExecutionEnv, asResult: AsResult[T]): futureAsResult[T]

when a Future contains a result, it can be awaited to return this result

when a Future contains a result, it can be awaited to return this result

Attributes

Inherited from:
FutureMatchers
implicit lazy val implicitParameter: ImplicitParam

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter1: ImplicitParam1

Attributes

Inherited from:
ImplicitParameters

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter2: ImplicitParam2

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter3: ImplicitParam3

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter4: ImplicitParam4

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter5: ImplicitParam5

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter6: ImplicitParam6

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter7: ImplicitParam7

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter8: ImplicitParam8

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter9: ImplicitParam9

Attributes

Inherited from:
ImplicitParameters
implicit def lazyParameter[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

Attributes

Inherited from:
LazyParameters
implicit def matchResultFunctionToMatcher[T, R : AsResult](f: T => R): Matcher[T]

This method transforms a function returning a Result to a Matcher

This method transforms a function returning a Result to a Matcher

Attributes

Inherited from:
MatchersCreation
implicit def matcherIsValueCheck[T](m: Matcher[T]): ValueCheck[T]

a Matcher[T] can check a value

a Matcher[T] can check a value

Attributes

Inherited from:
ValueChecksBase
implicit def matcherSeqIsContainCheckSeq[T](seq: Seq[Matcher[T]]): Seq[ValueCheck[T]]

Attributes

Inherited from:
TraversableBaseMatchersLowImplicits (hidden)
implicit def orderedSeqMatchResult[T : Ordering](result: MatchResult[Seq[T]]): OrderedSeqMatchResult[T]

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
implicit def pairFunctionToMatcher[T](f: T => (Boolean, String)): Matcher[T]

This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher

This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher

Attributes

Inherited from:
MatchersCreation
implicit def partialfunctionIsValueCheck[T, R : AsResult](f: PartialFunction[T, R]): ValueCheck[T]

a partial function returning an object having an AsResult instance can check a value

a partial function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecks
final implicit def resultFunction[T, R : AsResult](f: T => R): resultFunction[T, R]

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

Attributes

Inherited from:
ResultImplicits
implicit def seqToResult[T](r: Seq[MatchResult[T]]): Result

implicit definition to transform a Seq of MatchResults to a Result

implicit definition to transform a Seq of MatchResults to a Result

Attributes

Inherited from:
MatchResultImplicits
implicit def sized[T : Sized](s: MatchResult[T]): HasSize[T]

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)

adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

Attributes

Inherited from:
StringMatchers
implicit def stringMatcherFunctionToBynameMatcherFunction[T, R](f: T => Matcher[R]): (=> T) => Matcher[R]

this allows a function returning a matcher to be used where the same function with a byname parameter is expected

this allows a function returning a matcher to be used where the same function with a byname parameter is expected

Attributes

Inherited from:
MatchersCreation
implicit def timesFor(n: Int): Times

This implicit definition allows to declare a number of times 3.times

This implicit definition allows to declare a number of times 3.times

Attributes

Inherited from:
NumberOfTimes
implicit def toAnyMatcherResult(result: MatchResult[AnyRef]): AnyMatcherResult

Attributes

Inherited from:
AnyBeHaveMatchers
implicit def toAnyRefMatcherResult[T <: AnyRef](result: MatchResult[T]): AnyRefMatcherResult[T]

Attributes

Inherited from:
AnyBeHaveMatchers
implicit def toBeLikeResultMatcher[T](result: MatchResult[T]): BeLikeResultMatcher[T]

Attributes

Inherited from:
AnyBeHaveMatchers
implicit def toClassMatcherResult[T : ClassTag](result: MatchResult[Class[_]]): ClassMatcherResult[T]

Attributes

Inherited from:
AnyBeHaveMatchers
implicit def toContainSeqMatcherFunction[T](seq: Seq[T]): ContainSeqMatcherFunction[T]

Attributes

Inherited from:
MatcherZipOperators
implicit def toMapKeyResultMatcher[K](result: MatchResult[Iterable[(K, Any)]]): MapKeyResultMatcher[K]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
implicit def toMapResultMatcher[K, V](result: MatchResult[Iterable[(K, V)]]): MapResultMatcher[K, V]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
implicit def toMapValueResultMatcher[V](result: MatchResult[Iterable[(Any, V)]]): MapValueResultMatcher[V]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
implicit def toNotStringMatcher(result: NotMatcher[Any]): NotStringMatcher

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
implicit def toNumericResultMatcher[S : Numeric](result: MatchResult[S]): NumericResultMatcher[S]

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)
implicit def toOptionResultMatcher[T](result: MatchResult[Option[T]]): OptionResultMatcher[T]

Attributes

Inherited from:
OptionBeHaveMatchers (hidden)
implicit def toOrderedResultMatcher[S](result: MatchResult[S])(implicit convert: S => Ordered[S]): OrderedResultMatcher[S]

matcher aliases and implicits to use with be + matcher

matcher aliases and implicits to use with be + matcher

Attributes

Inherited from:
NumericBeHaveMatchers (hidden)
implicit def toPartialFunctionResultMatcher[K, V](result: MatchResult[PartialFunction[K, V]]): PartialFunctionResultMatcher[K, V]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
implicit def toResult(b: Boolean): Result

implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

Attributes

Inherited from:
Results
implicit def toStringResultMatcher(result: MatchResult[String]): StringResultMatcher

Attributes

Inherited from:
StringBeHaveMatchers (hidden)
implicit def toTryResultMatcher[T](result: MatchResult[Try[T]]): TryResultMatcher[T]

Attributes

Inherited from:
TryBeHaveMatchers (hidden)
implicit def traversable[T](s: MatchResult[Iterable[T]]): TraversableBeHaveMatchers[T]

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
implicit def tripletFunctionToMatcher[T](f: T => (Boolean, String, String)): Matcher[T]

This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher

This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher

Attributes

Inherited from:
MatchersCreation
implicit def typedEqualExpectation[T](t: => T): TypedEqualExpectation[T]

A value can be tested against another with the === operator. It is equivalent to writing a must_== b

A value can be tested against another with the === operator. It is equivalent to writing a must_== b

Attributes

Inherited from:
TypedEqual