JUnitShouldExpectations

trait JUnitShouldExpectations extends ShouldThrownExpectations with JUnitExpectations

This trait can be imported to use ShouldMatchers in JUnit

Companion:
object
trait ShouldThrownExpectations
trait ShouldThrownExpectables
trait ShouldExpectations
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ThrownExpectations
trait ThrownStandardMatchResults
trait StandardMatchResults
trait ThrownStandardResults
trait StandardResults
trait ThrownExpectationsCreation
trait ThrownExpectables
trait ExpectationsCreation
trait MatchResultStackTrace
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class Descriptible[T](value: => T)
class ExpectationDescription(description: String)
class TypedEqualExpectation[T](t: => T)
Inherited from:
TypedEqual

Value members

Inherited methods

override def anError: Error
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override protected def checkFailure[T](m: MatchResult[T]): MatchResult[T]
Definition Classes
JUnitExpectations -> ExpectationsCreation
Inherited from:
JUnitExpectations
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

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

an Expectable with a description function

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

an Expectable with a description

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

an Expectable

Inherited from:
ExpectationsCreation
override def createExpectableWithShowAs[T](t: => T, show: => String): Expectable[T]
Definition Classes
ThrownExpectables -> ExpectationsCreation
Inherited from:
ThrownExpectables
override protected def createShouldExpectable[T](t: => T): ShouldExpectable[T]
Definition Classes
ShouldThrownExpectables -> ShouldExpectations
Inherited from:
ShouldThrownExpectables
def done: Success
Inherited from:
StandardResults
protected def failure(f: Failure): Failure
Inherited from:
ThrownStandardResults
override def failure(m: String): Failure
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override def failure: Failure
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def ko(m: String): MatchResult[Any]
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

Inherited from:
ExpectationsCreation
def ok(m: String): MatchResult[Any]
Inherited from:
StandardMatchResults
protected def pending(p: Pending): Pending
Inherited from:
ThrownStandardResults
override def pending(m: String): Pending
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override def pending: Pending
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def pending[R : AsResult](r: => R): Pending
Inherited from:
StandardResults
override def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]
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

Inherited from:
MatchResultStackTrace
protected def skipped(s: Skipped): Skipped
Inherited from:
ThrownStandardResults
override def skipped(m: String): Skipped
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
override def skipped: Skipped
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def skipped[R : AsResult](r: => R): Skipped
Inherited from:
StandardResults
protected def success(m: String): Success
Inherited from:
ThrownStandardResults
override def todo: Pending
Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def wontdo: Success
Inherited from:
StandardResults

Inherited fields

lazy override val ko: MatchResult[Any]
Inherited from:
ThrownStandardMatchResults
lazy val ok: MatchResult[Any]
Inherited from:
StandardMatchResults
lazy override val success: Success
Inherited from:
ThrownStandardResults

Implicits

Inherited implicits

implicit override def akaShould[T](tm: Expectable[T]): ShouldExpectable[T]
Definition Classes
ShouldThrownExpectables -> ShouldExpectations
Inherited from:
ShouldThrownExpectables
implicit def describe[T](t: => T): Descriptible[T]

describe a value with the aka method

describe a value with the aka method

Inherited from:
ExpectationsDescription
implicit def describeExpectation(description: String): ExpectationDescription
Inherited from:
ExpectationsDescription
implicit def thisBlock(t: => Nothing): ShouldExpectable[Nothing]
Inherited from:
ShouldExpectations
implicit def thisValue[T](t: => T): ShouldExpectable[T]
Inherited from:
ShouldExpectations
implicit def typedEqualExpectation[T](t: => T): TypedEqualExpectation[T]

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

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

Inherited from:
TypedEqual