class
Expectable
[+T]
extends AnyRef
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
applyMatcher
[S >: T]
(m: ⇒ Matcher[S]): MatchResult[S]
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(): AnyRef
-
def
d
[T]
(value: ⇒ T): String
-
def
dUnquoted
[T]
(value: T): String
-
def
description
: String
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
-
def
finalize
(): Unit
-
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
def
map
[S]
(other: S): Expectable[S]
-
def
map
[S]
(f: (T) ⇒ S): Expectable[S]
-
def
mapDescription
(d: String): Expectable[T]
-
def
mapDescription
(d: (String) ⇒ String): Expectable[T]
-
def
mapDescription
(d: Option[(String) ⇒ String]): Expectable[T]
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
optionalDescription
: Option[(String) ⇒ String]
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
lazy val
value
: T
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
The Expectable class models anything which can be checked by applying a Matcher
It stores a value which is only evaluated when necessary and an optional additional description for that value.
The Expectable object is responsible for creating its own description, based on the value toString method and and an additional description.