ResultOfCollectedAny

org.scalatest.matchers.must.Matchers.ResultOfCollectedAny
final class ResultOfCollectedAny[T](collected: Collected, xs: Iterable[T], original: Any, prettifier: Prettifier, pos: Position)

This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers for an overview of the matchers DSL.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

infix def must(rightMatcher: Matcher[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) must be (3)
       ^

Attributes

infix def must[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[T, TYPECLASS1])(implicit typeClass1: TYPECLASS1[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) must equal (3)
       ^

Attributes

infix def must[TYPECLASS1[_], TYPECLASS2[_]](rightMatcherFactory2: MatcherFactory2[T, TYPECLASS1, TYPECLASS2])(implicit typeClass1: TYPECLASS1[T], typeClass2: TYPECLASS2[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) must (equal (expected) and have length 12)
       ^

Attributes

infix def must(beWord: BeWord): ResultOfBeWordForCollectedAny[T]

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) must be theSameInstanceAs anotherObject
       ^

Attributes

infix def must(notWord: NotWord): ResultOfNotWordForCollectedAny[T]

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) must not equal (3)
       ^

Attributes

infix def must(haveWord: HaveWord): ResultOfHaveWordForCollectedExtent[T]

This method enables syntax such as the following:

This method enables syntax such as the following:

all (results) must have length (3)
      ^
all (results) must have size (3)
      ^

Attributes

infix def must[U](inv: TripleEqualsInvocation[U])(implicit constraint: CanEqual[T, U]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all (xs) must === (b)
        ^

Attributes

infix def must(inv: TripleEqualsInvocationOnSpread[T])(implicit ev: Numeric[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all (xs) must === (100 +- 1)
        ^

Attributes

infix def must(containWord: ContainWord): ResultOfContainWordForCollectedAny[T]

This method enables syntax such as the following:

This method enables syntax such as the following:

all (xs) must contain oneOf (1, 2, 3)
        ^

Attributes

infix def must(existWord: ExistWord)(implicit existence: Existence[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) must exist
       ^

Attributes

infix def must(notExist: ResultOfNotExist)(implicit existence: Existence[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) must not (exist)
       ^

Attributes

infix def must(startWithWord: StartWithWord)(implicit ev: T <:< String): ResultOfStartWithWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) must startWith regex ("Hel*o")
           ^

Attributes

infix def must(endWithWord: EndWithWord)(implicit ev: T <:< String): ResultOfEndWithWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) must endWith regex ("wo.ld")
           ^

Attributes

infix def must(includeWord: IncludeWord)(implicit ev: T <:< String): ResultOfIncludeWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) must include regex ("wo.ld")
           ^

Attributes

infix def must(fullyMatchWord: FullyMatchWord)(implicit ev: T <:< String): ResultOfFullyMatchWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) must fullyMatch regex ("""(-)?(\d+)(\.\d*)?""")
           ^

Attributes

infix def mustBe(sortedWord: SortedWord)(implicit sortable: Sortable[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe sorted
       ^

Attributes

infix def mustBe(readableWord: ReadableWord)(implicit readability: Readability[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe readable
       ^

Attributes

infix def mustBe(writableWord: WritableWord)(implicit writability: Writability[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe writable
       ^

Attributes

infix def mustBe(emptyWord: EmptyWord)(implicit emptiness: Emptiness[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe empty
       ^

Attributes

infix def mustBe(definedWord: DefinedWord)(implicit definition: Definition[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe defined
       ^

Attributes

infix def mustBe(aType: ResultOfATypeInvocation[_]): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe a [Type]
       ^

Attributes

infix def mustBe(anType: ResultOfAnTypeInvocation[_]): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe an [Type]
       ^

Attributes

infix def mustBe[R](right: R)(implicit caneq: CanEqual[T, R]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all (xs) mustBe 7
        ^

Attributes

infix def mustBe(comparison: ResultOfLessThanComparison[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(4, 5, 6) mustBe < (7)
            ^

Attributes

infix def mustBe(comparison: ResultOfLessThanOrEqualToComparison[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(4, 5, 6) mustBe <= (7)
            ^

Attributes

infix def mustBe(comparison: ResultOfGreaterThanComparison[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(8, 9, 10) mustBe > (7)
             ^

Attributes

infix def mustBe(comparison: ResultOfGreaterThanOrEqualToComparison[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(8, 9, 10) mustBe >= (7)
             ^

Attributes

infix def mustBe(beMatcher: BeMatcher[T]): Assertion

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]:

testing
all(xs) mustBe odd
       ^

Attributes

infix def mustBe(spread: Spread[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) mustBe 7.1 +- 0.2
       ^

Attributes

infix def mustBe(resultOfSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication)(implicit toAnyRef: T <:< AnyRef): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) mustBe theSameInstanceAs (anotherObject)
       ^

Attributes

infix def mustBe(o: Null)(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustBe null
       ^

Attributes

infix def mustBe[U <: T](bePropertyMatcher: BePropertyMatcher[U])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

all(xs) mustBe excellentRead
       ^

Attributes

infix def mustBe[U <: T](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:

This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:

all(xs) mustBe a (goodRead)
       ^

Attributes

infix def mustBe[U <: T](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

all(xs) mustBe an (excellentRead)
       ^

Attributes

infix def mustEqual(right: Any)(implicit equality: Equality[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all (xs) mustEqual 7
        ^

Attributes

infix def mustEqual(spread: Spread[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

result mustEqual 7.1 +- 0.2
      ^doCollected

Attributes

infix def mustEqual(right: Null)(implicit ev: T <:< AnyRef): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

result mustEqual null
      ^

Attributes

infix def mustNot[U <: T](rightMatcherX1: Matcher[U]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) mustNot (be (3))
       ^

Attributes

infix def mustNot[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[T, TYPECLASS1])(implicit typeClass1: TYPECLASS1[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) mustNot (equal (3))
       ^

Attributes

infix def mustNot(beWord: BeWord): ResultOfBeWordForCollectedAny[T]

This method enables the following syntax:

This method enables the following syntax:

all(xs) mustNot be theSameInstanceAs anotherInstance
       ^

Attributes

infix def mustNot(containWord: ContainWord): ResultOfContainWordForCollectedAny[T]

This method enables syntax such as the following:

This method enables syntax such as the following:

all (xs) mustNot contain (oneOf (1, 2, 3))
        ^

Attributes

infix def mustNot(existWord: ExistWord)(implicit existence: Existence[T]): Assertion

This method enables syntax such as the following:

This method enables syntax such as the following:

all(xs) mustNot exist
       ^

Attributes

infix def mustNot(fullyMatchWord: FullyMatchWord)(implicit ev: T <:< String): ResultOfFullyMatchWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) mustNot fullyMatch regex ("""(-)?(\d+)(\.\d*)?""")
           ^

Attributes

infix def mustNot(startWithWord: StartWithWord)(implicit ev: T <:< String): ResultOfStartWithWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) mustNot startWith regex ("Hel*o")
           ^

Attributes

infix def mustNot(endWithWord: EndWithWord)(implicit ev: T <:< String): ResultOfEndWithWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) mustNot endWith regex ("wo.ld")
           ^

Attributes

infix def mustNot(includeWord: IncludeWord)(implicit ev: T <:< String): ResultOfIncludeWordForCollectedString

This method enables syntax such as the following:

This method enables syntax such as the following:

all(string) mustNot include regex ("wo.ld")
           ^

Attributes

override def toString: String

Overrides to return pretty toString.

Overrides to return pretty toString.

Attributes

Returns

"ResultOfCollectedAny([collected], [xs])"

Definition Classes
Any