OptionMatchers

org.specs2.matcher.OptionMatchers
See theOptionMatchers companion trait

Attributes

Companion
trait
Graph
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

class OptionResultMatcher[T](result: MatchResult[Option[T]])

Attributes

Inherited from:
OptionBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def asNoneAs[T](other: => Option[T]): Matcher[Option[T]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def be: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def beAsNoneAs[T](other: => Option[T]): Matcher[Option[T]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beNone: Matcher[Option[Any]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beSome[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beSome[T : Diffable]: SomeMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def have: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def none: Matcher[Option[Any]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def not: NotMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def some[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def some[T : Diffable]: SomeMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def valueIsTypedValueCheck[T](expected: T)(implicit di: Diffable[T]): ValueCheck[T]

an expected value can be used to check another value

an expected value can be used to check another value

Attributes

Inherited from:
ValueChecksBase

Implicits

Inherited implicits

implicit def downcastBeEqualTypedValueCheck[T, S >: T](check: BeEqualTypedValueCheck[T]): ValueCheck[S]

a check of type T can be downcasted implicitly to a check of type S >: T

a check of type T can be downcasted implicitly to a check of type S >: T

Attributes

Inherited from:
ValueChecks
implicit def functionIsValueCheck[T, R : AsResult](f: T => R): ValueCheck[T]

a function returning an object having an AsResult instance can check a value

a function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecksLowImplicits
implicit def matcherIsValueCheck[T](m: Matcher[T]): ValueCheck[T]

a Matcher[T] can check a value

a Matcher[T] can check a value

Attributes

Inherited from:
ValueChecksBase
implicit def partialfunctionIsValueCheck[T, R : AsResult](f: PartialFunction[T, R]): ValueCheck[T]

a partial function returning an object having an AsResult instance can check a value

a partial function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecks
implicit def toOptionResultMatcher[T](result: MatchResult[Option[T]]): OptionResultMatcher[T]

Attributes

Inherited from:
OptionBeHaveMatchers (hidden)