Specification
Immutable Specification class
It contains all necessary functionalities to create specifications:
- create fragments
- create expectations
Attributes
- Graph
-
- Supertypes
-
trait SpecificationLiketrait SpecificationFeaturestrait ImplicitExecutionContextstrait ImplicitExecutionContextFromExecutionEnvtrait Debugtrait PendingUntilFixedtrait ResultLogicalCombinatorstrait Resultstrait MatcherImplicitstrait ExpectedResultstrait StandardResultstrait Expectationstrait ExpectationsDescriptiontrait ShouldMatcherstrait ShouldExpectationstrait MustMatcherstrait MustExpectationstrait TypedEqualtrait Matcherstrait EventuallyMatcherstrait EventuallyResultstrait TryMatcherstrait EitherMatcherstrait OptionMatcherstrait ValueCheckstrait ValueChecksBasetrait NumericMatcherstrait ExceptionMatcherstrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait StringMatcherstrait MapMatcherstrait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait AnyMatcherstrait SpecificationCreationtrait FormattingFragmentstrait S2StringContexttrait S2StringContextCreationtrait ArgumentsShortcutstrait ArgumentsArgstrait ArgPropertiestrait ArgumentsCreationtrait AutoExamplestrait AcceptanceDsltrait ReferenceDsltrait ExampleDsltrait TitleDsltrait FragmentsDsltrait ActionDsltrait TagDsltrait ReferenceCreationtrait SpecStructureDsltrait FragmentsFactorytrait SpecificationStructureclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
An exception matcher checks if an expression throws some specified exceptions:
An exception matcher checks if an expression throws some specified exceptions:
- by checking the type of exception
- if no exception is thrown it returns a success
- if an exception is thrown with with a subtype of java.lang.Error and we expect an Exception then it is re-thrown
- if an exception is thrown with a different type it returns a failure
- by checking the exception message
- by checking a condition on the exception
Attributes
- Inherited from:
- ExceptionMatchers
- Supertypes
-
trait Matcher[Any]class Objecttrait Matchableclass Any
Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups
Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups
Attributes
- Inherited from:
- StringMatchers
- Supertypes
-
trait Matcher[String]class Objecttrait Matchableclass Any
- Known subtypes
-
class FindMatcherPatternclass FindMatcherRegex
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
Attributes
- Inherited from:
- StringMatchers
- Supertypes
- Known subtypes
-
class FindMatcherRegex
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
Attributes
- Inherited from:
- StringMatchers
- Supertypes
Matcher to find if the Regex r is found inside b.
Matcher to find if the Regex r is found inside b.
Attributes
- Inherited from:
- StringMatchers
- Supertypes
-
class FindMatcherPatternclass FindMatchertrait Matcher[String]class Objecttrait Matchableclass AnyShow all
Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected
Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected
Attributes
- Inherited from:
- StringMatchers
- Supertypes
-
trait Matcher[String]class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Inherited from:
- ResultLogicalCombinators
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- FragmentsDsl
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_ToFragments_Fragment.typeobject given_ToFragments_Fragments.typeobject given_ToFragments_Seq.typeobject given_ToFragments_String.type
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_ToSpecStructure_Arguments_Arguments.typeobject given_ToSpecStructure_Arguments_Fragment.typeobject given_ToSpecStructure_Arguments_Fragments.typeobject given_ToSpecStructure_Arguments_SpecHeader.typeobject given_ToSpecStructure_Arguments_SpecStructure.typeobject given_ToSpecStructure_Arguments_String.typeobject given_ToSpecStructure_Fragment_Arguments.typeobject given_ToSpecStructure_Fragment_Fragment.typeobject given_ToSpecStructure_Fragment_Fragments.typeobject given_ToSpecStructure_Fragment_SpecStructure.typeobject given_ToSpecStructure_Fragment_String.typeobject given_ToSpecStructure_Fragments_Fragment.typeobject given_ToSpecStructure_Fragments_Fragments.typeobject given_ToSpecStructure_Fragments_String.typeobject given_ToSpecStructure_SpecHeader_Arguments.typeobject given_ToSpecStructure_SpecHeader_Fragment.typeobject given_ToSpecStructure_SpecHeader_Fragments.typeobject given_ToSpecStructure_SpecHeader_Seq.typeobject given_ToSpecStructure_SpecHeader_SpecStructure.typeobject given_ToSpecStructure_SpecHeader_String.typeobject given_ToSpecStructure_SpecStructure_Arguments.typeobject given_ToSpecStructure_SpecStructure_Fragment.typeobject given_ToSpecStructure_SpecStructure_Fragments.typeobject given_ToSpecStructure_SpecStructure_Seq.typeobject given_ToSpecStructure_SpecStructure_String.typeobject given_ToSpecStructure_String_Fragment.typeobject given_ToSpecStructure_String_Fragments.typeobject given_ToSpecStructure_String_SpecStructure.typeShow all
Attributes
- Inherited from:
- FragmentsDsl
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ShouldExpectations
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ShouldExpectations
- Supertypes
-
class Objecttrait Matchableclass Any
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
Attributes
- Inherited from:
- Results
- Supertypes
-
class Conversion[Boolean, Result]trait Boolean => Resultclass Objecttrait Matchableclass Any
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- S2StringContext
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- S2StringContext
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- S2StringContext
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- S2StringContext
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- FragmentsDsl
- Supertypes
Attributes
- Inherited from:
- FragmentsDsl
- Supertypes
Attributes
- Inherited from:
- FragmentsDsl
- Supertypes
Attributes
- Inherited from:
- FragmentsDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
APPENDING TO ARGUMENTS
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
APPENDING TO A FRAGMENT
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
APPENDING TO FRAGMENTS
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
APPENDING TO A SPEC STRUCTURE
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
APPENDING TO A STRING
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Attributes
- Inherited from:
- SpecStructureDsl
- Supertypes
Value members
Inherited methods
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
Attributes
- Inherited from:
- StringMatchers
matches if a != b
matches if a != b
Attributes
- Inherited from:
- AnyMatchers
alias for beLessThan
alias for beLessThan
Attributes
- Inherited from:
- NumericMatchers
alias for beLessThanOrEqualTo
alias for beLessThanOrEqualTo
Attributes
- Inherited from:
- NumericMatchers
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
Attributes
- Inherited from:
- StringMatchers
matches if a == b
matches if a == b
Attributes
- Inherited from:
- AnyMatchers
matches if a == b after an implicit conversion
matches if a == b after an implicit conversion
Attributes
- Inherited from:
- AnyMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
Attributes
- Inherited from:
- StringMatchers
alias for beGreaterThan
alias for beGreaterThan
Attributes
- Inherited from:
- NumericMatchers
alias for beGreaterThanOrEqualTo
alias for beGreaterThanOrEqualTo
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- ActionDsl
Attributes
- Inherited from:
- ExampleDsl
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
alias for beOneOf, which can be used with contain matchers
alias for beOneOf, which can be used with contain matchers
Attributes
- Inherited from:
- AnyMatchers
shorthand method to create an Arguments object
shorthand method to create an Arguments object
Attributes
- Inherited from:
- ArgumentsCreation
Attributes
- Inherited from:
- OptionMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
verify the function f for at least one value, where the PartialFunction is defined
verify the function f for at least one value, where the PartialFunction is defined
Attributes
- Inherited from:
- MatcherImplicits
Attributes
- Inherited from:
- TraversableBaseMatchers
verify the function f for at least one value, where the PartialFunction is defined
verify the function f for at least one value, where the PartialFunction is defined
Attributes
- Inherited from:
- MatcherImplicits
Attributes
- Returns
-
arguments for a specification where examples must in a given batch size
- Inherited from:
- ArgumentsShortcuts
alias for beTheSameAs
alias for beTheSameAs
Attributes
- Inherited from:
- AnyMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- AnyMatchers
alias for beOneOf
alias for beOneOf
Attributes
- Inherited from:
- AnyMatchers
Attributes
- Inherited from:
- OptionMatchers
matches if a is null when v is null and a is not null when v is not null
matches if a is null when v is null and a is not null when v is not null
Attributes
- Inherited from:
- AnyMatchers
matches if v.isAssignableFrom(c)
matches if v.isAssignableFrom(c)
Attributes
- Inherited from:
- AnyMatchers
matches if a value is between 2 others according to an Ordering
matches if a value is between 2 others according to an Ordering
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- NumericMatchers
matches if target - actual < 10 pow (log actual - significantDigits)
matches if target - actual < 10 pow (log actual - significantDigits)
Attributes
- Inherited from:
- NumericMatchers
matches if actual = n +/- delta
matches if actual = n +/- delta
Attributes
- Inherited from:
- NumericMatchers
matches if actual = n +/- delta
matches if actual = n +/- delta
Attributes
- Inherited from:
- NumericMatchers
matches if the partial function is defined at those values
matches if the partial function is defined at those values
Attributes
- Inherited from:
- MapMatchers
matches if the partial function is defined at those values and return expected values
matches if the partial function is defined at those values and return expected values
Attributes
- Inherited from:
- MapMatchers
matches if a.isEmpty
matches if a.isEmpty
Attributes
- Inherited from:
- AnyMatchers
matches if a == b
matches if a == b
Attributes
- Inherited from:
- AnyMatchers
check if a Throwable has a specific class and error message The message must be a regular expression, for example (new IllegalArgumentException("incorrect arguments"): Throwable) must beExceptionIllegalArgumentException
check if a Throwable has a specific class and error message The message must be a regular expression, for example (new IllegalArgumentException("incorrect arguments"): Throwable) must beExceptionIllegalArgumentException
Attributes
- Inherited from:
- ExceptionMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
matches if a == false
matches if a == false
Attributes
- Inherited from:
- AnyMatchers
matches if actual > n
matches if actual > n
Attributes
- Inherited from:
- NumericMatchers
matches if actual >= n
matches if actual >= n
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Inherited from:
- EitherMatchers
matches if actual < n
matches if actual < n
Attributes
- Inherited from:
- NumericMatchers
matches if actual <= n
matches if actual <= n
Attributes
- Inherited from:
- NumericMatchers
matches if the value returns a successful result when applied to a PartialFunction
matches if the value returns a successful result when applied to a PartialFunction
Attributes
- Inherited from:
- AnyMatchers
matches if b matches the regular expression a
matches if b matches the regular expression a
Attributes
- Inherited from:
- StringMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
Attributes
- Inherited from:
- StringMatchers
Attributes
- Inherited from:
- OptionMatchers
matches if the value is null
matches if the value is null
Attributes
- Inherited from:
- AnyMatchers
matches if t.toSeq.exists(_ == v)
matches if t.toSeq.exists(_ == v)
Attributes
- Inherited from:
- AnyMatchers
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Inherited from:
- OptionMatchers
Attributes
- Inherited from:
- OptionMatchers
Attributes
- Returns
-
a matcher checking if the elements are ordered
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
matches if a eq b
matches if a eq b
Attributes
- Inherited from:
- AnyMatchers
matches if a == true
matches if a == true
Attributes
- Inherited from:
- AnyMatchers
matches if a != b
matches if a != b
Attributes
- Inherited from:
- AnyMatchers
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
Attributes
- Inherited from:
- StringMatchers
alias for beLessThan
alias for beLessThan
Attributes
- Inherited from:
- NumericMatchers
alias for beLessThanOrEqualTo
alias for beLessThanOrEqualTo
Attributes
- Inherited from:
- NumericMatchers
matches if a == b
matches if a == b
Attributes
- Inherited from:
- AnyMatchers
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
Attributes
- Inherited from:
- StringMatchers
matches if a == b after an implicit conversion
matches if a == b after an implicit conversion
Attributes
- Inherited from:
- AnyMatchers
alias for beGreaterThan
alias for beGreaterThan
Attributes
- Inherited from:
- NumericMatchers
alias for beGreaterThanOrEqualTo
alias for beGreaterThanOrEqualTo
Attributes
- Inherited from:
- NumericMatchers
alias for beCloseTo
alias for beCloseTo
Attributes
- Inherited from:
- NumericMatchers
alias for beCloseTo
alias for beCloseTo
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- FormattingFragments
Attributes
- Inherited from:
- FormattingFragments
Attributes
- Inherited from:
- FormattingFragments
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
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- NumericMatchers
shortcut to set new Colors
shortcut to set new Colors
Attributes
- Inherited from:
- ArgumentsShortcuts
matches if (b contains a)
matches if (b contains a)
Attributes
- Inherited from:
- StringMatchers
matches if (b contains a)
matches if (b contains a)
Attributes
- Inherited from:
- StringMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Additional contain methods using to avoid automatic tuple conversions
Additional contain methods using to avoid automatic tuple conversions
Attributes
- Inherited from:
- TraversableBaseMatchers
COLLECTION MATCHERS
COLLECTION MATCHERS
Attributes
- Inherited from:
- TraversableBaseMatchers
ELEMENTS MATCHERS
ELEMENTS MATCHERS
Attributes
- Inherited from:
- TraversableBaseMatchers
match if a traversable contains all the elements of seq (and maybe more)
match if a traversable contains all the elements of seq (and maybe more)
Attributes
- Inherited from:
- TraversableBaseMatchers
match if a traversable contains one of (t1, t2)
match if a traversable contains one of (t1, t2)
Attributes
- Inherited from:
- TraversableBaseMatchers
match if traversable contains (x matches .+t+.)
match if traversable contains (x matches .+t+.)
Attributes
- Inherited from:
- TraversableBaseMatchers
match if traversable contains (x matches p)
match if traversable contains (x matches p)
Attributes
- Inherited from:
- TraversableBaseMatchers
does a containAll comparison in both ways
does a containAll comparison in both ways
Attributes
- Inherited from:
- TraversableBaseMatchers
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
Attributes
- Inherited from:
- SpecificationStructure
shortcut to display the differences with some specific parameters
shortcut to display the differences with some specific parameters
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- AutoExamples
matches if b.endsWith(a)
matches if b.endsWith(a)
Attributes
- Inherited from:
- StringMatchers
matches if a == b
matches if a == b
Attributes
- Inherited from:
- AnyMatchers
Attributes
- Returns
-
a matcher that will retry the nested matcher 40 times
- Inherited from:
- EventuallyMatchers
Attributes
- Returns
-
a matcher that will retry the nested matcher a given number of times
- Inherited from:
- EventuallyMatchers
Value parameters
- sleep
-
the function applied on the retry number (first is 1)
Attributes
- Returns
-
a matcher that will retry the nested matcher a given number of times
- Inherited from:
- EventuallyMatchers
Attributes
- Returns
-
a result that is retried at least 40 times until it's ok
- Inherited from:
- EventuallyResults
Attributes
- Returns
-
a matcher that will retry the nested matcher a given number of times
- Inherited from:
- EventuallyResults
Value parameters
- sleep
-
the function applied on the retry number (first is 1)
Attributes
- Returns
-
a matcher that will retry the nested matcher a given number of times
eventually(retries = 2, sleep = _ * 100.milliseconds) { aResult }
- Inherited from:
- EventuallyResults
Attributes
- Inherited from:
- TraversableBaseMatchers
shortcut to exclude some tagged fragments
shortcut to exclude some tagged fragments
Attributes
- Inherited from:
- ArgumentsShortcuts
shortcut to add exclude trace patterns
shortcut to add exclude trace patterns
Attributes
- Inherited from:
- ArgumentsShortcuts
shortcut to create a stackTrace filter to exclude only some elements
shortcut to create a stackTrace filter to exclude only some elements
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
matches if the regexp r is found inside b
matches if the regexp r is found inside b
Attributes
- Inherited from:
- StringMatchers
matches if the pattern p is found inside b
matches if the pattern p is found inside b
Attributes
- Inherited from:
- StringMatchers
matches if the regexp a is found inside b
matches if the regexp a is found inside b
Attributes
- Inherited from:
- StringMatchers
modify the fragments
verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined
verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined
Attributes
- Inherited from:
- MatcherImplicits
Attributes
- Inherited from:
- MatcherImplicits
verify the function f for all the values, and collect all failures
verify the function f for all the values, and collect all failures
Attributes
- Inherited from:
- MatcherImplicits
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
Attributes
- Inherited from:
- MatcherImplicits
Attributes
- Inherited from:
- FragmentsFactory
create a block of new fragments where each of them is separated by a newline and there is a specific offset from the left margin
create a block of new fragments where each of them is separated by a newline and there is a specific offset from the left margin
Attributes
- Inherited from:
- FragmentsDsl
shortcut to filter nothing
shortcut to filter nothing
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- NumericMatchers
matches if v.getClass == c
matches if v.getClass == c
Attributes
- Inherited from:
- AnyMatchers
matches if x.getClass.getInterfaces.contains(T)
matches if x.getClass.getInterfaces.contains(T)
Attributes
- Inherited from:
- AnyMatchers
matches if map.contains(k)
matches if map.contains(k)
Attributes
- Inherited from:
- MapMatchers
matches if map.contains(k) forall key k
matches if map.contains(k) forall key k
Attributes
- Inherited from:
- MapMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
matches if map contains a pair (key, value) == (k, v)
matches if map contains a pair (key, value) == (k, v)
Attributes
- Inherited from:
- MapMatchers
matches if map contains all the specified pairs
matches if map contains all the specified pairs
Attributes
- Inherited from:
- MapMatchers
match if there is a way to size T
match if there is a way to size T
Attributes
- Inherited from:
- TraversableBaseMatchers
match if there is a way to size T
match if there is a way to size T
Attributes
- Inherited from:
- TraversableBaseMatchers
matches if c.isAssignableFrom(v.getClass.getSuperclass)
matches if c.isAssignableFrom(v.getClass.getSuperclass)
Attributes
- Inherited from:
- AnyMatchers
matches if map contains a pair (key, value) with value == v
matches if map contains a pair (key, value) with value == v
Attributes
- Inherited from:
- MapMatchers
matches if map contains a pair (key, value) with value == v for all value v
matches if map contains a pair (key, value) with value == v for all value v
Attributes
- Inherited from:
- MapMatchers
shortcut to include only some tagged fragments
shortcut to include only some tagged fragments
Attributes
- Inherited from:
- ArgumentsShortcuts
shortcut to add include trace patterns
shortcut to add include trace patterns
Attributes
- Inherited from:
- ArgumentsShortcuts
shortcut to create a stackTrace filter to include only some elements
shortcut to create a stackTrace filter to include only some elements
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- SpecificationStructure
Attributes
- Inherited from:
- ExpectedResults
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Inherited from:
- EitherMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- NumericMatchers
matches if actual <= n
matches if actual <= n
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- ReferenceCreation
Attributes
- Inherited from:
- ReferenceCreation
modify the fragments
modify the specification structure
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
alias to use with contain
alias to use with contain
Attributes
- Inherited from:
- StringMatchers
Attributes
- Inherited from:
- Results
Attributes
- Inherited from:
- Results
shortcut to avoid colored output
shortcut to avoid colored output
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- OptionMatchers
negate a matcher
negate a matcher
Attributes
- Inherited from:
- AnyMatchers
Attributes
- Inherited from:
- ExpectedResults
shortcut to execute and print only some examples
shortcut to execute and print only some examples
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- FormattingFragments
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Returns
-
Pending unless the result of the execution is a success
- Inherited from:
- PendingUntilFixed
shortcut to show only the text without any execution
shortcut to show only the text without any execution
Attributes
- Inherited from:
- ArgumentsShortcuts
this function is introduced just to allow the mutable specification to register the newly created fragments
this function is introduced just to allow the mutable specification to register the newly created fragments
Attributes
- Inherited from:
- AutoExamples
this function is exposed so that it can be overridden with side-effects when using s2 strings in mutable specs
this function is exposed so that it can be overridden with side-effects when using s2 strings in mutable specs
Attributes
- Inherited from:
- S2StringContextCreation
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Inherited from:
- EitherMatchers
Attributes
- Returns
-
the result without any side-effects
- Inherited from:
- ResultChecks
Attributes
- Inherited from:
- ReferenceCreation
Attributes
- Inherited from:
- ReferenceCreation
Attributes
- Returns
-
arguments for a specification where examples must be executed sequentially
- Inherited from:
- ArgumentsShortcuts
Attributes
- Returns
-
arguments for a specification where examples must be executed sequentially but in a random order
- Inherited from:
- ArgumentsShortcuts
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
shortcut to print only some statuses
shortcut to print only some statuses
Attributes
- Inherited from:
- ArgumentsShortcuts
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
shortcut to skip all examples
shortcut to skip all examples
Attributes
- Inherited from:
- ArgumentsShortcuts
shortcut to skip all examples when a condition is true. if the condition throws an exception, its stacktrace is not printed and all the examples are skipped
shortcut to skip all examples when a condition is true. if the condition throws an exception, its stacktrace is not printed and all the examples are skipped
Attributes
- Inherited from:
- ArgumentsShortcuts
shortcut to skip all examples when a condition is false.
shortcut to skip all examples when a condition is false.
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- OptionMatchers
Attributes
- Inherited from:
- OptionMatchers
Attributes
- Inherited from:
- OptionMatchers
alias for beSorted
alias for beSorted
Attributes
- Inherited from:
- TraversableBaseMatchers
matches if b.startsWith(a)
matches if b.startsWith(a)
Attributes
- Inherited from:
- StringMatchers
Attributes
- Inherited from:
- ActionDsl
Attributes
- Inherited from:
- ActionDsl
shortcut to stop after the first failure or error
shortcut to stop after the first failure or error
Attributes
- Inherited from:
- ArgumentsShortcuts
shortcut to stop after the first skipped result
shortcut to stop after the first skipped result
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- SpecificationStructure
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- TryMatchers
Attributes
- Inherited from:
- FormattingFragments
Attributes
- Inherited from:
- FormattingFragments
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
a matcher checking the value of an Exception
- Inherited from:
- ExceptionMatchers
Attributes
- Returns
-
a matcher checking the type of an Exception and its message (as a regexp)
- Inherited from:
- ExceptionMatchers
Attributes
- Returns
-
a matcher checking the type of an Exception
- Inherited from:
- ExceptionMatchers
alias for throwA
alias for throwA
Attributes
- Inherited from:
- ExceptionMatchers
alias for throwA
alias for throwA
Attributes
- Inherited from:
- ExceptionMatchers
alias for throwA
alias for throwA
Attributes
- Inherited from:
- ExceptionMatchers
Attributes
- Inherited from:
- TitleDsl
Attributes
- Inherited from:
- Results
Attributes
- Inherited from:
- StandardResults
Attributes
- Returns
-
arguments for a specification where examples must be executed inside just one big batch
- Inherited from:
- ArgumentsShortcuts
an expected value can be used to check another value
an expected value can be used to check another value
Attributes
- Inherited from:
- ValueChecksBase
shortcut to include only examples with some previous statuses
shortcut to include only examples with some previous statuses
Attributes
- Inherited from:
- ArgumentsShortcuts
Attributes
- Inherited from:
- StandardResults
shortcut to print only failures and errors
shortcut to print only failures and errors
Attributes
- Inherited from:
- ArgumentsShortcuts
alias for beCloseTo
alias for beCloseTo
Attributes
- Inherited from:
- NumericMatchers
alias for beCloseTo
alias for beCloseTo
Attributes
- Inherited from:
- NumericMatchers
Givens
Inherited givens
Attributes
- Inherited from:
- Debug
a check of type T can be downcasted implicitly to a check of type S >: T
a check of type T can be downcasted implicitly to a check of type S >: T
Attributes
- Inherited from:
- ValueChecks
if an implicit execution environment is in scope, it can be used as an execution context
if an implicit execution environment is in scope, it can be used as an execution context
Attributes
- Inherited from:
- ImplicitExecutionContextFromExecutionEnv
a function returning an object having an AsResult instance can check a value
a function returning an object having an AsResult instance can check a value
Attributes
- Inherited from:
- ValueChecksLowImplicits
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
Attributes
- Inherited from:
- Results
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- S2StringContext
implicit definition to create delta for the beCloseTo matcher
implicit definition to create delta for the beCloseTo matcher
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- S2StringContext
Attributes
- Inherited from:
- S2StringContext
Attributes
- Inherited from:
- S2StringContext
Attributes
- Inherited from:
- SpecStructureDsl
The FragmentFactory has to be passed as an implicit in order to be inlined in macros
The FragmentFactory has to be passed as an implicit in order to be inlined in macros
Attributes
- Inherited from:
- S2StringContextCreation
Attributes
- Inherited from:
- FragmentsDsl
Attributes
- Inherited from:
- FragmentsDsl
Attributes
- Inherited from:
- FragmentsDsl
Attributes
- Inherited from:
- FragmentsDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
APPENDING TO ARGUMENTS
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
APPENDING TO A FRAGMENT
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
APPENDING TO FRAGMENTS
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
APPENDING TO A SPEC HEADER
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
APPENDING TO A SPEC STRUCTURE
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
APPENDING TO A STRING
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
a Matcher[T] can check a value
a Matcher[T] can check a value
Attributes
- Inherited from:
- ValueChecksBase
Attributes
- Inherited from:
- TraversableBaseMatchersLowImplicits (hidden)
a partial function returning an object having an AsResult instance can check a value
a partial function returning an object having an AsResult instance can check a value
Attributes
- Inherited from:
- ValueChecks
Attributes
- Inherited from:
- TraversableBaseMatchersLowImplicits (hidden)
Extensions
Inherited extensions
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ReferenceDsl
Attributes
- Inherited from:
- ExampleDsl
Attributes
- Inherited from:
- ExampleDsl
Attributes
- Inherited from:
- ExampleDsl
Attributes
- Inherited from:
- ExampleDsl
Attributes
- Inherited from:
- ExpectationsDescription
Attributes
- Inherited from:
- ExpectationsDescription
this extension provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
this extension provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
Attributes
- Inherited from:
- MatcherImplicits
Attributes
- Inherited from:
- FragmentsDsl
Attributes
- Inherited from:
- FragmentsDsl
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
Attributes
- Inherited from:
- StringMatchers
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
Attributes
- Inherited from:
- StringMatchers
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
Attributes
- Inherited from:
- StringMatchers
This implicit definition allows to declare a number of times 3.times
This implicit definition allows to declare a number of times 3.times
Attributes
- Inherited from:
- NumberOfTimes
Attributes
- Inherited from:
- TitleDsl
String interpolation for specs2 fragments
! equality matcher on Expectables
! equality matcher on Expectables
Attributes
- Inherited from:
- TypedEqual
equality matcher on Expectables
equality matcher on Expectables
Attributes
- Inherited from:
- TypedEqual
print the object to the console with a small message before
print the object to the console with a small message before
Attributes
- Inherited from:
- Debug
print the object to the console with a specific function and return it
print the object to the console with a specific function and return it
Attributes
- Inherited from:
- Debug
print the object to the console and return it, if the condition is satisfied
print the object to the console and return it, if the condition is satisfied
Attributes
- Inherited from:
- Debug
print the object to the console and return it, if the condition is satisfied
print the object to the console and return it, if the condition is satisfied
Attributes
- Inherited from:
- Debug
print the object to the console and return it
print the object to the console and return it
Attributes
- Inherited from:
- Debug
Attributes
- Returns
-
Pending unless the result is a success
- Inherited from:
- PendingUntilFixed
Attributes
- Returns
-
Pending unless the result is a success
- Inherited from:
- PendingUntilFixed
Attributes
- Inherited from:
- SpecStructureDsl
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Inherited from:
- MustExpectations
Attributes
- Inherited from:
- MustExpectations
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
Attributes
- Inherited from:
- NumericMatchers
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
Attributes
- Inherited from:
- NumericMatchers
Attributes
- Returns
-
an expectable with an alias description
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with its toString method as an alias description this is useful to preserve the original value when the matcher using it is adapting the value
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with an alias description, after the value string
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with an alias description, after the value string
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with a function to show the element T
- Inherited from:
- ExpectationsDescription
Attributes
- Returns
-
an expectable with a function to show the element T
- Inherited from:
- ExpectationsDescription
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Extend collections to check all their elements
Extend collections to check all their elements
Attributes
- Inherited from:
- MatcherImplicits
Implicits
Inherited implicits
Attributes
- Inherited from:
- FragmentsDsl
Attributes
- Inherited from:
- SpecStructureDsl
create an example based on an execution
Attributes
- Inherited from:
- S2StringContext1 (hidden)
Attributes
- Inherited from:
- ResultLogicalCombinators
Attributes
- Inherited from:
- ResultLogicalCombinators
Attributes
- Inherited from:
- ShouldExpectations
Attributes
- Inherited from:
- ShouldExpectations
Attributes
- Inherited from:
- S2StringContext1 (hidden)
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- SpecStructureDsl
Attributes
- Inherited from:
- S2StringContext1 (hidden)
Attributes
- Inherited from:
- S2StringContext
Attributes
- Inherited from:
- S2StringContext1 (hidden)
Attributes
- Inherited from:
- ArgProperties