Trait/Object

org.specs2.matcher

TryMatchers

Related Docs: object TryMatchers | package matcher

Permalink

trait TryMatchers extends TryBaseMatchers with TryBeHaveMatchers

Matchers for util.Try instances

Linear Supertypes
TryBeHaveMatchers, TryBaseMatchers, ExceptionMatchers, ExceptionBeHaveMatchers, ExceptionBaseMatchers, Expectations, MatchResultStackTrace, 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. MatchResultStackTrace
  9. CanBeEqual
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class CanBeEqualExpectation[T] extends AnyRef

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

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

    Permalink

    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]

    Permalink

    This matchers matches exception instances.

    This matchers matches exception instances.

    Definition Classes
    ExceptionBaseMatchers
    See also

    throwA

  5. class ExceptionMatcherResult[T] extends AnyRef

    Permalink
    Definition Classes
    ExceptionBeHaveMatchers
  6. class TryResultMatcher[T] extends AnyRef

    Permalink
    Definition Classes
    TryBeHaveMatchers

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  5. def aFailedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  6. def aSuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  7. def aSuccessfulTry[T]: TrySuccessMatcher[T]

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

    Permalink
    Definition Classes
    Any
  9. def beAFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  10. def beAFailedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  11. def beASuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  12. def beASuccessfulTry[T]: TrySuccessMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  13. def beFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  14. def beFailedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  15. def beSuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  16. def beSuccessfulTry[T]: TrySuccessMatcher[T]

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

    Permalink

    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
  18. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

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

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

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

    Permalink

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

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

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

    Permalink

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

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

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

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description

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

    Permalink

    returns

    an Expectable

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

    Permalink

    returns

    an Expectable with a function to show the element T

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

    Permalink

    describe a value with the aka method

    describe a value with the aka method

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  30. def failedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  31. def failedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  32. def finalize(): Unit

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

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

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

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

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink

    returns

    the match result without any side-effects

    Attributes
    protected
    Definition Classes
    Expectations
  41. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  42. def successfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  43. def successfulTry[T]: TrySuccessMatcher[T]

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

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

    Permalink

    returns

    a matcher checking the value of an Exception

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

    Permalink

    returns

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

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

    Permalink

    returns

    a matcher checking the type of an Exception

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

    Permalink

    alias for throwA

    alias for throwA

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

    Permalink

    alias for throwA

    alias for throwA

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

    Permalink

    alias for throwA

    alias for throwA

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

    Permalink
    Definition Classes
    ExceptionBeHaveMatchers
  52. def toString(): String

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

    Permalink
    Definition Classes
    TryBeHaveMatchers
  54. final def wait(): Unit

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

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

    Permalink
    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 MatchResultStackTrace

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped