AnyMatchers

org.specs2.matcher.AnyMatchers
See theAnyMatchers companion object

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

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnyMatchers.type
trait Matchers
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

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

Value members

Inherited methods

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

matches if a != b

matches if a != b

Attributes

Inherited from:
AnyBaseMatchers (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 anInstanceOf[T : ClassTag]: Matcher[AnyRef]

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
AnyBeHaveMatchers
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 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 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 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 beFalse: Matcher[Boolean]

matches if a == false

matches if a == false

Attributes

Inherited from:
AnyBaseMatchers (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 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 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](t: => T): Matcher[Any]

matches if a != b

matches if a != b

Attributes

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

matches if a != b

matches if a != b

Attributes

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

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (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 empty[T : Sized]: Matcher[T]

Attributes

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

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (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 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 interface[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBeHaveMatchers
def klass[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBeHaveMatchers
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
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 superClass[T : ClassTag]: Matcher[AnyRef]

Attributes

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

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)

Implicits

Inherited implicits

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 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