This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be defined ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be empty ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be writable ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be readable ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be sorted ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be (null) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be definedAt ("apple") ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will 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]
:
all(keyEvents) will 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]
:
all(xs) will 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]
:
all(xs) will not be (empty) ^
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]
:
all(xs) will not be (odd) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be > (7) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be < (7) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be >= (7) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be <= (7) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not be (7) ^
This method enables the following syntax:
This method enables the following syntax:
all(colOfMap) will not contain value (3) ^
This method enables the following syntax:
This method enables the following syntax:
all(colOfMap) will not contain key ("three") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain atMostOneElementOf List("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain atMostOneOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain inOrderElementsOf (List("one")) ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain inOrder ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain allElementsOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain allOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain inOrderOnly ("one", "two") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain only ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain theSameElementsInOrderAs ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain theSameElementsAs ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain noElementsOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain noneOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain atLeastOneElementOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain atLeastOneOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain oneElementOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain oneOf ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all (xs) will not contain ("one") ^
This method enables the following syntax:
This method enables the following syntax:
all(string) will not endWith regex ("wor.d") ^
This method enables the following syntax:
This method enables the following syntax:
all(string) will not endWith ("1.7") ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not equal (7) ^
This method enables the following syntax:
This method enables the following syntax:
all(string) will 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]
:
all(books) will not have (title ("One Hundred Years of Solitude")) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not have size (0) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) will not have length (0) ^
This method enables the following syntax:
This method enables the following syntax:
all(string) will not include ("world") ^
This method enables the following syntax:
This method enables the following syntax:
all(string) will 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:
all(string) will 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 method enables the following syntax:
This method enables the following syntax:
all(string) will not startWith ("1.7") ^
Overrides to return pretty toString.
Overrides to return pretty toString.
"ResultOfNotWordForCollectedAny([collected], [xs], [willBeTrue])"
The deprecation period for the "be ===" syntax has expired, and the syntax
will now throw NotAllowedException
. Please use will equal, will ===, willEqual,
will be, or willBe instead.
The deprecation period for the "be ===" syntax has expired, and the syntax
will now throw NotAllowedException
. Please use will equal, will ===, willEqual,
will be, or willBe instead.
Note: usually syntax will be removed after its deprecation period. This was left in because otherwise the syntax could in some cases still compile, but silently wouldn't work.
The deprecation period for the be === syntax has expired. Please use will equal, will ===, willEqual, will be, or willBe instead.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
InspectorsMatchers
for an overview of the matchers DSL.