org.scalatest.matchers.Matchers
This method enables the following syntax:
This method enables the following syntax, where keyEvent
is, for example, of type KeyEvent
andactionKey
refers to a BePropertyMatcher[KeyEvent]
:
This method enables the following syntax:
This method enables the following syntax, where notFileMock
is, for example, of type File
andfile
refers to a BePropertyMatcher[File]
:
This method enables the following syntax:
This method enables the following syntax, where stack
is, for example, of type Stack
andempty
refers to a BePropertyMatcher[Stack]
:
This method enables the following syntax:
This method enables the following syntax:
This method enables the following syntax, where odd
refers to
a BeMatcher[Int]
:
This method enables the following syntax:
This method enables the following syntax:
This method enables the following syntax:
This method enables the following syntax:
This method enables the following syntax:
This method enables the following syntax:
This method enables the following syntax:
This method enables the following syntax, where badBook
is, for example, of type Book
andtitle ("One Hundred Years of Solitude")
results in a HavePropertyMatcher[Book]
:
This class is part of the ScalaTest matchers DSL. Please see the documentation for
ShouldMatchers
orMustMatchers
for an overview of the matchers DSL.authors:
Bill Venners