org.specs2.matcher

ShouldExpectable

class ShouldExpectable [T] extends Expectable[T]

This kind of expectable can be followed by the verb should to apply a matcher:

1 should beEqualTo(1)

For convenience, several shouldMatcher methods have also been defined as shortcuts to equivalent:

a should matcher

Linear Supertypes
Expectable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ShouldExpectable
  2. Expectable
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. 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
  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def d [T] (value: ⇒ T): String

    returns

    the description of the matched value, quoted.

    Attributes
    protected
    Definition Classes
    Expectable
  10. def dUnquoted [T] (value: T): String

    returns

    the description of the matched value, unquoted.

    Attributes
    protected
    Definition Classes
    Expectable
  11. def description : String

    returns

    a description of the value

    Definition Classes
    Expectable
  12. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  13. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def evaluate : Expectable[T]

    evaluate the value once and return the same expectable

    evaluate the value once and return the same expectable

    Attributes
    protected[specs2]
    Definition Classes
    Expectable
  15. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  17. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  18. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  19. def map [S] (other: S): Expectable[S]

    Definition Classes
    Expectable
  20. def map [S] (f: (T) ⇒ S): Expectable[S]

    Definition Classes
    Expectable
  21. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def optionalDescription : Option[(String) ⇒ String]

    returns

    the optional description function

    Definition Classes
    Expectable
  25. def should (m: ⇒ Matcher[T]): MatchResult[T]

  26. def shouldEqual (other: ⇒ Any): MatchResult[Any]

  27. def shouldNotEqual (other: ⇒ Any): MatchResult[Any]

  28. def should_!= (other: ⇒ Any): MatchResult[Any]

  29. def should_== (other: ⇒ Any): MatchResult[Any]

  30. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  31. def toString (): String

    Definition Classes
    AnyRef → Any
  32. lazy val value : T

    the value is only evaluated if necessary

    the value is only evaluated if necessary

    Definition Classes
    Expectable
  33. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Expectable[T]

Inherited from AnyRef

Inherited from Any