JUnitExpectations

org.specs2.matcher.JUnitExpectations
trait JUnitExpectations extends ThrownExpectations

This trait throws AssertionFailed errors when a match fails.

It is involved when reusing Matchers with JUnit

Attributes

Graph
Supertypes
trait ThrownExpectations
trait ThrownStandardMatchResults
trait StandardMatchResults
trait ThrownStandardResults
trait StandardResults
trait ThrownExpectationsCreation
trait ThrownExpectables
trait ExpectationsCreation
trait MatchResultStackTrace
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

override protected def checkFailure[T](m: MatchResult[T]): MatchResult[T]

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

Definition Classes
ExpectationsCreation

Inherited methods

override def anError: Error

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override protected 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

Definition Classes
ThrownExpectables -> ExpectationsCreation
Inherited from:
ThrownExpectables
override protected def checkResultFailure(result: => Result): Result

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

Definition Classes
ThrownExpectables -> ExpectationsCreation
Inherited from:
ThrownExpectables
override def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Definition Classes
ThrownExpectables -> ExpectationsCreation
Inherited from:
ThrownExpectables
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
override def createExpectableWithShowAs[T](t: => T, show: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Definition Classes
ThrownExpectables -> ExpectationsCreation
Inherited from:
ThrownExpectables
def done: Success

Attributes

Inherited from:
StandardResults
protected def failure(f: Failure): Failure

Attributes

Inherited from:
ThrownStandardResults
override def failure(m: String): Failure

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override def failure: Failure

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def ko(m: String): MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
protected def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

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

Inherited from:
ExpectationsCreation
def ok(m: String): MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
protected def pending(p: Pending): Pending

Attributes

Inherited from:
ThrownStandardResults
override def pending(m: String): Pending

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override def pending: Pending

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def pending[R : AsResult](r: => R): Pending

Attributes

Inherited from:
StandardResults
override def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

Attributes

Returns

the value without any side-effects for expectations

Definition Classes
ThrownStandardMatchResults -> ExpectationsCreation
Inherited from:
ThrownStandardMatchResults
protected def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

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

Inherited from:
MatchResultStackTrace
protected def skipped(s: Skipped): Skipped

Attributes

Inherited from:
ThrownStandardResults
override def skipped(m: String): Skipped

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override def skipped: Skipped

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def skipped[R : AsResult](r: => R): Skipped

Attributes

Inherited from:
StandardResults
protected def success(m: String): Success

Attributes

Inherited from:
ThrownStandardResults
override def todo: Pending

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def wontdo: Success

Attributes

Inherited from:
StandardResults

Inherited fields

lazy override val ko: MatchResult[Any]

Attributes

Inherited from:
ThrownStandardMatchResults
lazy val ok: MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
lazy override val success: Success

Attributes

Inherited from:
ThrownStandardResults