class MustExpectable[T] extends Expectable[T]
This kind of expectable can be followed by the verb must to apply a matcher:
1 must beEqualTo(1)
For convenience, several mustMatcher methods have also been defined as shortcuts to equivalent:
a must matcher
- Self Type
- MustExpectable[T]
- Alphabetic
- By Inheritance
- MustExpectable
- Expectable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applyMatcher[S >: T](m: => Matcher[S]): MatchResult[S]
apply a matcher on the value and return a MatchResult which can later on be transformed to a simple Result
apply a matcher on the value and return a MatchResult which can later on be transformed to a simple Result
- Definition Classes
- Expectable
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def check[S >: T](result: MatchResult[S]): MatchResult[S]
additional checks can be done on the result, such as throwing an exception
additional checks can be done on the result, such as throwing an exception
- Definition Classes
- Expectable
- def checkResult(result: Result): Result
additional checks can be done on a result, such as throwing an exception
additional checks can be done on a result, such as throwing an exception
- Definition Classes
- Expectable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def describe(v: Any): String
- returns
a description of any value with the custom description
- Definition Classes
- Expectable
- def description: String
- returns
a description of the value provided by the user a combination of the value show by specs2 and an optional description
- Definition Classes
- Expectable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evaluate: Expectable[T]
evaluate the value and return the same expectable
evaluate the value and return the same expectable
- Definition Classes
- Expectable
- def evaluateOnce: Expectable[T]
evaluate the value once and return an expectable with the same expression, ready to be evaluated again
evaluate the value once and return an expectable with the same expression, ready to be evaluated again
- Definition Classes
- Expectable
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[S](f: (T) => Expectable[S]): Expectable[S]
apply a function to the value
apply a function to the value
- Definition Classes
- Expectable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[S](other: S): Expectable[S]
change the expectable value
change the expectable value
- Definition Classes
- Expectable
- def map[S](f: (T) => S): Expectable[S]
apply a function to the expectable value
apply a function to the expectable value
- Definition Classes
- Expectable
- def mapDescription(d: String): Expectable[T]
- Definition Classes
- Expectable
- def mapDescription(d: (String) => String): Expectable[T]
- Definition Classes
- Expectable
- def mapDescription(d: Option[(String) => String]): Expectable[T]
apply a function to the description function
apply a function to the description function
- Definition Classes
- Expectable
- def must(m: => Matcher[T]): MatchResult[T]
- def mustEqual(other: => Any): MatchResult[Any]
- def mustNotEqual(other: => Any): MatchResult[Any]
- def must_!=(other: => Any): MatchResult[Any]
- def must_!==(other: => T)(implicit di: Diffable[T]): MatchResult[T]
- def must_==(other: => Any): MatchResult[Any]
- def must_===(other: => T)(implicit di: Diffable[T]): MatchResult[T]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionalDescription: Option[(String) => String]
- returns
the optional description function
- Definition Classes
- Expectable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateDescription(d: (String) => String): Expectable[T]
update the description with another description
update the description with another description
- Definition Classes
- Expectable
- lazy val value: T
the value is only evaluated if necessary
the value is only evaluated if necessary
- Definition Classes
- Expectable
- lazy val valueDefinition: () => T
definition of the value, possibly evaluating to different results each time it is invoked
definition of the value, possibly evaluating to different results each time it is invoked
- Definition Classes
- Expectable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()