Trait/Object

org.specs2.matcher

AnyMatchers

Related Docs: object AnyMatchers | package matcher

Permalink

trait AnyMatchers extends AnyBaseMatchers with AnyBeHaveMatchers

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

Linear Supertypes
matcher.AnyBeHaveMatchers, BeHaveMatchers, AnyBaseMatchers, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnyMatchers
  2. AnyBeHaveMatchers
  3. BeHaveMatchers
  4. AnyBaseMatchers
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AnyBeHaveMatchers[T] extends AnyRef

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  2. class AnyMatcherResult extends AnyRef

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  3. class AnyRefMatcherResult[T <: AnyRef] extends AnyRef

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  4. class AnyWithEmptyMatchers[T] extends AnyRef

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  5. class BeLikeResultMatcher[T] extends AnyRef

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  6. class ClassMatcherResult extends AnyRef

    Permalink
    Definition Classes
    AnyBeHaveMatchers

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==[T](t: ⇒ T)(implicit arg0: Diffable[T]): Matcher[T]

    Permalink

    matches if a != b

    matches if a != b

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. def ===[T](t: ⇒ T)(implicit arg0: Diffable[T]): EqualityMatcher[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  6. def ==~[T, S](s: ⇒ S)(implicit arg0: Diffable[T], convert: (S) ⇒ T): Matcher[T]

    Permalink

    matches if a == b after an implicit conversion

    matches if a == b after an implicit conversion

    Definition Classes
    AnyBaseMatchers
  7. def anInstanceOf[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  8. implicit def anyBeHaveMatcher[T](result: MatchResult[T]): AnyBeHaveMatchers[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  9. def anyOf[T](t: T*): Matcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  10. implicit def anyWithEmpty[T](result: MatchResult[T])(implicit arg0: (T) ⇒ Any { def isEmpty: Boolean }): AnyWithEmptyMatchers[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def asNullAs[T](a: ⇒ T): Matcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  13. def assignableFrom[T](implicit arg0: ClassTag[T]): Matcher[Class[_]]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  14. def be: NeutralMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  15. def be[T <: AnyRef](t: ⇒ T): BeTheSameAs[T]

    Permalink

    alias for beTheSameAs

    alias for beTheSameAs

    Definition Classes
    AnyBaseMatchers
  16. def beAnInstanceOf[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink
    Definition Classes
    AnyBaseMatchers
  17. def beAnyOf[T](t: T*): Matcher[T]

    Permalink

    alias for beOneOf

    alias for beOneOf

    Definition Classes
    AnyBaseMatchers
  18. def beAsNullAs[T](a: ⇒ T): Matcher[T]

    Permalink

    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

    Definition Classes
    AnyBaseMatchers
  19. def beAssignableFrom[T](implicit arg0: ClassTag[T]): Matcher[Class[_]]

    Permalink

    matches if v.isAssignableFrom(c)

    matches if v.isAssignableFrom(c)

    Definition Classes
    AnyBaseMatchers
  20. def beEmpty[T](implicit arg0: (T) ⇒ Any { def isEmpty: Boolean }): Matcher[T]

    Permalink

    matches if a.isEmpty

    matches if a.isEmpty

    Definition Classes
    AnyBaseMatchers
  21. def beEqualTo[T](t: ⇒ T): BeEqualTo

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  22. def beFalse: Matcher[Boolean]

    Permalink

    matches if a == false

    matches if a == false

    Definition Classes
    AnyBaseMatchers
  23. def beLike[T](pattern: PartialFunction[T, MatchResult[_]]): Matcher[T]

    Permalink

    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

    Definition Classes
    AnyBaseMatchers
  24. def beLikeA[T](pattern: ⇒ PartialFunction[T, MatchResult[_]]): Matcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  25. def beNull[T]: BeNull[T]

    Permalink

    matches if the value is null

    matches if the value is null

    Definition Classes
    AnyBaseMatchers
  26. def beOneOf[T](t: T*): Matcher[T]

    Permalink

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

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

    Definition Classes
    AnyBaseMatchers
  27. def beTheSameAs[T <: AnyRef](t: ⇒ T): BeTheSameAs[T]

    Permalink

    matches if a eq b

    matches if a eq b

    Definition Classes
    AnyBaseMatchers
  28. def beTrue: BeTrueMatcher

    Permalink

    matches if a == true

    matches if a == true

    Definition Classes
    AnyBaseMatchers
  29. def beTypedEqualTo[T](t: ⇒ T)(implicit arg0: Diffable[T]): EqualityMatcher[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  30. def be_!=[T](t: ⇒ T): Matcher[Any]

    Permalink

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  31. def be_!==[T](t: ⇒ T)(implicit arg0: Diffable[T]): Matcher[T]

    Permalink

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  32. def be_==[T](t: ⇒ T): BeEqualTo

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  33. def be_===[T](t: ⇒ T)(implicit arg0: Diffable[T]): EqualityMatcher[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  34. def be_==~[T, S](s: ⇒ S)(implicit arg0: Diffable[T], convert: (S) ⇒ T): Matcher[T]

    Permalink

    matches if a == b after an implicit conversion

    matches if a == b after an implicit conversion

    Definition Classes
    AnyBaseMatchers
  35. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  36. def empty[T <: Any { def isEmpty: Boolean }]: Matcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  37. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. def equalTo[T](t: ⇒ T): BeEqualTo

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  39. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  42. def have: NeutralMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  43. def haveClass[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink

    matches if v.getClass == c

    matches if v.getClass == c

    Definition Classes
    AnyBaseMatchers
  44. def haveInterface[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink

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

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

    Definition Classes
    AnyBaseMatchers
  45. def haveSuperclass[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink

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

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

    Definition Classes
    AnyBaseMatchers
  46. def interface[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. def klass[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  49. def like[T](pattern: ⇒ PartialFunction[T, MatchResult[_]]): Matcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  50. def likeA[T](pattern: ⇒ PartialFunction[T, MatchResult[_]]): Matcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def not: NotMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  53. def not[T](m: Matcher[T]): Matcher[T]

    Permalink

    negate a matcher

    negate a matcher

    Definition Classes
    AnyBaseMatchers
  54. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  56. def oneOf[T](t: T*): Matcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  57. def superClass[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  58. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  59. implicit def toAnyMatcherResult(result: MatchResult[AnyRef]): AnyMatcherResult

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  60. implicit def toAnyRefMatcherResult[T <: AnyRef](result: MatchResult[T]): AnyRefMatcherResult[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  61. implicit def toBeLikeResultMatcher[T](result: MatchResult[T]): BeLikeResultMatcher[T]

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  62. implicit def toClassMatcherResult(result: MatchResult[Class[_]]): ClassMatcherResult

    Permalink
    Definition Classes
    AnyBeHaveMatchers
  63. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  64. def typedEqualTo[T](t: ⇒ T): EqualityMatcher[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  65. final def wait(arg0: Long, arg1: Int): Unit

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

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

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

Deprecated Value Members

  1. def finalize(): Unit

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from matcher.AnyBeHaveMatchers

Inherited from BeHaveMatchers

Inherited from AnyBaseMatchers

Inherited from AnyRef

Inherited from Any

Ungrouped