org.specs2.matcher

TryMatchers

trait TryMatchers extends TryBaseMatchers with TryBeHaveMatchers

Matchers for util.Try instances

Linear Supertypes
TryBeHaveMatchers, TryBaseMatchers, ExceptionMatchers, ExceptionBeHaveMatchers, ExceptionBaseMatchers, Expectations, CanBeEqual, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TryMatchers
  2. TryBeHaveMatchers
  3. TryBaseMatchers
  4. ExceptionMatchers
  5. ExceptionBeHaveMatchers
  6. ExceptionBaseMatchers
  7. Expectations
  8. CanBeEqual
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class CanBeEqualExpectation[T] extends AnyRef

    Definition Classes
    CanBeEqual
  2. class Descriptible[T] extends AnyRef

    Definition Classes
    Expectations
  3. class ExceptionClassMatcher extends Matcher[Any]

    Exception matcher checking the type of a thrown exception.

    Exception matcher checking the type of a thrown exception.

    Definition Classes
    ExceptionBaseMatchers
  4. class ExceptionMatcher[E <: Throwable] extends Matcher[Any]

    This matchers matches exception instances.

    This matchers matches exception instances.

    Definition Classes
    ExceptionBaseMatchers
    See also

    throwA

  5. class ExceptionMatcherResult[T] extends AnyRef

    Definition Classes
    ExceptionBeHaveMatchers
  6. case class FailedTryMatcher[T] extends Matcher[Try[T]] with Product with Serializable

    Definition Classes
    TryBaseMatchers
  7. case class SuccessTryMatcher[T] extends Matcher[Try[T]] with Product with Serializable

    Definition Classes
    TryBaseMatchers
  8. class TryResultMatcher[T] extends AnyRef

    Definition Classes
    TryBeHaveMatchers

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 aFailedTry[T]: FailedTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  7. def aSuccessfulTry[T]: SuccessTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def beAFailedTry[T]: FailedTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  10. def beASuccessfulTry[T]: SuccessTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  11. def beFailedTry[T]: FailedTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  12. def beSuccessfulTry[T]: SuccessTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  13. implicit def canBeEqual[T](t: ⇒ T): CanBeEqualExpectation[T]

    A value can be tested against another with the === operator.

    A value can be tested against another with the === operator. It is equivalent to writing a must_== b

    Definition Classes
    CanBeEqual
  14. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    this method can be overriden to throw exceptions when checking the match result

    this method can be overriden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    Expectations
  15. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    this method can be overriden to throw exceptions when checking the match result

    this method can be overriden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    Expectations
  16. def checkResultFailure(r: Result): Result

    this method can be overriden to throw exceptions when checking the result

    this method can be overriden to throw exceptions when checking the result

    Attributes
    protected
    Definition Classes
    Expectations
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    returns

    an Expectable with a description function

    Definition Classes
    Expectations
  19. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    returns

    an Expectable with a description function

    Definition Classes
    Expectations
  20. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    returns

    an Expectable with a description

    Definition Classes
    Expectations
  21. def createExpectable[T](t: ⇒ T): Expectable[T]

    returns

    an Expectable

    Definition Classes
    Expectations
  22. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    returns

    an Expectable with a function to show the element T

    Definition Classes
    Expectations
  23. implicit def describe[T](t: ⇒ T): Descriptible[T]

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    Expectations
  24. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  26. def failedTry[T]: FailedTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  27. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  31. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    this method can be overriden to intercept a MatchResult and change its message before it is thrown

    this method can be overriden to intercept a MatchResult and change its message before it is thrown

    Attributes
    protected
    Definition Classes
    Expectations
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. def successfulTry[T]: SuccessTryMatcher[T]

    Definition Classes
    TryBaseMatchers
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def throwA[E <: Throwable](e: E): ExceptionMatcher[E]

    returns

    a matcher checking the value of an Exception

    Definition Classes
    ExceptionBaseMatchers
  38. def throwA[E <: Throwable](message: String = ".*")(implicit m: ClassTag[E]): Matcher[Any]

    returns

    a matcher checking the type of an Exception and its message (as a regexp)

    Definition Classes
    ExceptionBaseMatchers
  39. def throwA[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

    returns

    a matcher checking the type of an Exception

    Definition Classes
    ExceptionBaseMatchers
  40. def throwAn[E <: Throwable](e: E): ExceptionMatcher[E]

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  41. def throwAn[E <: Throwable](message: String = ".*")(implicit m: ClassTag[E]): Matcher[Any]

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  42. def throwAn[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  43. implicit def toExceptionMatcher[T](result: MatchResult[T]): ExceptionMatcherResult[T]

    Definition Classes
    ExceptionBeHaveMatchers
  44. def toString(): String

    Definition Classes
    AnyRef → Any
  45. implicit def toTryResultMatcher[T](result: MatchResult[Try[T]]): TryResultMatcher[T]

    Definition Classes
    TryBeHaveMatchers
  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TryBeHaveMatchers

Inherited from TryBaseMatchers

Inherited from ExceptionMatchers

Inherited from ExceptionBeHaveMatchers

Inherited from ExceptionBaseMatchers

Inherited from Expectations

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped