org.scalatest.matchers.ClassicMatchers
This method enables the following syntax, where badBook
is, for example, of type Book
and
goodRead
refers to a BePropertyMatcher[Book]
:
This method enables the following syntax, where badBook
is, for example, of type Book
and
goodRead
refers to a BePropertyMatcher[Book]
:
badBook should be a (goodRead) ^
This method enables the following syntax:
This method enables the following syntax:
fileMock should be a ('file)
^
This method enables the following syntax, where badBook
is, for example, of type Book
and
excellentRead
refers to a BePropertyMatcher[Book]
:
This method enables the following syntax, where badBook
is, for example, of type Book
and
excellentRead
refers to a BePropertyMatcher[Book]
:
book should be an (excellentRead) ^
This method enables the following syntax:
This method enables the following syntax:
fruit should be an ('orange)
^
This method enables the following syntax:
This method enables the following syntax:
result should be theSameInstanceAs anotherObject ^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
ShouldMatchers
orMustMatchers
for an overview of the matchers DSL.