Spec
Lightweight specification with only 3 implicit methods
- 2 implicits to create the specification string context
- 1 implicit to create expectations with "must"
- 1 implicit to add arguments to the specification
Type members
Inherited classlikes
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
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
shorthand method to create an Arguments object
shorthand method to create an Arguments object
- Definition Classes
- ArgumentsCreation -> ArgumentsCreation
- Inherited from:
- ArgumentsCreation
- Inherited from:
- FutureBaseMatchers
- Inherited from:
- FutureBaseMatchers
- 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 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
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
matches if x.getClass.getInterfaces.contains(T)
matches if x.getClass.getInterfaces.contains(T)
- Inherited from:
- AnyBaseMatchers
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
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
- 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 fields
Implicits
Inherited implicits
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