package dsl
Classes and traits supporting ScalaTest's matchers DSL.
This package is released as part of the scalatest-matchers-core
module.
- Source
- package.scala
- Alphabetic
- By Inheritance
- dsl
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class BeWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
orMustMatchers
for an overview of the matchers DSL.Class
BeWord
contains anapply
method that takes aSymbol
, which uses reflection to find and access aBoolean
property and determine if it istrue
. If the symbol passed is'empty
, for example, theapply
method will use reflection to look for a public Java field named "empty", a public method named "empty", or a public method named "isEmpty". If a field, it must be of typeBoolean
. If a method, it must take no parameters and returnBoolean
. If multiple candidates are found, theapply
method will select based on the following algorithm:Field Method "is" Method Result Throws TestFailedException
, because no candidates foundisEmpty()
Invokes isEmpty()
empty()
Invokes empty()
empty()
isEmpty()
Invokes empty()
(this can occur whenBeanProperty
annotation is used)empty
Accesses field empty
empty
isEmpty()
Invokes isEmpty()
empty
empty()
Invokes empty()
empty
empty()
isEmpty()
Invokes empty()
(this can occur whenBeanProperty
annotation is used) - final class ContainWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class DefinedWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class EmptyWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class EndWithWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ExistWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class FullyMatchWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class HaveWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class IncludeWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class LengthWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class MatchPatternWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - abstract class MatcherFactory1[-SC, TC1[_]] extends AnyRef
A matcher factory that can produce a matcher given one typeclass instance.
A matcher factory that can produce a matcher given one typeclass instance.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory2[-SC, TC1[_], TC2[_]] extends AnyRef
A matcher factory that can produce a matcher given two typeclass instances.
A matcher factory that can produce a matcher given two typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory3[-SC, TC1[_], TC2[_], TC3[_]] extends AnyRef
A matcher factory that can produce a matcher given three typeclass instances.
A matcher factory that can produce a matcher given three typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory4[-SC, TC1[_], TC2[_], TC3[_], TC4[_]] extends AnyRef
A matcher factory that can produce a matcher given four typeclass instances.
A matcher factory that can produce a matcher given four typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory5[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_]] extends AnyRef
A matcher factory that can produce a matcher given five typeclass instances.
A matcher factory that can produce a matcher given five typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory6[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_]] extends AnyRef
A matcher factory that can produce a matcher given six typeclass instances.
A matcher factory that can produce a matcher given six typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory7[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_]] extends AnyRef
A matcher factory that can produce a matcher given seven typeclass instances.
A matcher factory that can produce a matcher given seven typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory8[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_]] extends AnyRef
A matcher factory that can produce a matcher given eight typeclass instances.
A matcher factory that can produce a matcher given eight typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - abstract class MatcherFactory9[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_], TC9[_]] extends AnyRef
A matcher factory that can produce a matcher given nine typeclass instances.
A matcher factory that can produce a matcher given nine typeclass instances.
In the type parameters for this class, "
SC
" means superclass; "TC
" (inTC1
,TC2
, etc.) means typeclass. This class'smatcher
factory method will produce aMatcher[T]
, whereT
is a subtype of (or the same type as)SC
, given a typeclass instance for eachTCn
implicit parameter (for example, aTC1[T]
,TC2[T]
, etc.). - trait MatcherWords extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class NoExceptionWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class NotWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class PleaseUseNoExceptionShouldSyntaxInstead extends AnyRef
- final class ReadableWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class RegexWithGroups extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfATypeInvocation[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfAWordToAMatcherApplication[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfAWordToBePropertyMatcherApplication[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfAWordToSymbolApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfAllElementsOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfAllOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfAnTypeInvocation[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfAnWordToAnMatcherApplication[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfAnWordToBePropertyMatcherApplication[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfAnWordToSymbolApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfAtLeastOneElementOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfAtLeastOneOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfAtMostOneElementOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfAtMostOneOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfBeThrownBy extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfBeWordForAType[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfBeWordForAnType[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfBeWordForNoException extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfContainWord[L] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfDefinedAt[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfGreaterThanComparison[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfGreaterThanOrEqualToComparison[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfInOrderApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfInOrderElementsOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfInOrderOnlyApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfKeyWordApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfLengthWordApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfLessThanComparison[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfLessThanOrEqualToComparison[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfMessageWordApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfNoElementsOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfNoneOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfNotExist extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfNotWordForAny[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfOfTypeInvocation[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfOneElementOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfOneOfApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfOnlyApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfRegexWordApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL.The primary constructor enables the following syntax (with a passed
scala.util.matching.Regex
):"eight" should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""".r) ^
- final class ResultOfSizeWordApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfTheSameElementsAsApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - class ResultOfTheSameElementsInOrderAsApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfTheSameInstanceAsApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfTheTypeInvocation[T] extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfThrownByApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class ResultOfValueWordApplication extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class SizeWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class SortedWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class StartWithWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL. - final class WritableWord extends AnyRef
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL.
Value Members
- object MatcherFactory1
Companion object containing an implicit method that converts a
MatcherFactory1
to aMatcher
. - object MatcherFactory2
Companion object containing an implicit method that converts a
MatcherFactory2
to aMatcher
. - object MatcherFactory3
Companion object containing an implicit method that converts a
MatcherFactory3
to aMatcher
. - object MatcherFactory4
Companion object containing an implicit method that converts a
MatcherFactory4
to aMatcher
. - object MatcherFactory5
Companion object containing an implicit method that converts a
MatcherFactory5
to aMatcher
. - object MatcherFactory6
Companion object containing an implicit method that converts a
MatcherFactory6
to aMatcher
. - object MatcherFactory7
Companion object containing an implicit method that converts a
MatcherFactory7
to aMatcher
. - object MatcherFactory8
Companion object containing an implicit method that converts a
MatcherFactory8
to aMatcher
. - object MatcherWords extends MatcherWords