# AnyMatchers

### Related Docs: object AnyMatchers | package matcher

#### trait AnyMatchers extends AnyBaseMatchers with AnyBeHaveMatchers

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

Linear Supertypes
matcher.AnyBeHaveMatchers, AnyBaseMatchers, AnyRef, Any
Ordering
1. Alphabetic
2. By inheritance
Inherited
1. AnyMatchers
2. AnyBeHaveMatchers
3. AnyBaseMatchers
4. AnyRef
5. Any
1. Hide All
2. Show all
Visibility
1. Public
2. All

### Type Members

1. #### class AnyBeHaveMatchers[T] extends AnyRef

Definition Classes
AnyBeHaveMatchers
2. #### class AnyMatcherResult extends AnyRef

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

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

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

Definition Classes
AnyBeHaveMatchers
6. #### class ClassMatcherResult extends AnyRef

Definition Classes
AnyBeHaveMatchers

### Value Members

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

Definition Classes
AnyRef → Any
2. #### def !==[T](t: ⇒ T): Matcher[T]

matches if a != b

matches if a != b

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

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

Definition Classes
AnyRef → Any
5. #### def ===[T](t: ⇒ T): BeTypedEqualTo[T]

matches if a == b

matches if a == b

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

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[Any]

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

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

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

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

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

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

Definition Classes
AnyBeHaveMatchers
14. #### def be[T <: AnyRef](t: ⇒ T): BeTheSameAs[T]

alias for beTheSameAs

alias for beTheSameAs

Definition Classes
AnyBaseMatchers
15. #### def beAnInstanceOf[T](implicit arg0: ClassTag[T]): Matcher[Any]

Definition Classes
AnyBaseMatchers
16. #### def beAnyOf[T](t: T*): Matcher[T]

alias for beOneOf

alias for beOneOf

Definition Classes
AnyBaseMatchers
17. #### 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

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

matches if v.isAssignableFrom(c)

matches if v.isAssignableFrom(c)

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

matches if a.isEmpty

matches if a.isEmpty

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

matches if a == b

matches if a == b

Definition Classes
AnyBaseMatchers
21. #### def beFalse: Matcher[Boolean]

matches if a == false

matches if a == false

Definition Classes
AnyBaseMatchers
22. #### 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

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

Definition Classes
AnyBeHaveMatchers
24. #### def beNull[T]: BeNull[T]

matches if the value is null

matches if the value is null

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

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

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

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

matches if a eq b

matches if a eq b

Definition Classes
AnyBaseMatchers
27. #### def beTrue: BeTrueMatcher

matches if a == true

matches if a == true

Definition Classes
AnyBaseMatchers
28. #### def beTypedEqualTo[T](t: ⇒ T, equality: (T, T) ⇒ Boolean = (t1:T, t2:T) => t1 == t2): BeTypedEqualTo[T]

matches if a == b

matches if a == b

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

matches if a != b

matches if a != b

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

matches if a != b

matches if a != b

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

matches if a == b

matches if a == b

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

matches if a == b

matches if a == b

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

matches if a == b after an implicit conversion

matches if a == b after an implicit conversion

Definition Classes
AnyBaseMatchers
34. #### def clone(): AnyRef

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

Definition Classes
AnyBeHaveMatchers
36. #### final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
37. #### def equalTo[T](t: ⇒ T): BeEqualTo

matches if a == b

matches if a == b

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

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

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

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

Definition Classes
AnyRef → Any
42. #### def haveClass[T](implicit arg0: ClassTag[T]): Matcher[Any]

matches if v.getClass == c

matches if v.getClass == c

Definition Classes
AnyBaseMatchers
43. #### def haveInterface[T](implicit arg0: ClassTag[T]): Matcher[Any]

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

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

Definition Classes
AnyBaseMatchers
44. #### def haveSuperclass[T](implicit arg0: ClassTag[T]): Matcher[Any]

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

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

Definition Classes
AnyBaseMatchers
45. #### def interface[T](implicit arg0: ClassTag[T]): Matcher[Any]

Definition Classes
AnyBeHaveMatchers
46. #### final def isInstanceOf[T0]: Boolean

Definition Classes
Any
47. #### def klass[T](implicit arg0: ClassTag[T]): Matcher[Any]

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

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

Definition Classes
AnyBeHaveMatchers
50. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
51. #### def not[T](m: Matcher[T]): Matcher[T]

negate a matcher

negate a matcher

Definition Classes
AnyBaseMatchers
52. #### final def notify(): Unit

Definition Classes
AnyRef
53. #### final def notifyAll(): Unit

Definition Classes
AnyRef
54. #### def oneOf[T](t: T*): Matcher[T]

Definition Classes
AnyBeHaveMatchers
55. #### def superClass[T](implicit arg0: ClassTag[T]): Matcher[Any]

Definition Classes
AnyBeHaveMatchers
56. #### final def synchronized[T0](arg0: ⇒ T0): T0

Definition Classes
AnyRef
57. #### implicit def toAnyMatcherResult(result: MatchResult[Any]): AnyMatcherResult

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

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

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

Definition Classes
AnyBeHaveMatchers
61. #### def toString(): String

Definition Classes
AnyRef → Any
62. #### def typedEqualTo[T](t: ⇒ T, equality: (T, T) ⇒ Boolean = (t1:T, t2:T) => t1 == t2): BeTypedEqualTo[T]

matches if a == b

matches if a == b

Definition Classes
AnyBaseMatchers
63. #### final def wait(): Unit

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

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

Definition Classes
AnyRef
Annotations
@throws( ... )