SpecificationLike
Type members
Inherited classlikes
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
- Inherited from:
- MatchersCreation
- Inherited from:
- EitherBeHaveMatchers
Exception matcher checking the type of a thrown exception.
Exception matcher checking the type of a thrown exception.
- Inherited from:
- ExceptionBaseMatchers
This matchers matches exception instances.
This matchers matches exception instances.
- See also:
throwA
- Inherited from:
- ExceptionBaseMatchers
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
- Inherited from:
- StringBaseMatchers
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
- Inherited from:
- StringBaseMatchers
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
- Inherited from:
- StringBaseMatchers
Matcher to find if the Regex r is found inside b.
Matcher to find if the Regex r is found inside b.
- Inherited from:
- StringBaseMatchers
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
- Inherited from:
- StringBaseMatchers
This implicit allows to add tags and sections after the examples
This implicit allows to add tags and sections after the examples
- Inherited from:
- TagDsl
This implicit allows to add tags and sections after the examples
This implicit allows to add tags and sections after the examples
- Inherited from:
- TagDsl
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
- Inherited from:
- ResultImplicits
Value members
Inherited methods
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a == b after an implicit conversion
matches if a == b after an implicit conversion
- Inherited from:
- AnyBaseMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
- Inherited from:
- StringBaseMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
- Inherited from:
- StringBaseMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
- Inherited from:
- StringBaseMatchers
alias for beGreaterThanOrEqualTo
alias for beGreaterThanOrEqualTo
- Inherited from:
- NumericBaseMatchers
- Inherited from:
- BlockDsl
shorthand method to create an Arguments object
shorthand method to create an Arguments object
- Definition Classes
- ArgumentsCreation -> ArgumentsCreation
- Inherited from:
- ArgumentsCreation
apply a matcher atLeast one value
apply a matcher atLeast one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value
verify the function f for at least one value
- Inherited from:
- SequenceMatchersCreation
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
- Inherited from:
- SequenceMatchersCreation
apply a matcher atLeast one value
apply a matcher atLeast one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value
verify the function f for at least one value
- Inherited from:
- SequenceMatchersCreation
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
- Inherited from:
- SequenceMatchersCreation
- Returns:
arguments for a specification where examples must in a given batch size
- Inherited from:
- ArgumentsShortcuts
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
- Inherited from:
- AnyBaseMatchers
matches if a value is between 2 others according to an Ordering
matches if a value is between 2 others according to an Ordering
- Inherited from:
- NumericBaseMatchers
matches if target - actual < 10 pow (log actual - significantDigits)
matches if target - actual < 10 pow (log actual - significantDigits)
- Inherited from:
- NumericBaseMatchers
matches if the partial function is defined at those values
matches if the partial function is defined at those values
- Inherited from:
- MapBaseMatchers
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
- Inherited from:
- MapBaseMatchers
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
- Inherited from:
- AnyBaseMatchers
matches if b matches the pattern a
matches if b matches the pattern a
- Inherited from:
- StringBaseMatchers
matches if b matches the regular expression a
matches if b matches the regular expression a
- Inherited from:
- StringBaseMatchers
alias for the adventurous: 5 must (be[(2, 7)
[`)
alias for the adventurous: 5 must (be[(2, 7)
[`)
- Inherited from:
- NumericBaseMatchers
alias for the adventurous: 5 must (be](2, 7)
[`)
alias for the adventurous: 5 must (be](2, 7)
[`)
- Inherited from:
- NumericBaseMatchers
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a == b after an implicit conversion
matches if a == b after an implicit conversion
- Inherited from:
- AnyBaseMatchers
alias for beGreaterThanOrEqualTo
alias for beGreaterThanOrEqualTo
- Inherited from:
- NumericBaseMatchers
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
- Inherited from:
- ExpectationsCreation
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the match result
- Definition Classes
- ThrownExpectables -> ExpectationsCreation
- Inherited from:
- ThrownExpectables
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
- Inherited from:
- TraversableBaseMatchers
Additional contain methods using to avoid automatic tuple conversions
Additional contain methods using to avoid automatic tuple conversions
- 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)
- Inherited from:
- TraversableBaseMatchers
match if a traversable contains one of (t1, t2)
match if a traversable contains one of (t1, t2)
- Inherited from:
- TraversableBaseMatchers
match if traversable contains (x matches .+t+.)
match if traversable contains (x matches .+t+.)
- Inherited from:
- TraversableBaseMatchers
match if traversable contains (x matches p)
match if traversable contains (x matches p)
- Inherited from:
- TraversableBaseMatchers
does a containAll comparison in both ways
does a containAll comparison in both ways
- Inherited from:
- TraversableBaseMatchers
- Definition Classes
- MustThrownExpectationsCreation -> MustExpectationsCreation
- Inherited from:
- MustThrownExpectationsCreation
- Definition Classes
- ShouldThrownExpectables -> ShouldExpectations
- Inherited from:
- ShouldThrownExpectables
shortcut to display the differences with some specific parameters
shortcut to display the differences with some specific parameters
- Inherited from:
- ArgumentsShortcuts
- 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)
- Returns:
a matcher that will retry the nested matcher a given number of times
- Inherited from:
- EventuallyMatchers
- 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)
- Returns:
a matcher that will retry the nested matcher a given number of times
eventually(retries = 2, sleep = _ * 100.milliseconds) { aResult }
- Inherited from:
- EventuallyResults
shortcut to exclude some tagged fragments
shortcut to exclude some tagged fragments
- Inherited from:
- ArgumentsShortcuts
shortcut to add exclude trace patterns
shortcut to add exclude trace patterns
- 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
- Inherited from:
- ArgumentsShortcuts
matches if the regexp r is found inside b
matches if the regexp r is found inside b
- Inherited from:
- StringBaseMatchers
matches if the pattern p is found inside b
matches if the pattern p is found inside b
- Inherited from:
- StringBaseMatchers
matches if the regexp a is found inside b
matches if the regexp a is found inside b
- Inherited from:
- StringBaseMatchers
apply a matcher for all values
apply a matcher for all values
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, stopping after the first failure
verify the function f for all the values, stopping after the first failure
- Inherited from:
- SequenceMatchersCreation
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
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, and collect all failures
verify the function f for all the values, and collect all failures
- Inherited from:
- SequenceMatchersCreation
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
- Inherited from:
- SequenceMatchersCreation
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
- Inherited from:
- FragmentsDsl
matches if x.getClass.getInterfaces.contains(T)
matches if x.getClass.getInterfaces.contains(T)
- Inherited from:
- AnyBaseMatchers
matches if map.contains(k) forall key k
matches if map.contains(k) forall key k
- Inherited from:
- MapBaseMatchers
matches if map contains a pair (key, value) == (k, v)
matches if map contains a pair (key, value) == (k, v)
- Inherited from:
- MapBaseMatchers
matches if map contains all the specified pairs
matches if map contains all the specified pairs
- Inherited from:
- MapBaseMatchers
match if there is a way to size T
match if there is a way to size T
- Inherited from:
- TraversableBaseMatchers
match if there is a way to size T
match if there is a way to size T
- Inherited from:
- TraversableBaseMatchers
matches if c.isAssignableFrom(v.getClass.getSuperclass)
matches if c.isAssignableFrom(v.getClass.getSuperclass)
- Inherited from:
- AnyBaseMatchers
matches if map contains a pair (key, value) with value == v
matches if map contains a pair (key, value) with value == v
- Inherited from:
- MapBaseMatchers
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
- Inherited from:
- MapBaseMatchers
shortcut to include only some tagged fragments
shortcut to include only some tagged fragments
- Inherited from:
- ArgumentsShortcuts
shortcut to add include trace patterns
shortcut to add include trace patterns
- 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
- Inherited from:
- ArgumentsShortcuts
- Returns:
arguments for a specification where examples must be executed in their own specification
- Inherited from:
- ArgumentsShortcuts
modify the fragments, using the current environment
modify the fragments, using the current environment
- Inherited from:
- SpecificationStructure
modify the specification structure
modify the specification structure
- Inherited from:
- SpecificationStructure
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
- Inherited from:
- ExpectationsCreation
shortcut to execute and print only some examples
shortcut to execute and print only some examples
- Inherited from:
- ArgumentsShortcuts
shortcut to show only the text without any execution
shortcut to show only the text without any execution
- Inherited from:
- ArgumentsShortcuts
add fragments created with the s2 interpolated string
add fragments created with the s2 interpolated string
- Definition Classes
- Inherited from:
- SpecificationCreation
- Returns:
the value without any side-effects for expectations
- Definition Classes
- ThrownStandardMatchResults -> ExpectationsCreation
- Inherited from:
- ThrownStandardMatchResults
- Returns:
arguments for a specification where examples must be executed sequentially
- 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
- Inherited from:
- MatchResultStackTrace
shortcut to print only some statuses
shortcut to print only some statuses
- 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
- Inherited from:
- ArgumentsShortcuts
shortcut to skip all examples when a condition is false.
shortcut to skip all examples when a condition is false.
- Inherited from:
- ArgumentsShortcuts
shortcut to stop after the first failure or error
shortcut to stop after the first failure or error
- Inherited from:
- ArgumentsShortcuts
shortcut to stop after the first skipped result
shortcut to stop after the first skipped result
- Inherited from:
- ArgumentsShortcuts
- Returns:
a matcher checking the type of an Exception and its message (as a regexp)
- Inherited from:
- ExceptionBaseMatchers
- 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
- Inherited from:
- ValueChecksBase
shortcut to include only examples with some previous statuses
shortcut to include only examples with some previous statuses
- Inherited from:
- ArgumentsShortcuts
shortcut to print only failures and errors
shortcut to print only failures and errors
- Inherited from:
- ArgumentsShortcuts
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
Inherited fields
Implicits
Inherited implicits
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
- Inherited from:
- MatchersCreation
- Inherited from:
- EitherBeHaveMatchers
This implicit allows to add tags and sections after the examples
This implicit allows to add tags and sections after the examples
- Inherited from:
- TagDsl
This implicit allows to add tags and sections after the examples
This implicit allows to add tags and sections after the examples
- Inherited from:
- TagDsl
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
implicit definition to create delta for the beCloseTo matcher
implicit definition to create delta for the beCloseTo matcher
- Inherited from:
- NumericMatchers
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
adding a conflicting implicit to warn the user when a >>
was forgotten
adding a conflicting implicit to warn the user when a >>
was forgotten
- Inherited from:
- > result ***-e97">BlockDsl
- Definition Classes
- ShouldThrownExpectables -> ShouldExpectations
- Inherited from:
- ShouldThrownExpectables
- Inherited from:
- SpecStructureDsl
- Inherited from:
- SpecStructureDsl
implicit definition to transform any MatchResult to a Result
implicit definition to transform any MatchResult to a Result
- Inherited from:
- MatchResultImplicits
- Inherited from:
- TraversableBaseMatchersLowImplicits
describe a value with the aka method
describe a value with the aka method
- Inherited from:
- ExpectationsDescription
- Inherited from:
- S2StringContext
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
- 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
- Inherited from:
- ImplicitExecutionContextFromExecutionEnv
implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure
implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure
- Inherited from:
- MatchResultImplicits
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function, with function descriptors to a Matcher
This method transforms a function, with function descriptors to a Matcher
- Inherited from:
- MatchersCreation
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
- Inherited from:
- ValueChecksLowImplicits
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
transform a value to a zero-arg function returning that value
transform a value to a zero-arg function returning that value
- Inherited from:
- LazyParameters
This method transforms a function returning a Result to a Matcher
This method transforms a function returning a Result to a Matcher
- Inherited from:
- MatchersCreation
- Inherited from:
- TraversableBeHaveMatchers
This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher
This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher
- Inherited from:
- MatchersCreation
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
- Inherited from:
- ValueChecks
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
- Inherited from:
- ResultImplicits
implicit definition to transform a Seq of MatchResults to a Result
implicit definition to transform a Seq of MatchResults to a Result
- Inherited from:
- MatchResultImplicits
- Inherited from:
- S2StringContext
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
- Inherited from:
- StringMatchers
this allows a function returning a matcher to be used where the same function with a byname parameter is expected
this allows a function returning a matcher to be used where the same function with a byname parameter is expected
- Inherited from:
- MatchersCreation
This implicit definition allows to declare a number of times
3.times
This implicit definition allows to declare a number of times
3.times
- Inherited from:
- NumberOfTimes
- Inherited from:
- AnyBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
matcher aliases and implicits to use with be + matcher
matcher aliases and implicits to use with be + matcher
- Inherited from:
- NumericBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
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
- Inherited from:
- Results
This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher
This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher
- Inherited from:
- MatchersCreation