Before

org.specs2.specification.Before
See theBefore companion object
trait Before extends Context

The Before trait can be inherited by classes representing a context where an action must be executing before the main executable action

Attributes

See also

Example to understand why the type T must : AsResult

Companion
object
Graph
Supertypes
trait Context
trait Scope
trait Scope
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Before
trait BeforeAfter
trait BeforeAfter
Self type

Members list

Value members

Abstract methods

def before: Any

override this method to provide the before behavior

override this method to provide the before behavior

Attributes

Concrete methods

def andThen(b: Before): Before

sequence the actions of 2 Before traits

sequence the actions of 2 Before traits

Attributes

override def apply[T : AsResult](a: => T): Result

execute an action returning a Result and finally the before action.

execute an action returning a Result and finally the before action.

The action will be aborted if the before block fails:

  • with an exception
  • with a non-Success result
  • with a non-Success match result

Attributes

Definition Classes
def compose(b: Before): Before

compose the actions of 2 Before traits

compose the actions of 2 Before traits

Attributes