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.
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.
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.
This class is used in conjunction with an implicit conversion to enable must
methods to
be invoked on objects of type Any
.
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.
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.
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.
This class is used in conjunction with an implicit conversion to enable withGroup
and withGroups
methods to
be invoked on Regex
s.
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.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
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.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
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.
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.
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.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
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.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
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.
This class is part of the ScalaTest matchers DSL.
This class is part of the ScalaTest matchers DSL. Please see the documentation for InspectorsMatchers
for an overview of
the matchers DSL.
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.
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.
This class is used in conjunction with an implicit conversion to enable must
methods to
be invoked on String
s.
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.
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.
This method enables the following syntax:
This method enables the following syntax:
num must (not be < (10) and not be > (17)) ^
This method enables the following syntax:
This method enables the following syntax:
num must (not be <= (10) and not be > (17)) ^
This method enables the following syntax:
This method enables the following syntax:
num must (not be > (10) and not be < (7)) ^
This method enables the following syntax:
This method enables the following syntax:
num must (not be >= (10) and not be < (7)) ^
This method enables the following syntax:
This method enables the following syntax:
a [RuntimeException] must be thrownBy { ... } ^
This field enables the following syntax:
This field enables the following syntax:
badBook must not be a ('goodRead) ^
This method enables the following syntax for String
:
This method enables the following syntax for String
:
all(str) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for java.util.Map
:
This method enables the following syntax for java.util.Map
:
all(jmap) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
all(xs) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (allElementsOf(1, 2)) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (allOf(1, 2)) ^
This method enables the following syntax:
This method enables the following syntax:
an [Exception] must be thrownBy { ... } ^
This field enables the following syntax:
This field enables the following syntax:
badBook must not be an (excellentRead) ^
This method enables the following syntax for String
:
This method enables the following syntax for String
:
atLeast(1, str) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for java.util.Map
:
This method enables the following syntax for java.util.Map
:
atLeast(1, jmap) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
atLeast(1, xs) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (atLeastOneElementOf (List(1, 2))) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (atLeastOneOf(1, 2)) ^
This method enables the following syntax for String
:
This method enables the following syntax for String
:
atMost(3, str) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for java.util.Map
:
This method enables the following syntax for java.util.Map
:
atMost(3, jmap) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
atMost(3, xs) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (atMostOneElementOf (List(1, 2))) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (atMostOneOf(1, 2)) ^
This method enables the following syntax for String
:
This method enables the following syntax for String
:
between(1, 3, str) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for java.util.Map
:
This method enables the following syntax for java.util.Map
:
between(1, 3, jmap) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
between(1, 3, xs) must fullymatch regex ("Hel*o world".r) ^
Implicitly converts an object of type T
to a AnyMustWrapper[T]
,
to enable must
methods to be invokable on that object.
Implicitly converts an object of type T
to a AnyMustWrapper[T]
,
to enable must
methods to be invokable on that object.
Implicitly converts an object of type scala.util.matching.Regex
to a RegexWrapper
,
to enable withGroup
and withGroups
methods to be invokable on that object.
Implicitly converts an object of type scala.util.matching.Regex
to a RegexWrapper
,
to enable withGroup
and withGroups
methods to be invokable on that object.
Implicitly converts an object of type java.lang.String
to a StringMustWrapper
,
to enable must
methods to be invokable on that object.
Implicitly converts an object of type java.lang.String
to a StringMustWrapper
,
to enable must
methods to be invokable on that object.
This method enables the following syntax:
This method enables the following syntax:
list must (not be definedAt (7) and not be definedAt (9)) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result must equal (null) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result must equal (100 +- 1) ^
This method enables the following syntax for String
:
This method enables the following syntax for String
:
every(str) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for java.util.Map
:
This method enables the following syntax for java.util.Map
:
every(jmap) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
every(xs) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for String
:
This method enables the following syntax for String
:
exactly(str) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for java.util.Map
:
This method enables the following syntax for java.util.Map
:
exactly(jmap) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
exactly(xs) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (inOrder(1, 2)) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (inOrderElementsOf List(1, 2)) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (inOrderOnly(1, 2)) ^
This field enables the following syntax:
This field enables the following syntax:
map must not contain key (10) ^
This method enables the following syntax:
This method enables the following syntax:
exception must not have message ("file not found") ^
This method enables the following syntax for String
:
This method enables the following syntax for String
:
no(str) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax for java.util.Map
:
This method enables the following syntax for java.util.Map
:
no(jmap) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
no(xs) must fullymatch regex ("Hel*o world".r) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (noElementsOf List(1, 2)) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (noneOf(1, 2)) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
book must have (message ("A TALE OF TWO CITIES") (of [Book]), title ("A Tale of Two Cities")) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (oneElementOf (List(1, 2))) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (oneOf(1, 2)) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (only(1, 2)) ^
This method enables the following syntax:
This method enables the following syntax:
evaluating { "hi".charAt(-1) } must produce [StringIndexOutOfBoundsException] ^
This field enables the following syntax:
This field enables the following syntax:
"eight" must not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""".r) ^
This method enables the following syntax:
This method enables the following syntax:
the [FileNotFoundException] must be thrownBy { ... } ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (theSameElementsAs(List(1, 2, 3))) ^
This method enables the following syntax:
This method enables the following syntax:
List(1, 2, 3) must contain (theSameElementsInOrderAs(List(1, 2))) ^
This field enables the following syntax:
This field enables the following syntax:
oneString must not be theSameInstanceAs (anotherString) ^
This method enables the following syntax:
This method enables the following syntax:
a [RuntimeException] must be thrownBy {...} ^
This field enables the following syntax:
This field enables the following syntax:
map must not contain value (10) ^
Companion object that facilitates the importing of
Matchers
members as an alternative to mixing it the trait. One use case is to importMatchers
members so you can use them in the Scala interpreter.