Before

org.specs2.mutable.Before
trait Before extends Before, FragmentsFactory

This trait adds the possibility to execute the before behavior before the body of the context.

Attributes

Graph
Supertypes
trait Before
trait Context
trait Scope
trait Scope
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def map(fs: => Fragments): Fragments

modify the fragments

modify the fragments

Attributes

Definition Classes

Inherited methods

def addFragment(fragment: Fragment): Fragment

Attributes

Inherited from:
MutableFragmentBuilder

Attributes

Inherited from:
MutableFragmentBuilder
def addFragments(fragments: Fragments): Fragments

Attributes

Inherited from:
MutableFragmentBuilder

Attributes

Inherited from:
MutableFragmentBuilder
def addSections(): Unit

Attributes

Inherited from:
MutableFragmentBuilder
def andThen(b: Before): Before

sequence the actions of 2 Before traits

sequence the actions of 2 Before traits

Attributes

Inherited from:
Before
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
Inherited from:
Before
def before: Any

override this method to provide the before behavior

override this method to provide the before behavior

Attributes

Inherited from:
Before
def compose(b: Before): Before

compose the actions of 2 Before traits

compose the actions of 2 Before traits

Attributes

Inherited from:
Before

Attributes

Inherited from:
SpecificationStructure

Attributes

Inherited from:
FragmentsFactory

Attributes

Inherited from:
ContextualSpecificationStructure
def hasSectionsForBlocks: Boolean

Attributes

Inherited from:
MutableFragmentBuilder

Attributes

Inherited from:
MutableFragmentBuilder
def map(fs: => Fragments, env: Env): Fragments

modify the fragments, using the current environment

modify the fragments, using the current environment

Attributes

Inherited from:
SpecificationStructure
def map(structure: SpecStructure): SpecStructure

modify the specification structure

modify the specification structure

Attributes

Inherited from:
SpecificationStructure
def setArguments(a: Arguments): Arguments

Attributes

Inherited from:
MutableArgumentsBuilder
def setTitle(t: String): SpecHeader

Attributes

Inherited from:
MutableHeaderBuilder

Attributes

Inherited from:
MutableFragmentBuilder

Attributes

Inherited from:
SpecificationStructure
def updateArguments(a: Arguments): Arguments

Attributes

Inherited from:
MutableArgumentsBuilder