final class ResultOfCollectedAny[T] extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
- Source
- Matchers.scala
- Alphabetic
- By Inheritance
- ResultOfCollectedAny
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ResultOfCollectedAny(collected: Collected, xs: GenTraversable[T], original: Any, prettifier: Prettifier, pos: Position)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
should(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) should fullyMatch regex ("""(-)?(\d+)(\.\d*)?""") ^
-
def
should(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) should include regex ("wo.ld") ^
-
def
should(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) should endWith regex ("wo.ld") ^
-
def
should(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) should startWith regex ("Hel*o") ^
-
def
should(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) should not (exist) ^
-
def
should(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) should exist ^
-
def
should(containWord: ContainWord): ResultOfContainWordForCollectedAny[T]
This method enables syntax such as the following:
This method enables syntax such as the following:
all (xs) should contain oneOf (1, 2, 3) ^
-
def
should(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) should === (100 +- 1) ^
-
def
should[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) should === (b) ^
-
def
should(haveWord: HaveWord): ResultOfHaveWordForCollectedExtent[T]
This method enables syntax such as the following:
This method enables syntax such as the following:
all (results) should have length (3) ^ all (results) should have size (3) ^
-
def
should(notWord: NotWord): ResultOfNotWordForCollectedAny[T]
This method enables syntax such as the following:
This method enables syntax such as the following:
all(xs) should not equal (3) ^
-
def
should(beWord: BeWord): ResultOfBeWordForCollectedAny[T]
This method enables syntax such as the following:
This method enables syntax such as the following:
all(xs) should be theSameInstanceAs anotherObject ^
-
def
should[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) should (equal (expected) and have length 12) ^
-
def
should[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) should equal (3) ^
-
def
should(rightMatcher: Matcher[T]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all(xs) should be (3) ^
-
def
shouldBe[U <: T](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Assertion
This method enables the following syntax, where
excellentRead
refers to aBePropertyMatcher[Book]
:This method enables the following syntax, where
excellentRead
refers to aBePropertyMatcher[Book]
:all(xs) shouldBe an (excellentRead) ^
-
def
shouldBe[U <: T](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Assertion
This method enables the following syntax, where
goodRead
refers to aBePropertyMatcher[Book]
:This method enables the following syntax, where
goodRead
refers to aBePropertyMatcher[Book]
:all(xs) shouldBe a (goodRead) ^
-
def
shouldBe[U <: T](bePropertyMatcher: BePropertyMatcher[U])(implicit ev: <:<[T, AnyRef]): Assertion
This method enables the following syntax, where
excellentRead
refers to aBePropertyMatcher[Book]
:This method enables the following syntax, where
excellentRead
refers to aBePropertyMatcher[Book]
:all(xs) shouldBe excellentRead ^
-
def
shouldBe(o: Null)(implicit ev: <:<[T, AnyRef]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe null ^
-
def
shouldBe(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication)(implicit toAnyRef: <:<[T, AnyRef]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe an ('empty) ^
-
def
shouldBe(resultOfAWordApplication: ResultOfAWordToSymbolApplication)(implicit toAnyRef: <:<[T, AnyRef]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe a ('empty) ^
-
def
shouldBe(symbol: Symbol)(implicit toAnyRef: <:<[T, AnyRef]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe 'empty ^
-
def
shouldBe(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) shouldBe theSameInstanceAs (anotherObject) ^
-
def
shouldBe(spread: Spread[T]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all(xs) shouldBe 7.1 +- 0.2 ^
-
def
shouldBe(beMatcher: BeMatcher[T]): Assertion
This method enables the following syntax, where
odd
refers to aBeMatcher[Int]
:This method enables the following syntax, where
odd
refers to aBeMatcher[Int]
:testing all(xs) shouldBe odd ^
-
def
shouldBe(comparison: ResultOfGreaterThanOrEqualToComparison[T]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all(8, 9, 10) shouldBe >= (7) ^
-
def
shouldBe(comparison: ResultOfGreaterThanComparison[T]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all(8, 9, 10) shouldBe > (7) ^
-
def
shouldBe(comparison: ResultOfLessThanOrEqualToComparison[T]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all(4, 5, 6) shouldBe <= (7) ^
-
def
shouldBe(comparison: ResultOfLessThanComparison[T]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all(4, 5, 6) shouldBe < (7) ^
-
def
shouldBe(right: Any): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all (xs) shouldBe 7 ^
-
def
shouldBe(anType: ResultOfAnTypeInvocation[_]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe an [Type] ^
-
def
shouldBe(aType: ResultOfATypeInvocation[_]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe a [Type] ^
-
def
shouldBe(definedWord: DefinedWord)(implicit definition: Definition[T]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe defined ^
-
def
shouldBe(emptyWord: EmptyWord)(implicit emptiness: Emptiness[T]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe empty ^
-
def
shouldBe(writableWord: WritableWord)(implicit writability: Writability[T]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe writable ^
-
def
shouldBe(readableWord: ReadableWord)(implicit readability: Readability[T]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe readable ^
-
def
shouldBe(sortedWord: SortedWord)(implicit sortable: Sortable[T]): Assertion
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldBe sorted ^
-
def
shouldEqual(right: Null)(implicit ev: <:<[T, AnyRef]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldEqual null ^
-
def
shouldEqual(spread: Spread[T]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldEqual 7.1 +- 0.2 ^doCollected
-
def
shouldEqual(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) shouldEqual 7 ^
-
def
shouldNot(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) shouldNot include regex ("wo.ld") ^
-
def
shouldNot(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) shouldNot endWith regex ("wo.ld") ^
-
def
shouldNot(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) shouldNot startWith regex ("Hel*o") ^
-
def
shouldNot(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) shouldNot fullyMatch regex ("""(-)?(\d+)(\.\d*)?""") ^
-
def
shouldNot(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) shouldNot exist ^
-
def
shouldNot(containWord: ContainWord): ResultOfContainWordForCollectedAny[T]
This method enables syntax such as the following:
This method enables syntax such as the following:
all (xs) shouldNot contain (oneOf (1, 2, 3)) ^
-
def
shouldNot(beWord: BeWord): ResultOfBeWordForCollectedAny[T]
This method enables the following syntax:
This method enables the following syntax:
all(xs) shouldNot be theSameInstanceAs anotherInstance ^
-
def
shouldNot[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) shouldNot (equal (3)) ^
-
def
shouldNot[U <: T](rightMatcherX1: Matcher[U]): Assertion
This method enables syntax such as the following:
This method enables syntax such as the following:
all(xs) shouldNot (be (3)) ^
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Overrides to return pretty toString.
Overrides to return pretty toString.
- returns
"ResultOfCollectedAny([collected], [xs])"
- Definition Classes
- ResultOfCollectedAny → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )