AnyMatchers

This trait provides matchers which are applicable to any type of value

Companion:
object
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class AnyBeHaveMatchers[T](result: MatchResult[T])
Inherited from:
AnyBeHaveMatchers
class AnyMatcherResult(result: MatchResult[AnyRef])
Inherited from:
AnyBeHaveMatchers
class AnyRefMatcherResult[T <: AnyRef](result: MatchResult[T])
Inherited from:
AnyBeHaveMatchers
class AnyWithEmptyMatchers[T](result: MatchResult[T])(implicit evidence$17: Sized[T])
Inherited from:
AnyBeHaveMatchers
class BeLikeResultMatcher[T](result: MatchResult[T])
Inherited from:
AnyBeHaveMatchers
class ClassMatcherResult[T](result: MatchResult[Class[_]])(implicit evidence$15: ClassTag[T])
Inherited from:
AnyBeHaveMatchers

Value members

Inherited methods

def !==[T : Diffable](t: => T): Matcher[T]

matches if a != b

matches if a != b

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

matches if a == b

matches if a == b

Inherited from:
AnyBaseMatchers
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

Inherited from:
AnyBaseMatchers
def anInstanceOf[T : ClassTag]: Matcher[AnyRef]
Inherited from:
AnyBeHaveMatchers
def anyOf[T](t: T*): Matcher[Any]
Inherited from:
AnyBeHaveMatchers
def asNullAs[T](a: => T): Matcher[Any]
Inherited from:
AnyBeHaveMatchers
def assignableFrom[T : ClassTag]: Matcher[Class[_]]
Inherited from:
AnyBeHaveMatchers
def be: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers
def be[T <: AnyRef](t: => T): BeTheSameAs[T]

alias for beTheSameAs

alias for beTheSameAs

Inherited from:
AnyBaseMatchers
def beAnInstanceOf[T : ClassTag]: Matcher[AnyRef]
Inherited from:
AnyBaseMatchers
def beAnyOf[T](t: T*): Matcher[T]

alias for beOneOf

alias for beOneOf

Inherited from:
AnyBaseMatchers
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

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

matches if v.isAssignableFrom(c)

matches if v.isAssignableFrom(c)

Inherited from:
AnyBaseMatchers
def beEmpty[T : Sized]: Matcher[T]

matches if a.isEmpty

matches if a.isEmpty

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

matches if a == b

matches if a == b

Inherited from:
AnyBaseMatchers
def beFalse: Matcher[Boolean]

matches if a == false

matches if a == false

Inherited from:
AnyBaseMatchers
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

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

matches if the value is null

matches if the value is null

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

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

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

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

matches if a eq b

matches if a eq b

Inherited from:
AnyBaseMatchers

matches if a == true

matches if a == true

Inherited from:
AnyBaseMatchers

matches if a == b

matches if a == b

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

matches if a != b

matches if a != b

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

matches if a != b

matches if a != b

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

matches if a == b

matches if a == b

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

matches if a == b

matches if a == b

Inherited from:
AnyBaseMatchers
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

Inherited from:
AnyBaseMatchers
def empty[T : Sized]: Matcher[T]
Inherited from:
AnyBeHaveMatchers
def equalTo[T](t: => T): BeEqualTo

matches if a == b

matches if a == b

Inherited from:
AnyBaseMatchers
Inherited from:
BeHaveMatchers
def haveClass[T : ClassTag]: Matcher[AnyRef]

matches if v.getClass == c

matches if v.getClass == c

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

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

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

Inherited from:
AnyBaseMatchers
def haveSuperclass[T : ClassTag]: Matcher[AnyRef]

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

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

Inherited from:
AnyBaseMatchers
def interface[T : ClassTag]: Matcher[AnyRef]
Inherited from:
AnyBeHaveMatchers
def klass[T : ClassTag]: Matcher[AnyRef]
Inherited from:
AnyBeHaveMatchers
def like[T](pattern: => PartialFunction[T, MatchResult[_]]): Matcher[T]
Inherited from:
AnyBeHaveMatchers
def likeA[T](pattern: => PartialFunction[T, MatchResult[_]]): Matcher[T]
Inherited from:
AnyBeHaveMatchers
def not: NotMatcher[Any]
Inherited from:
BeHaveMatchers
def not[T](m: Matcher[T]): Matcher[T]

negate a matcher

negate a matcher

Inherited from:
AnyBaseMatchers
def oneOf[T](t: T*): Matcher[Any]
Inherited from:
AnyBeHaveMatchers
def superClass[T : ClassTag]: Matcher[AnyRef]
Inherited from:
AnyBeHaveMatchers
def typedEqualTo[T](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Inherited from:
AnyBaseMatchers

Implicits

Inherited implicits

implicit def anyBeHaveMatcher[T](result: MatchResult[T]): AnyBeHaveMatchers[T]
Inherited from:
AnyBeHaveMatchers
implicit def anyWithEmpty[T : Sized](result: MatchResult[T]): AnyWithEmptyMatchers[T]
Inherited from:
AnyBeHaveMatchers
implicit def toAnyMatcherResult(result: MatchResult[AnyRef]): AnyMatcherResult
Inherited from:
AnyBeHaveMatchers
implicit def toAnyRefMatcherResult[T <: AnyRef](result: MatchResult[T]): AnyRefMatcherResult[T]
Inherited from:
AnyBeHaveMatchers
implicit def toBeLikeResultMatcher[T](result: MatchResult[T]): BeLikeResultMatcher[T]
Inherited from:
AnyBeHaveMatchers
implicit def toClassMatcherResult[T : ClassTag](result: MatchResult[Class[_]]): ClassMatcherResult[T]
Inherited from:
AnyBeHaveMatchers