JUnitShouldExpectations

org.specs2.matcher.JUnitShouldExpectations
See theJUnitShouldExpectations companion trait

Attributes

Companion
trait
Graph
Supertypes
trait ShouldThrownExpectations
trait ThrownExpectations
trait ThrownStandardMatchResults
trait ExpectedResults
trait ThrownStandardResults
trait StandardResults
trait ThrownExpectationsCreation
trait ThrownExpectables
trait ShouldExpectations
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

implicit class expectShould[T](tm: => T)(using not: NotGiven[NoShouldExpectations])

Attributes

Inherited from:
ShouldExpectations
Supertypes
class Object
trait Matchable
class Any
implicit class expectedShould[T](tm: Expectable[T])(using not: NotGiven[NoShouldExpectations])

Attributes

Inherited from:
ShouldExpectations
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

override def anError: Error

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def anError(message: String): Error

Attributes

Inherited from:
StandardResults
override protected def checkResultFailure(r: => Result): Result

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

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

Attributes

Definition Classes
JUnitExpectations -> ThrownExpectables -> ResultChecks
Inherited from:
JUnitExpectations
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 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 createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
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): Result

Attributes

Inherited from:
ExpectedResults
protected def mapResult(r: Result): Result

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

Attributes

Inherited from:
ResultChecks
def ok(m: String): Result

Attributes

Inherited from:
ExpectedResults
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](r: => R)(using evidence$1: AsResult[R]): Pending

Attributes

Inherited from:
StandardResults
override def sandboxResult(r: => Result): Result

Attributes

Returns

the value without any side-effects for expectations

Definition Classes
ThrownStandardMatchResults -> ResultChecks
Inherited from:
ThrownStandardMatchResults
protected def setStacktrace(m: Result): Result

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](r: => R)(using evidence$2: AsResult[R]): Skipped

Attributes

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

Attributes

Definition Classes
ThrownStandardResults -> StandardResults
Inherited from:
ThrownStandardResults
def theBlock(t: => Nothing): Expectable[Nothing]

Attributes

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

Attributes

Inherited from:
ExpectationsCreation
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: Result

Attributes

Inherited from:
ThrownStandardMatchResults
lazy val ok: Result

Attributes

Inherited from:
ExpectedResults
lazy override val success: Success

Attributes

Inherited from:
ThrownStandardResults

Extensions

Inherited extensions

extension [T](t: => T)(using not: NotGiven[NoTypedEqual])(using evidence$1: Diffable[T])
def ===(other: => T): Result

equality matcher on Expectables

equality matcher on Expectables

Attributes

Inherited from:
TypedEqual
extension [T](t: => T)(using not: NotGiven[NoTypedEqual])(using evidence$2: Diffable[T])
def !==(other: => T): Result

! equality matcher on Expectables

! equality matcher on Expectables

Attributes

Inherited from:
TypedEqual

Implicits

Inherited implicits

final implicit def expectShould[T](tm: => T)(using not: NotGiven[NoShouldExpectations]): expectShould[T]

Attributes

Inherited from:
ShouldExpectations
final implicit def expectedShould[T](tm: Expectable[T])(using not: NotGiven[NoShouldExpectations]): expectedShould[T]

Attributes

Inherited from:
ShouldExpectations