This method enables the following syntax:
This method enables the following syntax:
option should not be defined
^
This method enables the following syntax:
This method enables the following syntax:
list should not be empty
^
This method enables the following syntax:
This method enables the following syntax:
file should not be writable
^
This method enables the following syntax:
This method enables the following syntax:
file should not be readable
^
This method enables the following syntax:
This method enables the following syntax:
xs should not be sorted
^
This method enables the following syntax:
This method enables the following syntax:
otherString should not be theSameInstanceAs (string)
^
This method enables the following syntax, where keyEvent is, for example, of type KeyEvent and
actionKey refers to a BePropertyMatcher[KeyEvent]:
This method enables the following syntax, where keyEvent is, for example, of type KeyEvent and
actionKey refers to a BePropertyMatcher[KeyEvent]:
keyEvent should not be an (actionKey)
^
This method enables the following syntax:
This method enables the following syntax:
keyEvent should not be an ('actionKey)
^
This method enables the following syntax, where notFileMock is, for example, of type File and
file refers to a BePropertyMatcher[File]:
This method enables the following syntax, where notFileMock is, for example, of type File and
file refers to a BePropertyMatcher[File]:
notFileMock should not be a (file)
^
This method enables the following syntax:
This method enables the following syntax:
notFileMock should not be a ('file)
^
This method enables the following syntax, where stack is, for example, of type Stack and
empty refers to a BePropertyMatcher[Stack]:
This method enables the following syntax, where stack is, for example, of type Stack and
empty refers to a BePropertyMatcher[Stack]:
stack should not be (empty)
^
This method enables the following syntax:
This method enables the following syntax:
stack should not be ('empty)
^
This method enables the following syntax:
This method enables the following syntax:
map should not be (null)
^
This method enables the following syntax:
This method enables the following syntax:
partialFun should not be definedAt ("apple")
^
This method enables the following syntax:
This method enables the following syntax:
sevenDotOh should not be (6.5 +- 0.2) ^
This method enables the following syntax:
This method enables the following syntax:
result should not be a [Book]
^
This method enables the following syntax:
This method enables the following syntax:
result should not be a [Book]
^
This method enables the following syntax, where oddNumber refers to
an AnMatcher[Int]:
This method enables the following syntax, where oddNumber refers to
an AnMatcher[Int]:
2 should not be an (oddNumber)
^
This method enables the following syntax, where positiveNumber refers to
an AMatcher[Int]:
This method enables the following syntax, where positiveNumber refers to
an AMatcher[Int]:
2 should not be a (positiveNumber)
^
This method enables the following syntax, where odd refers to
a BeMatcher[Int]:
This method enables the following syntax, where odd refers to
a BeMatcher[Int]:
2 should not be (odd)
^
This method enables the following syntax:
This method enables the following syntax:
result should not be > (7)
^
This method enables the following syntax:
This method enables the following syntax:
result should not be < (7)
^
This method enables the following syntax:
This method enables the following syntax:
result should not be >= (7)
^
This method enables the following syntax:
This method enables the following syntax:
result should not be <= (7)
^
This method enables the following syntax:
This method enables the following syntax:
result should not be (7)
^
This method enables the following syntax:
This method enables the following syntax:
object should not contain ("one") ^
This method enables the following syntax:
This method enables the following syntax:
"eight" should not endWith ("1.7") ^
This method enables the following syntax:
This method enables the following syntax:
greeting should not endWith regex ("wor.d")
^
This method enables the following syntax:
This method enables the following syntax:
result should not equal null
^
This method enables the following syntax:
This method enables the following syntax:
sevenDotOh should not equal (6.5 +- 0.2) ^
This method enables the following syntax:
This method enables the following syntax:
result should not equal (7)
^
This method enables the following syntax:
This method enables the following syntax:
string should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""")
^
The regular expression passed following the regex token can be either a String
or a scala.util.matching.Regex.
This method enables the following syntax, where badBook is, for example, of type Book and
title ("One Hundred Years of Solitude") results in a HavePropertyMatcher[Book]:
This method enables the following syntax, where badBook is, for example, of type Book and
title ("One Hundred Years of Solitude") results in a HavePropertyMatcher[Book]:
book should not have (title ("One Hundred Years of Solitude"))
^
Enables parentheses to be placed around size (N) in expressions of the
form: should not have (size (N)).
Enables parentheses to be placed around length (N) in expressions of the
form: should not have (length (N)).
This method enables the following syntax:
This method enables the following syntax:
string should not include ("world")
^
This method enables the following syntax:
This method enables the following syntax:
string should not include regex ("wo.ld")
^
The regular expression passed following the regex token can be either a String
or a scala.util.matching.Regex.
This method enables the following syntax:
This method enables the following syntax:
result should not matchPattern { case Person("Bob", _) => }
^
This method enables the following syntax:
This method enables the following syntax:
"eight" should not startWith ("1.7") ^
This method enables the following syntax:
This method enables the following syntax:
string should not startWith regex ("Hel*o")
^
The regular expression passed following the regex token can be either a String
or a scala.util.matching.Regex.
Overrides toString to return pretty text.
Overrides toString to return pretty text.
The should be === syntax has been deprecated and will be removed in a future version of ScalaTest. Please use should equal, should ===, shouldEqual, should be, or shouldBe instead. Note, the reason this was deprecated was so that === would mean only one thing in ScalaTest: a customizable, type- checkable equality comparison.
The should be === syntax has been deprecated and will be removed in a future version of ScalaTest. Please use should equal, should ===, shouldEqual, should be, or shouldBe instead. Note, the reason this was deprecated was so that === would mean only one thing in ScalaTest: a customizable, type- checkable equality comparison.
This method enables the following syntax:
result should not be === (7)
^
The should be === syntax has been deprecated. Please use should equal, should ===, shouldEqual, should be, or shouldBe instead.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.