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, 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:
result should not be (7)
^
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 (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:
This method enables the following syntax:
string should not have length (12)
^
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"))
^
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:
"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.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
ShouldMatchersorMustMatchersfor an overview of the matchers DSL.