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

trait Serializable
trait Product
trait Equals
class Result
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

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

use another decorator

use another decorator

override def isError: Boolean
Definition Classes
override def isFailure: Boolean
Definition Classes
override def isPending: Boolean
Definition Classes
override def isSkipped: Boolean
Definition Classes
override def isSuccess: Boolean
Definition Classes

Inherited methods

increment the number of expectations

increment the number of expectations

Inherited from:
Result
def coloredStatus(implicit args: Arguments): String
Returns:

the colored textual status of the result

Inherited from:
Result
def isIssue: Boolean
Returns:

true if the result is a failure or an Error

Inherited from:
Result
def isSuspended: Boolean
Returns:

true if the result is a Skipped or Pending

Inherited from:
Result
def isThrownFailure: Boolean
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

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

change this result's message

change this result's message

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

Inherited from:
Result
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def status: String
Returns:

the uncolored textual status of the result

Inherited from:
Result
def statusName(implicit args: Arguments): String
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

Inherited from:
Result
def updateMessage(msg: String): Result

update the message of a result, keeping the subclass type

update the message of a result, keeping the subclass type

Inherited from:
Result

Inherited fields

Inherited from:
Result
val expected: String
Inherited from:
Result
val message: String
Inherited from:
Result