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. ShouldExpectable
  2. Expectable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

    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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. 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
  9. 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
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def describe(v: Any): String

    returns

    a description of any value with the custom description

    Definition Classes
    Expectable
  12. 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
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

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

    evaluate the value and return the same expectable

    evaluate the value and return the same expectable

    Definition Classes
    Expectable
  16. 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
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def flatMap[S](f: (T) ⇒ Expectable[S]): Expectable[S]

    apply a function to the value

    apply a function to the value

    Definition Classes
    Expectable
  19. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  22. def map[S](other: S): Expectable[S]

    change the expectable value

    change the expectable value

    Definition Classes
    Expectable
  23. 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
  24. def mapDescription(d: String): Expectable[T]

    Definition Classes
    Expectable
  25. def mapDescription(d: (String) ⇒ String): Expectable[T]

    Definition Classes
    Expectable
  26. 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
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def optionalDescription: Option[(String) ⇒ String]

    returns

    the optional description function

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

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

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

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

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

  36. def should_===(other: ⇒ T): MatchResult[T]

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. def updateDescription(d: (String) ⇒ String): Expectable[T]

    update the description with another description

    update the description with another description

    Definition Classes
    Expectable
  40. lazy val value: T

    the value is only evaluated if necessary

    the value is only evaluated if necessary

    Definition Classes
    Expectable
  41. 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
  42. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Expectable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped