case class Success(m: String = "", exp: String = "") extends Result with Product with Serializable
This class represents the success of an execution
- Alphabetic
- By Inheritance
- Success
- Serializable
- Product
- Equals
- Result
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Success(m: String = "", exp: String = "")
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addExpectationsNb(n: Int): SelfType
increment the number of expectations
increment the number of expectations
- Definition Classes
- Result
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def coloredStatus(implicit args: Arguments = Arguments()): String
- returns
the colored textual status of the result
- Definition Classes
- Result
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: Any): Boolean
- Definition Classes
- Success → Equals → AnyRef → Any
- val exp: String
- val expectationsNb: Int
- Definition Classes
- Result
- val expected: String
- Definition Classes
- Result
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- Success → AnyRef → Any
- def isError: Boolean
- returns
true if the result is an Error instance
- Definition Classes
- Result
- def isFailure: Boolean
- returns
true if the result is a Failure instance
- Definition Classes
- Result
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isIssue: Boolean
- returns
true if the result is a failure or an Error
- Definition Classes
- Result
- def isPending: Boolean
- returns
true if the result is a Pending instance
- Definition Classes
- Result
- def isSkipped: Boolean
- returns
true if the result is a Skipped instance
- Definition Classes
- Result
- def isSuccess: Boolean
- def isSuspended: Boolean
- returns
true if the result is a Skipped or Pending
- Definition Classes
- Result
- def isThrownFailure: Boolean
- returns
true if the result is a Failure that was thrown like a JUnit assertion error or a NotImplemented exception
- Definition Classes
- Result
- val m: String
- def mapExpected(f: (String) => String): Result
change this result's expected
change this result's expected
- Definition Classes
- Result
- def mapMessage(f: (String) => String): Result
change this result's message
change this result's message
- Definition Classes
- Result
- val message: String
- Definition Classes
- Result
- def mute: Success
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- Definition Classes
- Result
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def setExpectationsNb(n: Int): Success
set the number of expectations
- def status: String
- returns
the uncolored textual status of the result
- Definition Classes
- Result
- def statusName(implicit args: Arguments = Arguments()): String
- returns
the textual status of the result
- Definition Classes
- Result
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Success → AnyRef → Any
- 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
- Definition Classes
- 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
- Definition Classes
- Result
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()