org.specs2.specification
The Before trait can be inherited by classes representing a context where an action must be executing before the main executable action
Example to understand why the type T must : AsResult
override this method to provide the before behavior
sequence the actions of 2 Before traits
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
compose the actions of 2 Before traits
The Before trait can be inherited by classes representing a context where an action must be executing before the main executable action
Example to understand why the type T must : AsResult