DecoratedResult

org.specs2.execute.DecoratedResult
case class DecoratedResult[+T](decorator: T, result: Result) extends Result

This result allows to embed additional data with a given result for further display

Is is used to provide a way to display properly the data tables in the HtmlExporter

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Result
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Types

Value members

Concrete methods

def decorate[S](otherDecorator: S): DecoratedResult[S]

use another decorator

use another decorator

Attributes

override def isError: Boolean

Attributes

Returns:

true if the result is an Error instance

Definition Classes
override def isFailure: Boolean

Attributes

Returns:

true if the result is a Failure instance

Definition Classes
override def isPending: Boolean

Attributes

Returns:

true if the result is a Pending instance

Definition Classes
override def isSkipped: Boolean

Attributes

Returns:

true if the result is a Skipped instance

Definition Classes
override def isSuccess: Boolean

Attributes

Returns:

true if the result is a Success instance

Definition Classes

Attributes

Returns:

the result with no message

set the number of expectations

set the number of expectations

Attributes

Inherited methods

increment the number of expectations

increment the number of expectations

Attributes

Inherited from:
Result
def coloredStatus(using args: Arguments): String

Attributes

Returns:

the colored textual status of the result

Inherited from:
Result
def isIssue: Boolean

Attributes

Returns:

true if the result is a failure or an Error

Inherited from:
Result
def isSuspended: Boolean

Attributes

Returns:

true if the result is a Skipped or Pending

Inherited from:
Result
def isThrownFailure: Boolean

Attributes

Returns:

true if the result is a Failure that was thrown like a JUnit assertion error or a NotImplemented exception

Inherited from:
Result
def mapExpected(f: String => String): Result

change this result's expected

change this result's expected

Attributes

Inherited from:
Result

Attributes

Returns:

the negation of this result where a success becomes a failure and vice-versa

Inherited from:
Result
def prependMessage(pre: String): Result

prepend another message and a conjunction depending on the status of this result

prepend another message and a conjunction depending on the status of this result

Attributes

Inherited from:
Result
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def setMessage(msg: String): Result

set the message of a result, keeping the subclass type

set the message of a result, keeping the subclass type

Attributes

Inherited from:
Result
def status: String

Attributes

Returns:

the uncolored textual status of the result

Inherited from:
Result
def statusName(using args: Arguments): String

Attributes

Returns:

the textual status of the result

Inherited from:
Result
def updateExpected(exp: String): Result

update the expected of a result, keeping the subclass type

update the expected of a result, keeping the subclass type

Attributes

Inherited from:
Result
def updateMessage(f: String => String): Result

change this result's message

change this result's message

Attributes

Inherited from:
Result

Inherited fields

Attributes

Inherited from:
Result
val expected: String

Attributes

Inherited from:
Result
val message: String

Attributes

Inherited from:
Result