Trait

org.specs2.matcher

JUnitExpectations

Related Doc: package matcher

Permalink

trait JUnitExpectations extends ThrownExpectations

This trait throws AssertionFailed errors when a match fails.

It is involved when reusing Matchers with JUnit

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JUnitExpectations
  2. ThrownExpectations
  3. StandardMatchResults
  4. StandardResults
  5. Expectations
  6. MatchResultStackTrace
  7. CanBeEqual
  8. AnyRef
  9. 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. implicit class pendingResult extends AnyRef

    Permalink

    any block of code following a pending object will be pending

    any block of code following a pending object will be pending

    Definition Classes
    StandardResults
  4. implicit class skippedResult extends AnyRef

    Permalink

    any block of code following a skipped object will be skipped

    any block of code following a skipped object will be skipped

    Definition Classes
    StandardResults

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 anError: Error

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. 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
  7. 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
    JUnitExpectationsExpectations
  8. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    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
    ThrownExpectationsExpectations
  9. def checkResultFailure(result: ⇒ 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
    ThrownExpectationsExpectations
  10. def clone(): AnyRef

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description

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

    Permalink

    returns

    an Expectable

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

    Permalink

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ThrownExpectationsExpectations
  16. 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
  17. def done: Success

    Permalink
    Definition Classes
    StandardResults
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def failure(f: Failure): Failure

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  21. def failure(m: String): Failure

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  22. def failure: Failure

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  23. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  27. def ko(m: String): MatchResult[Any]

    Permalink
    Definition Classes
    StandardMatchResults
  28. lazy val ko: MatchResult[Any]

    Permalink
  29. 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
  30. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  33. def ok(m: String): MatchResult[Any]

    Permalink
    Definition Classes
    StandardMatchResults
  34. lazy val ok: MatchResult[Any]

    Permalink
    Definition Classes
    StandardMatchResults
  35. def pending(p: Pending): Pending

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  36. def pending(m: String): Pending

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  37. def pending: Pending

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  38. def pending[R](r: ⇒ R)(implicit arg0: AsResult[R]): Pending

    Permalink
    Definition Classes
    StandardResults
  39. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink

    returns

    the value without any side-effects for expectations

    Definition Classes
    ThrownExpectationsExpectations
  40. 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
  41. def skipped(s: Skipped): Skipped

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  42. def skipped(m: String): Skipped

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  43. def skipped: Skipped

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  44. def skipped[R](r: ⇒ R)(implicit arg0: AsResult[R]): Skipped

    Permalink
    Definition Classes
    StandardResults
  45. def success(m: String): Success

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  46. lazy val success: Success

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. def todo: Pending

    Permalink
    Definition Classes
    ThrownExpectationsStandardResults
  50. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def wontdo: Success

    Permalink
    Definition Classes
    StandardResults

Inherited from ThrownExpectations

Inherited from StandardMatchResults

Inherited from StandardResults

Inherited from Expectations

Inherited from MatchResultStackTrace

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped