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
- 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
Attributes
- Supertypes
Attributes
- Supertypes
This trait allows to write expressions like
This trait allows to write expressions like
1 must be equalTo(1)
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait AnyMatchersobject AnyMatchers.typetrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
- Self type
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
- 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 BeTypedEqualTo matcher
ValueCheck for a typed expected value. It uses the BeTypedEqualTo 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
Attributes
- Supertypes
Attributes
- Supertypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BeMatching.type
Attributes
- Supertypes
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
Typed equality Matcher with fallback comparison results
Typed equality Matcher with fallback comparison results
Attributes
- Supertypes
-
class EqualityMatcher[T]trait AdaptableMatcher[T]trait Matcher[T]class Objecttrait Matchableclass AnyShow all
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 MatchResult.
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
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 BeEqualToclass BeTypedEqualTo[T]
- 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.typetrait Matchers1Show 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
- 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 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
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class MustExpectable[T]class ShouldExpectable[T]
- Self type
-
Expectable[T]
Factory methods for creating Expectables
Factory methods for creating Expectables
Attributes
- Companion
- class
- Supertypes
-
class 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 MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object Expectations.typetrait MatchResultCombinatorsobject MatchResultCombinators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject MatchResultLogicalCombinators.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ShouldExpectationstrait NoShouldExpectationsobject ShouldExpectations.typetrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait StoredExpectationsShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
Expectations.type
Base trait to create expectations
Base trait to create expectations
Attributes
- Supertypes
- Known subtypes
-
trait DataTablestrait Expectationsobject Expectations.typetrait MatchResultCombinatorsobject MatchResultCombinators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject MatchResultLogicalCombinators.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ShouldExpectationstrait NoShouldExpectationsobject ShouldExpectations.typetrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait StoredExpectationstrait ExpectationsDescriptionobject ExpectationsDescription.typetrait MustExpectationsobject MustExpectations.typetrait MustThrownExpectablestrait MustThrownExpectationsobject MustThrownExpectations.typetrait NoMustExpectationstrait MatcherZipOperatorsobject MatcherZipOperators.typetrait ResultImplicitsobject ResultImplicits.typetrait SequenceMatchersCreationobject SequenceMatchersCreation.typetrait ReturnsSyntaxtrait StandardMatchResultsobject StandardMatchResults.typetrait ThrownExpectationsobject ThrownExpectations.typetrait ThrownExpectablestrait ThrownStandardResultsobject TypedEqual.typeShow all
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
trait Expectationsobject Expectations.typetrait MatchResultCombinatorsobject MatchResultCombinators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject MatchResultLogicalCombinators.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ShouldExpectationstrait NoShouldExpectationsobject ShouldExpectations.typetrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait StoredExpectationsobject ExpectationsDescription.typetrait MustExpectationsobject MustExpectations.typetrait MustThrownExpectablestrait MustThrownExpectationsobject MustThrownExpectations.typetrait NoMustExpectationsShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self 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
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MatchResult[T]trait ResultLikeclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MatchFailure.type
this class allows to throw a match failure result in an Exception
this class allows to throw a match failure result in an Exception
Attributes
- Companion
- object
- Supertypes
-
trait MatchResultException[T]class FailureExceptiontrait Producttrait Equalstrait ExecuteExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MatchResult[T]trait ResultLikeclass Objecttrait Matchableclass AnyShow all
this class allows to throw a pending result in an Exception
this class allows to throw a pending result in an Exception
Attributes
- Companion
- object
- Supertypes
-
trait MatchResultException[T]class PendingExceptiontrait Producttrait Equalstrait ExecuteExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Result of a Match.
Result of a Match.
A MatchResult contains several information about a match on an expectable:
- the expectable value, to allow the chaining of matches
- a pair of messages ok message / ko message to allow the easy creation of the negation of a match
A MatchResult can be transformed to a simple Result object to be the body of an Example.
There are different kinds of MatchResults, some of them being only created to support English-like combination of Matchers:
1 must be equalTo(1) and not be equalTo(2)
In an Expectation like the one above, there is a left to right evaluation:
-
be is a NeutralMatcher, returning a NeutralMatch doing nothing yet, just storing the expectable
-
equalTo(1) is a real Matcher which is applied to the NeutralMatch MatchResult thanks to an implicit definition in the BeHaveAnyMatchers trait. This yields a MatchSuccess result
-
not creates a NotMatcher and can be and-ed with the previous MatchSuccess to yield a AndMatch(MatchSuccess, NotMatch), with NotMatch being the result of applying the NotMatcher to the expectable. This AndMatch is evaluated to create a AndNotMatch(MatchSuccess, MatchSkip)
Basically this is like forming an evaluation structure which will be resolved when the next 'real' matcher will arrive
-
the AndNotMatch get nows it be method called with the equalTo Matcher. This results in equalTo being applied to the AndNotMatch, effectively doing: MatchSuccess and MatchSkip.apply(equalTo(2).not), which is MatchSuccess and expectable.applyMatcher(equalTo(2).not) which is MatchSuccess
Attributes
- See also
-
org.specs2.matcher.BeHaveMatchersSpec for examples
- Companion
- object
- Supertypes
-
trait ResultLikeclass Objecttrait Matchableclass Any
- Known subtypes
-
class AndMatch[T]class AndNotMatch[T]class MatchFailure[T]class MatchPending[T]class MatchSkip[T]class MatchSuccess[T]class NeutralMatch[T]class NotMatch[T]class OrMatch[T]class OrNotMatch[T]Show all
Utility functions for MatchResult.
Utility functions for MatchResult.
A MatchResult is a Functor where the fmap function acts on the embedded Expectable value (which itself is a Functor)
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MatchResult.type
This trait provides logical operators to combine match results where potentially a MatchResult expression throws an Exception, either because it is an error or because it is a ThrownExpectation
This trait provides logical operators to combine match results where potentially a MatchResult expression throws an Exception, either because it is an error or because it is a ThrownExpectation
Attributes
- Companion
- object
- Supertypes
-
trait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MatchResultCombinators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Implicit conversions for MatchResults
Implicit conversions for MatchResults
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object MatchResultImplicits.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeShow all
- Self type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
MatchResultImplicits.type
Attributes
- Companion
- object
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait MatchResultCombinatorsobject MatchResultCombinators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject MatchResultLogicalCombinators.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self 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 ExpectationsCreationtrait DataTablestrait Expectationsobject Expectations.typetrait MatchResultCombinatorsobject MatchResultCombinators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject MatchResultLogicalCombinators.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ShouldExpectationstrait NoShouldExpectationsobject ShouldExpectations.typetrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait StoredExpectationstrait ExpectationsDescriptionobject ExpectationsDescription.typetrait MustExpectationsobject MustExpectations.typetrait MustThrownExpectablestrait MustThrownExpectationsobject MustThrownExpectations.typetrait NoMustExpectationstrait MatcherZipOperatorsobject MatcherZipOperators.typetrait ResultImplicitsobject ResultImplicits.typetrait SequenceMatchersCreationobject SequenceMatchersCreation.typetrait ReturnsSyntaxtrait StandardMatchResultsobject StandardMatchResults.typetrait ThrownExpectationsobject ThrownExpectations.typetrait ThrownExpectablestrait ThrownStandardResultsobject TypedEqual.typetrait NoMatchResultStackTraceShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MatchResult[T]trait ResultLikeclass Objecttrait Matchableclass AnyShow all
this class allows to throw a skipped match result in an Exception
this class allows to throw a skipped match result in an Exception
Attributes
- Companion
- object
- Supertypes
-
trait MatchResultException[T]class SkipExceptiontrait Producttrait Equalstrait ExecuteExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MatchSkipException.type
The signature of this class constructor is unusual, with a useless implicit parameter.
The signature of this class constructor is unusual, with a useless implicit parameter.
This is actually here to avoid overloading conflicts with the apply method in the companion object
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MatchResult[T]trait ResultLikeclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MatchSuccess.type
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 MatchResult object (@see MatchResult).
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 BeTypedEqualTo[T]class AlwaysMatcher[T]class BeCloseTo[T]class BeLessThan[T]class BeLessThanOrEqualTo[T]class BeNull[T]class BeOneOf[T]class BeSignificantlyCloseTo[T]class BeTheSameAs[T]class BeTrueMatcherclass BetweenMatcher[T]class ContainWithResult[T]class ContainWithResultSeq[T]class ExceptionClassMatcherclass ExceptionMatcher[E]class FindMatcherclass FindMatcherPatternclass FindMatcherRegexclass FindMatcherWithGroupsclass NeutralMatcher[T]class NeverMatcher[T]class NotMatcher[T]class LeftCheckedMatcher[T]class RightCheckedMatcher[T]class SomeCheckedMatcher[T]class TryFailureCheckedMatcher[T]class TrySuccessCheckedMatcher[T]class LeftMatcher[T]class RightMatcher[T]class SomeMatcher[T]class TryFailureMatcher[T]class TrySuccessMatcher[T]class OrderingMatcher[T]class SizedCheckedMatcher[T]class SizedMatcher[T]Show all
- Self type
-
Matcher[T]
This trait provides 'zip' operators to create matchers on tuples based on "zipped" matchers on fields
This trait provides 'zip' operators to create matchers on tuples based on "zipped" matchers on fields
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object MatcherZipOperators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeShow all
- Self type
Attributes
- Companion
- trait
- Supertypes
-
trait MatcherZipOperatorstrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
MatcherZipOperators.type
Generation code for the MatcherZipOperators trait
Generation code for the MatcherZipOperators trait
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Trait aggregating the most common specs2 matchers
Trait aggregating the most common specs2 matchers
Attributes
- Companion
- object
- Supertypes
-
trait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass 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 MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
Matchers.type
Attributes
- Supertypes
-
trait ValueChecksBasetrait ValueChecksLowImplicitstrait EventuallyMatcherstrait EventuallyResultstrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object MatchersCreation.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
MatchersCreation.type
This trait provides implicit definitions from MatchResults and Booleans to Results.
This trait provides implicit definitions from MatchResults and Booleans to Results.
It also allows to:
- create matchers from functions
- create matchers for seqs and sets from single matchers
Attributes
- Companion
- object
- Supertypes
-
trait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
MatchersImplicits.type
This kind of expectable can be followed by the verb must to apply a matcher:
This kind of expectable can be followed by the verb must to apply a matcher:
1 must beEqualTo(1)
For convenience, several mustMatcher methods have also been defined as shortcuts to equivalent:
a must matcher
Attributes
- Companion
- object
- Supertypes
- Self type
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MustExpectable.type
This trait provides implicit definitions to transform any value into a MustExpectable
This trait provides implicit definitions to transform any value into a MustExpectable
Attributes
- Companion
- object
- Supertypes
-
trait TypedEqualtrait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MustExpectations.typetrait MustMatchersobject MustMatchers.typetrait MustThrownExpectablestrait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait NoMustExpectationsShow all
Attributes
- Companion
- trait
- Supertypes
-
trait MustExpectationstrait TypedEqualtrait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
MustExpectations.type
Attributes
- Companion
- object
- Supertypes
-
trait MustExpectationstrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MustMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait MustMatcherstrait MustExpectationstrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
MustMatchers.type
Attributes
- Supertypes
-
trait StandardMatchResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait TypedEqualtrait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.type
This trait provides implicit definitions to transform any value into a MustExpectable, throwing exceptions when a match fails
This trait provides implicit definitions to transform any value into a MustExpectable, throwing exceptions when a match fails
Attributes
- Companion
- object
- Supertypes
-
trait MustThrownExpectablestrait StandardMatchResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait TypedEqualtrait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait MustThrownExpectationstrait MustThrownExpectablestrait StandardMatchResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait TypedEqualtrait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
trait ThrownExpectablestrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait MustThrownExpectationstrait MustThrownExpectablestrait StandardMatchResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object MustThrownMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait MustThrownMatcherstrait MustThrownExpectationstrait MustThrownExpectablestrait StandardMatchResultstrait StandardResultstrait ThrownExpectablestrait MustExpectationstrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
MustThrownMatchers.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MatchResult[T]trait ResultLikeclass Objecttrait Matchableclass AnyShow all
This special matcher always return a NeutralMatch MatchResult (an implicit Success)
This special matcher always return a NeutralMatch MatchResult (an implicit Success)
Attributes
- Supertypes
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
-
trait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
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
code generation for the NoMatcherZipOperatorsImplicits trait
code generation for the NoMatcherZipOperatorsImplicits trait
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
This trait can be used to remove aka and must methods on any value
This trait can be used to remove aka and must methods on any value
Attributes
- Supertypes
-
trait MustExpectationstrait TypedEqualtrait ExpectationsDescriptiontrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
This trait can be used to remove aka and should methods on any value
This trait can be used to remove aka and should methods on any value
Attributes
- Supertypes
-
trait ShouldExpectationstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
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 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
-
trait Serializabletrait Producttrait Equalstrait MatchResult[T]trait ResultLikeclass Objecttrait Matchableclass AnyShow all
This special matcher always return a NotMatch MatchResult. It will negate the next match applied to it.
This special matcher always return a NotMatch MatchResult. It will negate the next match applied to it.
Attributes
- Supertypes
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]class TrySuccessCheckedMatcher[T]
Attributes
- Supertypes
- Known subtypes
-
class LeftMatcher[T]class RightMatcher[T]class SomeMatcher[T]class TryFailureMatcher[T]class TrySuccessMatcher[T]
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
Attributes
- Supertypes
Attributes
- Supertypes
class representing a numeric range
class representing a numeric range
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
trait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject ResultImplicits.typetrait SequenceMatchersCreationobject SequenceMatchersCreation.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ResultImplicitstrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
ResultImplicits.type
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
- Known subtypes
-
object ReturnsSyntax.type
Attributes
- Companion
- trait
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ReturnsSyntaxtrait ExpectationsCreationtrait 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 trait represents any Scope that is used to enclose expectations which might be thrown
This trait represents any Scope that is used to enclose expectations which might be thrown
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
trait ResultImplicitstrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject SequenceMatchersCreation.typeShow all
- Self type
Attributes
- Companion
- trait
- Supertypes
-
trait SequenceMatchersCreationtrait ResultImplicitstrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
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
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ShouldExpectable.type
This trait provides implicit definitions to transform any value into a ShouldExpectable
This trait provides implicit definitions to transform any value into a ShouldExpectable
Attributes
- Companion
- object
- Supertypes
-
trait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait NoShouldExpectationsobject ShouldExpectations.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ShouldExpectationstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShouldExpectations.type
Attributes
- Companion
- object
- Supertypes
-
trait ShouldExpectationstrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ShouldMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait ShouldMatcherstrait ShouldExpectationstrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShouldMatchers.type
Attributes
- Supertypes
-
trait ShouldExpectationstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ThrownExpectationstrait StandardMatchResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.type
This trait provides implicit definitions to transform any value into a ShouldExpectable, throwing exceptions when a match fails
This trait provides implicit definitions to transform any value into a ShouldExpectable, throwing exceptions when a match fails
Attributes
- Companion
- object
- Supertypes
-
trait ShouldThrownExpectablestrait ShouldExpectationstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ThrownExpectationstrait StandardMatchResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait ShouldThrownExpectationstrait ShouldThrownExpectablestrait ShouldExpectationstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ThrownExpectationstrait StandardMatchResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait ShouldThrownExpectationstrait ShouldThrownExpectablestrait ShouldExpectationstrait ThrownExpectationstrait StandardMatchResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object ShouldThrownMatchers.type
Attributes
- Companion
- trait
- Supertypes
-
trait NoMatchResultStackTracetrait ShouldThrownMatcherstrait ShouldThrownExpectationstrait ShouldThrownExpectablestrait ShouldExpectationstrait ThrownExpectationstrait StandardMatchResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait Matcherstrait MatchersImplicitstrait SequenceMatchersCreationtrait MatchersCreationtrait ResultImplicitstrait MatchResultImplicitstrait MatcherZipOperatorstrait MatchResultCombinatorstrait ResultLogicalCombinatorstrait Resultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParameterstrait AnyMatcherstrait AnyBeHaveMatchersclass 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
This trait can be used in conjunction with Pattern matchers:
This trait can be used in conjunction with Pattern matchers:
List(1, 2) must be like { case List(a, b) => ok } List(1, 2) must be like { case List(a, b) => ko("unexpected") }
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
trait MustThrownExpectationsobject MustThrownExpectations.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject StandardMatchResults.typetrait ThrownExpectationstrait ShouldThrownExpectablesobject ThrownExpectations.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait StandardMatchResultstrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Self type
-
StandardMatchResults.type
This trait evaluates expectations and stores them in a local variable for further usage
This trait evaluates expectations and stores them in a local variable for further usage
Attributes
- Supertypes
-
trait StoredResultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait StoredExpectations
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
-
trait 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
- Known subtypes
-
trait ThrownExpectationstrait ShouldThrownExpectablestrait 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 checkFailure[T](m: =>MatchResult[T]) = { m match { case f @ MatchFailure(ok, ko, _, _, _) => throw new TestFailedException(f.message, f.exception, 0) case _ => () } m } }
Attributes
- Companion
- object
- Supertypes
-
trait StandardMatchResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ThrownExpectationstrait StandardMatchResultstrait ThrownStandardResultstrait StandardResultstrait ThrownExpectablestrait ExpectationsCreationtrait 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 MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ThrownExpectationstrait ShouldThrownExpectablestrait 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 StandardMatchResultstrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ThrownExpectationstrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Attributes
- Supertypes
-
trait ExpectationsCreationtrait MatchResultStackTracetrait StandardResultsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ThrownExpectationstrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject ThrownExpectations.typeShow all
Matchers for traversables
Matchers for traversables
Attributes
- Companion
- object
- Supertypes
-
trait NumberOfTimestrait ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParametersclass 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 ImplicitParameterstrait ValueChecksLowImplicitstrait LazyParametersclass 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
- 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 TryMatchers.typeShow all
Attributes
- Companion
- trait
- Supertypes
- Self type
-
TryMatchers.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
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 MatchResultCombinatorsobject MatchResultCombinators.typetrait MatchersImplicitstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typeobject MatchersImplicits.typeobject MatchResultLogicalCombinators.typetrait NoThrownExpectationsobject ReturnsSyntax.typetrait ShouldExpectationstrait NoShouldExpectationsobject ShouldExpectations.typetrait ShouldThrownExpectablestrait ShouldThrownExpectationsobject ShouldThrownExpectations.typetrait StoredExpectationstrait MustExpectationsobject MustExpectations.typetrait MustThrownExpectablestrait MustThrownExpectationsobject MustThrownExpectations.typetrait NoMustExpectationstrait NoTypedEqualobject TypedEqual.typeShow all
- Self type
Attributes
- Companion
- trait
- Supertypes
-
trait ExpectationsCreationtrait 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
-
trait ValueCheckstrait ValueChecksBasetrait ValueChecksLowImplicitsclass Objecttrait Matchableclass AnyShow all
- 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 ValueCheck.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 Matchers1trait ValueCheckstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typetrait OperationMatchersobject OperationMatchers.typetrait OptionMatchersobject OptionMatchers.typeobject ValueCheck.typeobject ValueChecks.typeShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait ValueChecksBasetrait Matchers1trait ValueCheckstrait Matchersobject Matchers.typetrait MustMatchersobject MustMatchers.typetrait MustThrownMatchersobject MustThrownMatchers.typetrait ShouldMatchersobject ShouldMatchers.typetrait ShouldThrownMatchersobject ShouldThrownMatchers.typetrait OperationMatchersobject OperationMatchers.typetrait OptionMatchersobject OptionMatchers.typeobject ValueCheck.typeobject ValueChecks.typeShow all
Inherited classlikes
Attributes
- Inherited from:
- ReturnsSyntax
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Inherited methods
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
Attributes
- Inherited from:
- ExpectationsCreation
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
Attributes
- Inherited from:
- ExpectationsCreation
this method can be overridden to throw exceptions when checking the result
this method can be overridden to throw exceptions when checking the result
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
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 function to show the element T
- Inherited from:
- ExpectationsCreation
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
the match result without any side-effects
- Inherited from:
- ExpectationsCreation
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
Implicits
Inherited implicits
Attributes
- Inherited from:
- ReturnsSyntax