AndBeWord

final class AndBeWord

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Concrete methods

infix def a[U](bePropertyMatcher: BePropertyMatcher[U]): Matcher[T & AnyRef & U]

This method enables the following syntax, where file is a BePropertyMatcher:

This method enables the following syntax, where file is a BePropertyMatcher:

aMatcher and be a (file)
               ^
infix def a[U](aMatcher: AMatcher[U]): Matcher[T & U]

This method enables the following syntax, where positiveNumber and validNumber are AMatcher:

This method enables the following syntax, where positiveNumber and validNumber are AMatcher:

aMatcher and be a (validNumber)
               ^
infix def an[U](bePropertyMatcher: BePropertyMatcher[U]): Matcher[T & AnyRef & U]

This method enables the following syntax, where apple is a BePropertyMatcher:

This method enables the following syntax, where apple is a BePropertyMatcher:

aMatcher and be an (apple)
               ^
infix def an[U](anMatcher: AnMatcher[U]): Matcher[T & U]

This method enables the following syntax, where integerNumber is an AnMatcher:

This method enables the following syntax, where integerNumber is an AnMatcher:

aMatcher and be an (integerNumber)
               ^
infix def definedAt[A, U <: PartialFunction[A, _]](right: A): Matcher[T & U]

This method enables the following syntax, where fraction refers to a PartialFunction:

This method enables the following syntax, where fraction refers to a PartialFunction:

aMatcher and be definedAt (8)
               ^
infix def theSameInstanceAs(anyRef: AnyRef): Matcher[T & AnyRef]

This method enables the following syntax:

This method enables the following syntax:

aMatcher and be theSameInstanceAs (string)
               ^