org.specs2.matcher
Members list
Packages
Type members
Classlikes
Inherit this trait to provide a Matcher where both the actual and the expected values can be adapted with a function.
Inherit this trait to provide a Matcher where both the actual and the expected values can be adapted with a function.
Attributes
- Supertypes
- Known subtypes
-
class EqualityMatcher[T]class BeEqualTo
- Self type
This matcher always matches any value of type T
This matcher always matches any value of type T
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Matcher[T]class Objecttrait Matchableclass AnyShow all
This trait provides matchers which are applicable to any type of value
This trait provides matchers which are applicable to any type of value
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object AnyMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
AnyMatchers.type
Attributes
- Supertypes
Equality Matcher
Equality Matcher
Attributes
- Supertypes
-
class EqualityMatcher[Any]trait AdaptableMatcher[Any]trait Matcher[Any]class Objecttrait Matchableclass AnyShow all
ValueCheck for a typed expected value. It uses the BeEqualTo matcher
ValueCheck for a typed expected value. It uses the BeEqualTo matcher
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ValueCheck[T]class Objecttrait Matchableclass AnyShow all
ValueCheck for an untyped expected value. It uses the BeEqualTo matcher
ValueCheck for an untyped expected value. It uses the BeEqualTo matcher
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ValueCheck[T]class Objecttrait Matchableclass AnyShow all
Matcher for a boolean value which must be true
Matcher for a boolean value which must be true
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
-
BeMatching.type
Attributes
- Supertypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Matcher[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
Attributes
- Supertypes
Matcher for a boolean value which must be true
Matcher for a boolean value which must be true
Attributes
- Supertypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Matcher[T]class Objecttrait Matchableclass AnyShow all
transient class allowing the creation of a delta
transient class allowing the creation of a delta
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DataTableRow.type
This trait provides implicit definitions and types to create DataTables.
This trait provides implicit definitions and types to create DataTables.
A DataTable has a header defining column names and rows holding values. It is possible to apply a function taking the row values and returning a Result.
A TableHeader is defined by separating the column names with '|': "a" | "b" | "c"
A DataRow is defined by separating the row values with '!': 1 ! 2 ! 3
Note that the '!' method can conflict with the creation of Examples when the value is a string. In that case it is possible to use the '!!! method to disambiguate:
"1" !! "2" ! "3"
In that case the first column of the header can also be defined with '||' for pure symmetry reasons:
"a" || "b" | "c"
"1" !! "2" ! "3"
Attributes
- See also
-
org.specs2.matcher.DataTablesSpec for examples
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DataTablesGenerator.type
Matchers for the Either datatype
Matchers for the Either datatype
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object EitherMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
EitherMatchers.type
Attributes
- Supertypes
- Known subtypes
-
class BeEqualTo
- Self type
This trait adds the possibility to retry a given matcher until it succeeds.
This trait adds the possibility to retry a given matcher until it succeeds.
This was contributed by @robey (http://robey.lag.net)
Attributes
- Companion
- object
- Supertypes
-
trait EventuallyResultsclass Objecttrait Matchableclass Any
- Known subtypes
-
object EventuallyMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
EventuallyMatchers.type
These matchers can be used to check if exceptions are thrown or not
These matchers can be used to check if exceptions are thrown or not
Attributes
- Companion
- object
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ExceptionMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
ExceptionMatchers.type
The Expectable class models anything which can be checked by applying a Matcher
The Expectable class models anything which can be checked by applying a Matcher
It stores a value which is only evaluated when necessary and an optional additional description for that value.
The Expectable object is responsible for creating its own description, based on the value toString method and and an additional description.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class ShouldExpectable[T]
- Self type
-
Expectable[T]
Factory methods for creating Expectables
Factory methods for creating Expectables
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Expectable.type
This trait provides implicit definitions to transform any value into an Expectable
This trait provides implicit definitions to transform any value into an Expectable
Attributes
- Companion
- object
- Supertypes
-
trait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
Expectations.type
Base trait to create expectations.
Base trait to create expectations.
An expectation is a value which can have an optional description and which can be matched to produce a result (for example against an expected value)
When a result is produced it can possibly be thrown as an exception based on the behaviour of the ResultChecks trait
Attributes
- Supertypes
- Known subtypes
-
trait DataTablestrait ExceptionMatchersobject ExceptionMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typetrait Expectationsobject Expectations.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ExpectationsDescriptionobject ExpectationsDescription.typetrait ExpectedResultsobject ExpectedResults.typetrait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typeobject ThrownExpectations.typetrait MatcherImplicitsobject MatcherImplicits.typetrait MustExpectationsobject MustExpectations.typetrait ReturnsSyntaxtrait ShouldExpectationsobject ShouldExpectations.typetrait ThrownExpectablestrait ThrownStandardResultsobject TypedEqual.typeShow all
Attributes
- Companion
- object
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Expectationsobject Expectations.typetrait NoThrownExpectationsobject ReturnsSyntax.typeobject ExpectationsDescription.type
Attributes
- Companion
- trait
- Supertypes
-
trait ExpectationsDescriptiontrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
This trait can be used in conjunction with Pattern matchers:
This trait can be used in conjunction with Pattern matchers:
List(1, 2) must beLike { case List(a, b) => ok } List(1, 2) must beLike { case List(a, b) => ko("unexpected") }
Attributes
- Companion
- object
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ExpectedResults.typetrait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ExpectedResultstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
ExpectedResults.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Matchers for Maps
Matchers for Maps
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object MapMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
MapMatchers.type
this trait allows to fill-in stack traces on match results for precise location
this trait allows to fill-in stack traces on match results for precise location
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait NoMatchResultStackTraceobject MustMatchers.typeobject MustThrownMatchers.typeobject ShouldMatchers.typeobject ShouldThrownMatchers.typetrait ResultCheckstrait ExpectationsCreationtrait DataTablestrait ExceptionMatchersobject ExceptionMatchers.typetrait Matchersobject Matchers.typetrait MustMatcherstrait MustThrownMatcherstrait ShouldMatcherstrait ShouldThrownMatcherstrait Expectationsobject Expectations.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ExpectationsDescriptionobject ExpectationsDescription.typetrait ExpectedResultsobject ExpectedResults.typetrait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typeobject ThrownExpectations.typetrait MatcherImplicitsobject MatcherImplicits.typetrait MustExpectationsobject MustExpectations.typetrait ReturnsSyntaxtrait ShouldExpectationsobject ShouldExpectations.typetrait ThrownExpectablestrait ThrownStandardResultsobject TypedEqual.typeShow all
The Matcher
trait is the base trait for any Matcher.
The Matcher
trait is the base trait for any Matcher.
This trait can be extended to provide an appropriate apply
method that will check an expectable value a: Expectable[T]
.
The result of a match is a Result
Matchers can be composed.
Implementation notes:
-
the parameter to the apply method must be a by-name parameter. This allows some values to be evaluated only when necessary.
-
However in the implementation of the apply function, it must be taken care of not evaluating the parameter twice. Assigning it to a val is the solution to this issue.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait AdaptableMatcher[T]class EqualityMatcher[T]class BeEqualToclass AlwaysMatcher[T]class BeCloseTo[T]class BeFalseMatcherclass BeGreaterThan[T]class BeGreaterThanOrEqualTo[T]class BeLessThan[T]class BeLessThanOrEqualTo[T]class FindMatcherclass FindMatcherPatternclass FindMatcherRegexclass FindMatcherWithGroupsclass BeNull[T]class BeOneOf[T]class BeSignificantlyCloseTo[T]class BeTheSameAs[T]class BeTrueMatcherclass BetweenMatcher[T]class ContainWithResult[T]class ContainWithResultSeq[T]class ExceptionMatcher[E]class NeverMatcher[T]class LeftCheckedMatcher[T]class RightCheckedMatcher[T]class SomeCheckedMatcher[T]class TryFailureCheckedMatcher[T]class LeftMatcher[T]class RightMatcher[T]class SomeMatcher[T]class TryFailureMatcher[T]class OrderingMatcher[T]class SizedCheckedMatcher[T]class SizedMatcher[T]class TrySuccessCheckedMatcher[T]class TrySuccessMatcher[T]Show all
- Self type
-
Matcher[T]
Attributes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Matcher.typeobject MatcherCreation.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
MatcherCreation.type
This trait adds some implicits to easily fold sequences of results
This trait adds some implicits to easily fold sequences of results
Attributes
- Companion
- object
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MatcherImplicits.type
Attributes
- Companion
- trait
- Supertypes
-
trait MatcherImplicitstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
MatcherImplicits.type
Trait aggregating the most common specs2 matchers
Trait aggregating the most common specs2 matchers
Attributes
- Companion
- object
- Supertypes
-
trait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
Matchers.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_MatchingExpression_Pattern.typeobject given_MatchingExpression_Regex.typeobject given_MatchingExpression_String.type
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MatchingExpression.type
This trait provides implicit definitions to check values with matchers by using a "must" syntax: value must matcher
This trait provides implicit definitions to check values with matchers by using a "must" syntax: value must matcher
Attributes
- Companion
- object
- Supertypes
-
trait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MustExpectations.typetrait MustMatchersobject MustMatchers.typetrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait MustExpectationstrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
MustExpectations.type
Attributes
- Companion
- object
- Supertypes
-
trait MustExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MustMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait MustMatcherstrait MustExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
MustMatchers.type
This trait provides implicit definitions to transform any value into an Expectable which throws exceptions when a match fails
This trait provides implicit definitions to transform any value into an Expectable which throws exceptions when a match fails
Attributes
- Companion
- object
- Supertypes
-
trait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait MustThrownExpectationstrait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait MustThrownExpectationstrait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MustThrownMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait MustThrownMatcherstrait MustThrownExpectationstrait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
MustThrownMatchers.type
This matcher never matches any value of type T
This matcher never matches any value of type T
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Matcher[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
this trait doesn't fill-in stack traces
this trait doesn't fill-in stack traces
Attributes
- Supertypes
- Known subtypes
-
object MustMatchers.typeobject MustThrownMatchers.typeobject ShouldMatchers.typeobject ShouldThrownMatchers.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
This trait can be used to cancel the effect of thrown expectations.
This trait can be used to cancel the effect of thrown expectations.
For example it can be mixed-in a mutable.Specification so that no exception is thrown on failure
Attributes
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
This trait can be used to suppress the TypedEqual implicit
This trait can be used to suppress the TypedEqual implicit
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Matchers for Numerical values
Matchers for Numerical values
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject NumericMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
NumericMatchers.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Matchers for Operation values
Matchers for Operation values
Attributes
- Companion
- object
- Supertypes
-
trait ValueCheckstrait ValueChecksBasetrait ValueChecksLowImplicitsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object OperationMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait OperationMatcherstrait ValueCheckstrait ValueChecksBasetrait ValueChecksLowImplicitsclass Objecttrait Matchableclass AnyShow all
- Self type
-
OperationMatchers.type
Attributes
- Supertypes
- Known subtypes
-
class LeftCheckedMatcher[T]class RightCheckedMatcher[T]class SomeCheckedMatcher[T]class TryFailureCheckedMatcher[T]
Attributes
- Supertypes
- Known subtypes
Matchers for Options
Matchers for Options
Attributes
- Companion
- object
- Supertypes
-
trait ValueCheckstrait ValueChecksBasetrait ValueChecksLowImplicitsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject OptionMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait ValueChecksLowImplicitsclass Objecttrait Matchableclass AnyShow all
- Self type
-
OptionMatchers.type
Attributes
- Supertypes
class representing a numeric range
class representing a numeric range
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
trait ExpectationsCreationtrait DataTablestrait ExceptionMatchersobject ExceptionMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typetrait Expectationsobject Expectations.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ExpectationsDescriptionobject ExpectationsDescription.typetrait ExpectedResultsobject ExpectedResults.typetrait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typeobject ThrownExpectations.typetrait MatcherImplicitsobject MatcherImplicits.typetrait MustExpectationsobject MustExpectations.typetrait ReturnsSyntaxtrait ShouldExpectationsobject ShouldExpectations.typetrait ThrownExpectablestrait ThrownStandardResultsobject TypedEqual.typeShow all
Matchers for Results
Matchers for Results
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ResultMatchers.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ResultMatchers.type
Those definitions help specifying the result messages for matchers
Those definitions help specifying the result messages for matchers
Attributes
- Companion
- object
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ReturnsSyntax.type
Attributes
- Companion
- trait
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ReturnsSyntaxtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
ReturnsSyntax.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
This kind of expectable can be followed by the verb should to apply a matcher:
This kind of expectable can be followed by the verb should to apply a matcher:
1 should beEqualTo(1)
For convenience, several shouldMatcher methods have also been defined as shortcuts to equivalent:
a should matcher
Attributes
- Companion
- object
- Supertypes
-
class Expectable[T]trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ShouldExpectable.type
This trait provides implicit definitions to check values with matchers by using a "should" syntax: value should matcher
This trait provides implicit definitions to check values with matchers by using a "should" syntax: value should matcher
Attributes
- Companion
- object
- Supertypes
-
trait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ShouldExpectations.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ShouldExpectationstrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShouldExpectations.type
Attributes
- Companion
- object
- Supertypes
-
trait ShouldExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ShouldMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait ShouldMatcherstrait ShouldExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShouldMatchers.type
This trait provides implicit definitions to transform any value into an Expectable which throws exceptions when a match fails
This trait provides implicit definitions to transform any value into an Expectable which throws exceptions when a match fails
Attributes
- Companion
- object
- Supertypes
-
trait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ShouldExpectationstrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait ShouldThrownExpectationstrait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ShouldExpectationstrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait ShouldThrownExpectationstrait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ShouldExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ShouldThrownMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait ShouldThrownMatcherstrait ShouldThrownExpectationstrait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ShouldExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShouldThrownMatchers.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The StringMatchers
trait provides matchers which are applicable to String objects
The StringMatchers
trait provides matchers which are applicable to String objects
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object BeMatching.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject StringMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
StringMatchers.type
Attributes
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Thrown expectations will throw a FailureException if a match fails
Thrown expectations will throw a FailureException if a match fails
This trait can be extended to be used in another framework like ScalaTest:
trait ScalaTestExpectations extends ThrownExpectations { override protected def checkResultFailure(r: =>Result) = { r match { case f @ Failure(ko, _, _, _) => throw new TestFailedException(f.message, f.exception, 0) case _ => () } m } }
Attributes
- Companion
- object
- Supertypes
-
trait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ThrownExpectationstrait ExpectedResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
ThrownExpectations.type
Lightweight ThrownExpectations trait with less implicit methods
Lightweight ThrownExpectations trait with less implicit methods
Attributes
- Supertypes
-
trait ThrownExpectablestrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
This trait can be used to integrate failures and skip messages into specs2
This trait can be used to integrate failures and skip messages into specs2
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
trait ExpectedResultstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Attributes
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StandardResultsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ThrownExpectationstrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait TraversableMatcherstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject TraversableMatchers.typeShow all
- Self type
Matchers for traversables
Matchers for traversables
Attributes
- Companion
- object
- Supertypes
-
trait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject TraversableMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
TraversableMatchers.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Matchers for util.Try instances
Matchers for util.Try instances
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject TryeMatchers.typeShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
TryeMatchers.type
This trait adds some implicits to create expectations with the ===
sign
This trait adds some implicits to create expectations with the ===
sign
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Expectationsobject Expectations.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait MustExpectationsobject MustExpectations.typetrait MustMatchersobject MustMatchers.typetrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait NoTypedEqualtrait ShouldExpectationsobject ShouldExpectations.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject TypedEqual.typeShow all
- Self type
Attributes
- Companion
- trait
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait TypedEqualclass Objecttrait Matchableclass AnyShow all
- Self type
-
TypedEqual.type
Common interface for checks of a value of type T:
Common interface for checks of a value of type T:
- a expected single value of type T
- a Matcher[T]
- a function returning a type R having an AsResult instance
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class BeEqualTypedValueCheck[T]class BeEqualValueCheck[T]
- Self type
-
ValueCheck[T]
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ValueCheck.type
implicit conversions used to create ValueChecks
implicit conversions used to create ValueChecks
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
trait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typetrait OperationMatchersobject OperationMatchers.typetrait OptionMatchersobject OptionMatchers.typeobject ValueChecks.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ValueCheckstrait ValueChecksBasetrait ValueChecksLowImplicitsclass Objecttrait Matchableclass AnyShow all
- Self type
-
ValueChecks.type
Attributes
- Supertypes
- Known subtypes
-
trait ValueCheckstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typetrait OperationMatchersobject OperationMatchers.typetrait OptionMatchersobject OptionMatchers.typeobject ValueChecks.typeShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait ValueChecksBasetrait ValueCheckstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typetrait OperationMatchersobject OperationMatchers.typetrait OptionMatchersobject OptionMatchers.typeobject ValueChecks.typeShow all
Value members
Inherited methods
this method can be overridden to throw exceptions when checking a result
this method can be overridden to throw exceptions when checking a result
Attributes
- Inherited from:
- ResultChecks
Attributes
- Returns
-
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a description
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a function to show the element T
- Inherited from:
- ExpectationsCreation
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
Attributes
- Inherited from:
- ResultChecks
Attributes
- Returns
-
the result without any side-effects
- Inherited from:
- ResultChecks
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
Attributes
- Inherited from:
- MatchResultStackTrace
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- ExpectationsCreation
Extensions
Inherited extensions
Attributes
- Inherited from:
- ReturnsSyntax
Attributes
- Inherited from:
- ReturnsSyntax
Attributes
- Inherited from:
- ReturnsSyntax