Success

case class Success(m: String, exp: String) extends Result

This class represents the success of an execution

Companion:
object
trait Serializable
trait Product
trait Equals
class Result
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

override def equals(o: Any): Boolean
Definition Classes
Equals -> Any
override def hashCode: Int
Definition Classes
Any
override def isSuccess: Boolean
Definition Classes
override def toString: String
Definition Classes
Any

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 isError: Boolean
Returns:

true if the result is an Error instance

Inherited from:
Result
def isFailure: Boolean
Returns:

true if the result is a Failure instance

Inherited from:
Result
def isIssue: Boolean
Returns:

true if the result is a failure or an Error

Inherited from:
Result
def isPending: Boolean
Returns:

true if the result is a Pending instance

Inherited from:
Result
def isSkipped: Boolean
Returns:

true if the result is a Skipped instance

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