ResultLogicalCombinator

org.specs2.execute.ResultLogicalCombinators.ResultLogicalCombinator

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

infix def and(other: => Result): Result

Attributes

Returns

the logical and combination of 2 results

def iff(condition: Boolean): Result

when the condition is true the result it taken as is, when it's false, take its negation

when the condition is true the result it taken as is, when it's false, take its negation

Attributes

def not: Result

Attributes

Returns

Success if it is a failure and vice-versa

infix def or(other: => Result): Result

Attributes

Returns

the logical or combination of 2 results

def unless(condition: Boolean, message: String): Result

only consider this result if the condition is false

only consider this result if the condition is false

Attributes

def when(condition: Boolean, message: String): Result

only consider this result if the condition is true

only consider this result if the condition is true

Attributes