Object/Trait

org.specs2.execute

ResultExecution

Related Docs: trait ResultExecution | package execute

Permalink

object ResultExecution extends ResultExecution

Linear Supertypes
ResultExecution, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultExecution
  2. ResultExecution
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class ExecutableResult extends AnyRef

    Permalink
    Definition Classes
    ResultExecution

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def effectively(result: ⇒ Result): Result

    Permalink

    execute a Result and rethrow any exception or throws an exception if it is not a success

    execute a Result and rethrow any exception or throws an exception if it is not a success

    Definition Classes
    ResultExecution
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def execute[T, R](code: ⇒ T)(convert: (T) ⇒ R)(implicit arg0: AsResult[R]): Result

    Permalink

    execute a piece of code and return a result:

    execute a piece of code and return a result:

    • if the code already returns a result, just keep it
    • if the code throws an Exception return an Error
    • if the code returns a value of type T, convert it to a result
    Definition Classes
    ResultExecution
  10. def execute(result: ⇒ Result): Result

    Permalink

    execute a Result and return a Result even if there are specs2 exceptions

    execute a Result and return a Result even if there are specs2 exceptions

    Definition Classes
    ResultExecution
  11. def executeEither[T, R](code: ⇒ T)(implicit convert: (T) ⇒ R): Either[Result, R]

    Permalink

    execute a piece of code and return a result, either as a Left(failure) or a Right(value)

    execute a piece of code and return a result, either as a Left(failure) or a Right(value)

    Definition Classes
    ResultExecution
  12. def executeProperty[T](prop: Property[T], default: Result = Success("no value")): Product with Serializable with Either[Result, T]

    Permalink

    execute a Property returning the value if it exists and a Success result otherwise

    execute a Property returning the value if it exists and a Success result otherwise

    Definition Classes
    ResultExecution
  13. def executeThrowable(res: ⇒ Result): Either[Result, Result]

    Permalink

    execute a result and return either as a Left(result) if something was thrown or a Right(result)

    execute a result and return either as a Left(result) if something was thrown or a Right(result)

    Definition Classes
    ResultExecution
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def handleExceptionsPurely: PartialFunction[Throwable, Result]

    Permalink

    handle result exceptions and do not rethrow them

    handle result exceptions and do not rethrow them

    Definition Classes
    ResultExecution
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. implicit def resultIsExecutable(r: ⇒ Result): ExecutableResult

    Permalink

    this implicit allows the execution of a Result with an execute method

    this implicit allows the execution of a Result with an execute method

    Definition Classes
    ResultExecution
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ResultExecution

Inherited from AnyRef

Inherited from Any

Ungrouped