sealed abstract class Result extends AnyRef
The result of an execution, either:
- a success: the execution is ok
- a failure: an expectation is not met
- an error: an exception occurred
- a pending execution: the user has decided that execution must not be performed
- a skipped execution: based on dynamic conditions (a database not available for instance) the execution is not performed
A Result has:
- a message describing the outcome
- a message describing the expectation
- possibly a number of expectations when it is the outcome of several checks (this is used for the reporting of ScalaCheck properties).
- Alphabetic
- By Inheritance
- Result
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
coloredStatus(implicit args: Arguments = Arguments()): String
- returns
the colored textual status of the result
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val expectationsNb: Int
- val expected: String
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isError: Boolean
- returns
true if the result is an Error instance
-
def
isFailure: Boolean
- returns
true if the result is a Failure instance
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isIssue: Boolean
- returns
true if the result is a failure or an Error
-
def
isPending: Boolean
- returns
true if the result is a Pending instance
-
def
isSkipped: Boolean
- returns
true if the result is a Skipped instance
-
def
isSuccess: Boolean
- returns
true if the result is a Success instance
-
def
isSuspended: Boolean
- returns
true if the result is a Skipped or Pending
-
def
isThrownFailure: Boolean
- returns
true if the result is a Failure that was thrown like a JUnit assertion error or a NotImplemented exception
-
def
mapExpected(f: (String) ⇒ String): Result
change this result's expected
-
def
mapMessage(f: (String) ⇒ String): Result
change this result's message
- val message: String
-
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
-
def
status: String
- returns
the uncolored textual status of the result
-
def
statusName(implicit args: Arguments = Arguments()): String
- returns
the textual status of the result
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateExpected(exp: String): Result
update the expected of a result, keeping the subclass type
-
def
updateMessage(msg: String): Result
update the message of a result, keeping the subclass type
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )