Spec

org.specs2.Spec
abstract class Spec extends SpecLike

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

Attributes

Graph
Supertypes
trait SpecLike
trait StandardMatchResults
trait StandardResults
trait ArgumentsShortcuts
trait ArgumentsCreation
trait Matchers1
trait ValueChecksBase
trait ValueChecksLowImplicits
trait EventuallyMatchers
trait EventuallyResults
trait ExpectationsCreation
trait MatchResultStackTrace
trait ActionDsl
trait TagDsl
class Object
trait Matchable
class Any
Show all
Known subtypes
trait SpecLike
class Spec

Members list

Type members

Inherited classlikes

class ExceptionClassMatcher(klass: Class[_]) extends Matcher[Any]

Exception matcher checking the type of a thrown exception.

Exception matcher checking the type of a thrown exception.

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
Supertypes
trait Matcher[Any]
class Object
trait Matchable
class Any
class ExceptionMatcher[E <: Throwable](exception: E) extends Matcher[Any]

This matchers matches exception instances.

This matchers matches exception instances.

Attributes

See also

throwA

Inherited from:
ExceptionBaseMatchers (hidden)
Supertypes
trait Matcher[Any]
class Object
trait Matchable
class Any
class FindMatcher(t: => String) extends Matcher[String]

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:
StringBaseMatchers (hidden)
Supertypes
trait Matcher[String]
class Object
trait Matchable
class Any
Known subtypes
class FindMatcherPattern(p: Pattern) extends FindMatcher

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:
StringBaseMatchers (hidden)
Supertypes
class FindMatcher
trait Matcher[String]
class Object
trait Matchable
class Any
Known subtypes
class FindMatcherPatternWithGroups(p: Pattern, groups: String*) extends FindMatcherWithGroups

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:
StringBaseMatchers (hidden)
Supertypes
trait Matcher[String]
class Object
trait Matchable
class Any
class FindMatcherRegex(r: Regex) extends FindMatcherPattern

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:
StringBaseMatchers (hidden)
Supertypes
class FindMatcher
trait Matcher[String]
class Object
trait Matchable
class Any
Show all
class FindMatcherWithGroups(t: => String, groups: String*) extends Matcher[String]

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:
StringBaseMatchers (hidden)
Supertypes
trait Matcher[String]
class Object
trait Matchable
class Any
Known subtypes
implicit class appendToArguments(args: Arguments)

Attributes

Inherited from:
SpecStructureDsl1 (hidden)
Supertypes
class Object
trait Matchable
class Any
implicit class specificationInStringContext(sc: StringContext)

Attributes

Inherited from:
S2StringContextCreation
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def !=/(s: String): Matcher[Any]

matches if a.toLowerCase.trim != b.toLowerCase.trim

matches if a.toLowerCase.trim != b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def !==[T : Diffable](t: => T): Matcher[T]

matches if a != b

matches if a != b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def <[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

alias for beLessThan

alias for beLessThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def <=[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

alias for beLessThanOrEqualTo

alias for beLessThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def ==/(s: String): AdaptableMatcher[Any]

matches if a.toLowerCase.trim = b.toLowerCase.trim

matches if a.toLowerCase.trim = b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def ===[T : Diffable](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def ==~[T : Diffable, S](s: => S)(implicit evidence$7: Diffable[T], convert: S => T): Matcher[T]

matches if a == b after an implicit conversion

matches if a == b after an implicit conversion

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def =~(r: Regex): BeMatchingRegex

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:
StringBaseMatchers (hidden)
def =~(p: Pattern): BeMatchingPattern

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:
StringBaseMatchers (hidden)
def =~(t: => String): BeMatching

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:
StringBaseMatchers (hidden)
def >[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThan

alias for beGreaterThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def >=[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThanOrEqualTo

alias for beGreaterThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def aFailedTry[T](t: Throwable): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def aFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def aFailedTry[T]: TryFailureMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def aSuccessfulTry[T : Diffable](t: T): TrySuccessCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def aSuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def aSuccessfulTry[T]: TrySuccessMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def action(a: => Any): Fragment

Attributes

Inherited from:
ActionDsl
def allOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def anError: Error

Attributes

Inherited from:
StandardResults
def args(ex: ArgProperty[String], include: ArgProperty[String], exclude: ArgProperty[String], was: ArgProperty[String], plan: ArgProperty[Boolean], skipAll: ArgProperty[Boolean], stopOnFail: ArgProperty[Boolean], stopOnError: ArgProperty[Boolean], stopOnIssue: ArgProperty[Boolean], stopOnSkip: ArgProperty[Boolean], sequential: ArgProperty[Boolean], batchSize: ArgProperty[Int], asap: ArgProperty[Boolean], isolated: ArgProperty[Boolean], xonly: ArgProperty[Boolean], showOnly: ArgProperty[String], color: ArgProperty[Boolean]): Arguments

shorthand method to create an Arguments object

shorthand method to create an Arguments object

Attributes

Inherited from:
ArgumentsCreation
def asNoneAs[T](other: => Option[T]): Matcher[Option[T]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def atLeast[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def atMost[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def await[T](m: Matcher[T])(retries: Int, timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def await[T](m: Matcher[T])(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def awaitFor[T](m: Matcher[T])(timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def batchSize(n: Int): Arguments

Attributes

Returns

arguments for a specification where examples must in a given batch size

Inherited from:
ArgumentsShortcuts
def be[T <: AnyRef](t: => T): BeTheSameAs[T]

alias for beTheSameAs

alias for beTheSameAs

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beAFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beAFailedTry[T]: TryFailureMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beASuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beASuccessfulTry[T]: TrySuccessMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beAnInstanceOf[T : ClassTag]: Matcher[AnyRef]

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beAnyOf[T](t: T*): Matcher[T]

alias for beOneOf

alias for beOneOf

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beAsNoneAs[T](other: => Option[T]): Matcher[Option[T]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beAsNullAs[T](a: => T): Matcher[T]

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:
AnyBaseMatchers (hidden)
def beAssignableFrom[T : ClassTag]: Matcher[Class[_]]

matches if v.isAssignableFrom(c)

matches if v.isAssignableFrom(c)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beBetween[T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

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:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](target: SignificantTarget[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](target: S, figures: SignificantFigures): Matcher[S]

matches if target - actual < 10 pow (log actual - significantDigits)

matches if target - actual < 10 pow (log actual - significantDigits)

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](delta: PlusOrMinus[S]): Matcher[S]

matches if actual = n +/- delta

matches if actual = n +/- delta

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beCloseTo[S : Numeric](n: S, delta: S): Matcher[S]

matches if actual = n +/- delta

matches if actual = n +/- delta

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beEmpty[T : Sized]: Matcher[T]

matches if a.isEmpty

matches if a.isEmpty

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beEqualTo[T](t: => T): BeEqualTo

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beFailedTry[T]: TryFailureMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beFalse: Matcher[Boolean]

matches if a == false

matches if a == false

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beGreaterThan[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

matches if x > n

matches if x > n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beGreaterThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

matches if x >= n

matches if x >= n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beLeft[T](implicit p: ImplicitParam): LeftMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def beLeft[T](t: ValueCheck[T]): LeftCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def beLessThan[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

matches if x < n

matches if x < n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beLessThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

matches if x <= n

matches if x <= n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def beLike[T](pattern: PartialFunction[T, MatchResult[_]]): Matcher[T]

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:
AnyBaseMatchers (hidden)
def beMatching(a: Regex): BeMatchingRegex

matches if b matches the regex a

matches if b matches the regex a

Attributes

Inherited from:
StringBaseMatchers (hidden)
def beMatching(a: Pattern): BeMatchingPattern

matches if b matches the pattern a

matches if b matches the pattern a

Attributes

Inherited from:
StringBaseMatchers (hidden)
def beMatching(a: => String): BeMatching

matches if b matches the regular expression a

matches if b matches the regular expression a

Attributes

Inherited from:
StringBaseMatchers (hidden)
def beNone: Matcher[Option[Any]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beNull[T]: BeNull[T]

matches if the value is null

matches if the value is null

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beOneOf[T](t: T*): Matcher[T]

matches if t.toSeq.exists(_ == v)

matches if t.toSeq.exists(_ == v)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beRight[T](implicit p: ImplicitParam): RightMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def beRight[T](t: ValueCheck[T]): RightCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def beSome[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beSome[T : Diffable]: SomeMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def beSorted[T : Ordering]: OrderingMatcher[T]

Attributes

Returns

a matcher checking if the elements are ordered

Inherited from:
TraversableBaseMatchers (hidden)
def beSuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beSuccessfulTry[T]: TrySuccessMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def beTheSameAs[T <: AnyRef](t: => T): BeTheSameAs[T]

matches if a eq b

matches if a eq b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beTrue: BeTrueMatcher

matches if a == true

matches if a == true

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def beTypedEqualTo[T : Diffable](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be[[T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

alias for the adventurous: 5 must (be[(2, 7)[`)

alias for the adventurous: 5 must (be[(2, 7)[`)

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be][T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

alias for the adventurous: 5 must (be](2, 7)[`)

alias for the adventurous: 5 must (be](2, 7)[`)

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_!=[T](t: => T): Matcher[Any]

matches if a != b

matches if a != b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_!=/(a: String): Matcher[Any]

matches if a.toLowerCase.trim != b.toLowerCase.trim

matches if a.toLowerCase.trim != b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def be_!==[T : Diffable](t: => T): Matcher[T]

matches if a != b

matches if a != b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_<[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

alias for beLessThan

alias for beLessThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_<=[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

alias for beLessThanOrEqualTo

alias for beLessThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_==[T](t: => T): BeEqualTo

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_==/(a: String): AdaptableMatcher[Any]

matches if a.toLowerCase.trim = b.toLowerCase.trim

matches if a.toLowerCase.trim = b.toLowerCase.trim

Attributes

Inherited from:
StringBaseMatchers (hidden)
def be_===[T : Diffable](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_==~[T : Diffable, S](s: => S)(implicit evidence$6: Diffable[T], convert: S => T): Matcher[T]

matches if a == b after an implicit conversion

matches if a == b after an implicit conversion

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def be_>[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThan

alias for beGreaterThan

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def be_>=[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

alias for beGreaterThanOrEqualTo

alias for beGreaterThanOrEqualTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def between[T](t1: T, t2: T)(implicit convert: T => Ordered[T]): BetweenMatcher[T]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def br: Fragment

Attributes

Inherited from:
FormattingFragments
def bt(n: Int): Fragment

Attributes

Inherited from:
FormattingFragments
def bt: Fragment

Attributes

Inherited from:
FormattingFragments
protected def checkFailure[T](m: MatchResult[T]): MatchResult[T]

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
protected def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

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
protected def checkResultFailure(r: => Result): Result

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
def closeTo[S : Numeric](target: SignificantTarget[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def closeTo[S : Numeric](target: S, figures: SignificantFigures): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def closeTo[S : Numeric](delta: PlusOrMinus[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def closeTo[S : Numeric](n: S, delta: S): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def colors(c: Colors): Arguments

shortcut to set new Colors

shortcut to set new Colors

Attributes

Inherited from:
ArgumentsShortcuts
def contain(t: Char): Matcher[String]

matches if (b contains a)

matches if (b contains a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def contain(t: String): Matcher[String]

matches if (b contains a)

matches if (b contains a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T], t22: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T]): ContainWithResultSeq[T]

Additional contain methods using to avoid automatic tuple conversions

Additional contain methods using to avoid automatic tuple conversions

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](cm: ContainWithResultSeq[T]): ContainWithResultSeq[T]

COLLECTION MATCHERS

COLLECTION MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](check: ValueCheck[T]): ContainWithResult[T]

ELEMENTS MATCHERS

ELEMENTS MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containAllOf[T : Diffable](seq: Seq[T]): ContainWithResultSeq[T]

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 (hidden)
def containAnyOf[T](seq: Seq[T]): ContainWithResult[T]

match if a traversable contains one of (t1, t2)

match if a traversable contains one of (t1, t2)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containMatch[T](t: => String): Matcher[Iterable[T]]

match if traversable contains (x matches .+t+.)

match if traversable contains (x matches .+t+.)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containPattern[T](t: => String): Matcher[Iterable[T]]

match if traversable contains (x matches p)

match if traversable contains (x matches p)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containTheSameElementsAs[T](seq: Seq[T], equality: (T, T) => Boolean): Matcher[Iterable[T]]

does a containAll comparison in both ways

does a containAll comparison in both ways

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
protected def createMustExpectable[T](t: => T): MustExpectable[T]

Attributes

Inherited from:
MustExpectationsCreation (hidden)

Attributes

Inherited from:
SpecificationStructure
def diffs(show: Boolean, separators: String, triggerSize: Int, diffRatio: Int, shortenSize: Int, full: Boolean, seqTriggerSize: Int, seqMaxSize: Int): Arguments

shortcut to display the differences with some specific parameters

shortcut to display the differences with some specific parameters

Attributes

Inherited from:
ArgumentsShortcuts
def done: Success

Attributes

Inherited from:
StandardResults
def eachOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def end: Fragment

Attributes

Inherited from:
FormattingFragments
def endWith(t: => String): Matcher[String]

matches if b.endsWith(a)

matches if b.endsWith(a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def equalTo[T](t: => T): BeEqualTo

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def eventually[T](nested: => Matcher[T]): Matcher[T]

Attributes

Returns

a matcher that will retry the nested matcher 40 times

Inherited from:
EventuallyMatchers
def eventually[T](nested: => Matcher[T], retries: Int, sleep: Duration): Matcher[T]

Attributes

Returns

a matcher that will retry the nested matcher a given number of times

Inherited from:
EventuallyMatchers
def eventually[T](nested: => Matcher[T], retries: Int, sleep: Int => Duration): Matcher[T]

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
def eventually[T : AsResult](result: => T): T

Attributes

Returns

a result that is retried at least 40 times until it's ok

Inherited from:
EventuallyResults
def eventually[T : AsResult](retries: Int, sleep: Duration)(result: => T): T

Attributes

Returns

a matcher that will retry the nested matcher a given number of times

Inherited from:
EventuallyResults
def eventually[T : AsResult](retries: Int, sleep: Int => Duration)(result: => T): T

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
def exactly[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def exclude(tags: String): Arguments

shortcut to exclude some tagged fragments

shortcut to exclude some tagged fragments

Attributes

Inherited from:
ArgumentsShortcuts
def excludeAlsoTrace(patterns: String*): IncludeExcludeStackTraceFilter

shortcut to add exclude trace patterns

shortcut to add exclude trace patterns

Attributes

Inherited from:
ArgumentsShortcuts
def excludeTrace(patterns: String*): IncludeExcludeStackTraceFilter

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
def failedTry[T](t: Throwable): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def failedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def failedTry[T]: TryFailureMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def failure(message: String): Failure

Attributes

Inherited from:
StandardResults
def failure: Failure

Attributes

Inherited from:
StandardResults
def find(r: Regex): FindMatcherRegex

matches if the regexp r is found inside b

matches if the regexp r is found inside b

Attributes

Inherited from:
StringBaseMatchers (hidden)
def find(p: Pattern): FindMatcherPattern

matches if the pattern p is found inside b

matches if the pattern p is found inside b

Attributes

Inherited from:
StringBaseMatchers (hidden)
def find(a: => String): FindMatcher

matches if the regexp a is found inside b

matches if the regexp a is found inside b

Attributes

Inherited from:
StringBaseMatchers (hidden)

Attributes

Inherited from:
FragmentsFactory

Attributes

Inherited from:
ContextualSpecificationStructure
def fullStackTrace: Arguments

shortcut to filter nothing

shortcut to filter nothing

Attributes

Inherited from:
ArgumentsShortcuts
def greaterThan[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def greaterThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): Matcher[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def haveClass[T : ClassTag]: Matcher[AnyRef]

matches if v.getClass == c

matches if v.getClass == c

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def haveInterface[T : ClassTag]: Matcher[AnyRef]

matches if x.getClass.getInterfaces.contains(T)

matches if x.getClass.getInterfaces.contains(T)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def haveLength[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveLength[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveSize[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveSize[T : Sized](n: Int): SizedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveSuperclass[T : ClassTag]: Matcher[AnyRef]

matches if c.isAssignableFrom(v.getClass.getSuperclass)

matches if c.isAssignableFrom(v.getClass.getSuperclass)

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def include(tags: String): Arguments

shortcut to include only some tagged fragments

shortcut to include only some tagged fragments

Attributes

Inherited from:
ArgumentsShortcuts
def includeAlsoTrace(patterns: String*): IncludeExcludeStackTraceFilter

shortcut to add include trace patterns

shortcut to add include trace patterns

Attributes

Inherited from:
ArgumentsShortcuts
def includeTrace(patterns: String*): IncludeExcludeStackTraceFilter

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
def isolated: Arguments

Attributes

Returns

arguments for a specification where examples must be executed in their own specification

Inherited from:
ArgumentsShortcuts
def ko(m: String): MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
def left[T](implicit p: ImplicitParam): LeftMatcher[Nothing]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def left[T](t: ValueCheck[T]): LeftCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def left[T : Diffable](t: T): LeftCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def length[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def length[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def lessThan[S](n: S)(implicit convert: S => Ordered[S]): BeLessThan[S]

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def lessThanOrEqualTo[S](n: S)(implicit convert: S => Ordered[S]): BeLessThanOrEqualTo[S]

matches if x <= n

matches if x <= n

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def map(fs: => Fragments, env: Env): Fragments

modify the fragments, using the current environment

modify the fragments, using the current environment

Attributes

Inherited from:
SpecificationStructure
def map(fs: => Fragments): Fragments

modify the fragments

modify the fragments

Attributes

Inherited from:
SpecificationStructure
def map(structure: SpecStructure): SpecStructure

modify the specification structure

modify the specification structure

Attributes

Inherited from:
SpecificationStructure
protected def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

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
def nocolor: Arguments

shortcut to avoid colored output

shortcut to avoid colored output

Attributes

Inherited from:
ArgumentsShortcuts
def none: Matcher[Option[Any]]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def not[T](m: Matcher[T]): Matcher[T]

negate a matcher

negate a matcher

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def ok(m: String): MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
def only(examples: String): Arguments

shortcut to execute and print only some examples

shortcut to execute and print only some examples

Attributes

Inherited from:
ArgumentsShortcuts
def p: Fragments

Attributes

Inherited from:
FormattingFragments
def pending[R : AsResult](r: => R): Pending

Attributes

Inherited from:
StandardResults
def pending: Pending

Attributes

Inherited from:
StandardResults
def pending(message: String): Pending

Attributes

Inherited from:
StandardResults
def plan: Arguments

shortcut to show only the text without any execution

shortcut to show only the text without any execution

Attributes

Inherited from:
ArgumentsShortcuts
def retry[T](m: Matcher[T])(retries: Int)(implicit ee: ExecutionEnv): Matcher[Future[T]]

Attributes

Inherited from:
FutureBaseMatchers (hidden)
def right[T](implicit p: ImplicitParam): RightMatcher[Nothing]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def right[T](t: ValueCheck[T]): RightCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def right[T : Diffable](t: T): RightCheckedMatcher[T]

Attributes

Inherited from:
EitherBaseMatchers (hidden)
def s2(content: String, Yrangepos: Boolean, texts: Seq[String], textsStartPositions: Seq[String], textsEndPositions: Seq[String], variables: Seq[InterpolatedFragment], rangeExpressions: Seq[String]): Fragments

based on the interpolated variables and the expressions captured with the macro, create the appropriate fragments

based on the interpolated variables and the expressions captured with the macro, create the appropriate fragments

if the Yrangepos scalac option is not set then we use an approximated method to find the expressions texts

Attributes

Inherited from:
S2StringContextCreation
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

Attributes

Returns

the match result without any side-effects

Inherited from:
ExpectationsCreation
def section(tag: NamedTag): Fragment

Attributes

Inherited from:
TagDsl
def section(names: String*): Fragment

Attributes

Inherited from:
TagDsl

Attributes

Inherited from:
ReferenceCreation

Attributes

Inherited from:
ReferenceCreation
def sequential: Arguments

Attributes

Returns

arguments for a specification where examples must be executed sequentially

Inherited from:
ArgumentsShortcuts
protected def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

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
def showOnly(s: String): Arguments

shortcut to print only some statuses

shortcut to print only some statuses

Attributes

Inherited from:
ArgumentsShortcuts
def size[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def size[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def skipAll: Arguments

shortcut to skip all examples

shortcut to skip all examples

Attributes

Inherited from:
ArgumentsShortcuts
def skipAllIf(condition: => Boolean): Arguments

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
def skipAllUnless(condition: => Boolean): Arguments

shortcut to skip all examples when a condition is false.

shortcut to skip all examples when a condition is false.

Attributes

Inherited from:
ArgumentsShortcuts
def skipped[R : AsResult](r: => R): Skipped

Attributes

Inherited from:
StandardResults
def skipped: Skipped

Attributes

Inherited from:
StandardResults
def skipped(message: String): Skipped

Attributes

Inherited from:
StandardResults
def some[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def some[T : Diffable]: SomeMatcher[T]

Attributes

Inherited from:
OptionBaseMatchers (hidden)
def sorted[T : Ordering]: OrderingMatcher[T]

alias for beSorted

alias for beSorted

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def startWith(a: String): Matcher[String]

matches if b.startsWith(a)

matches if b.startsWith(a)

Attributes

Inherited from:
StringBaseMatchers (hidden)
def step(a: => Any, global: Boolean): Fragment

Attributes

Inherited from:
ActionDsl
def step(a: => Any): Fragment

Attributes

Inherited from:
ActionDsl
def stopOnFail: Arguments

shortcut to stop after the first failure or error

shortcut to stop after the first failure or error

Attributes

Inherited from:
ArgumentsShortcuts
def stopOnSkip: Arguments

shortcut to stop after the first skipped result

shortcut to stop after the first skipped result

Attributes

Inherited from:
ArgumentsShortcuts
def success: Success

Attributes

Inherited from:
StandardResults
def successfulTry[T : Diffable](t: T): TrySuccessCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def successfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def successfulTry[T]: TrySuccessMatcher[T]

Attributes

Inherited from:
TryBaseMatchers (hidden)
def t(n: Int): Fragment

Attributes

Inherited from:
FormattingFragments
def t: Fragment

Attributes

Inherited from:
FormattingFragments
def tag(tag: NamedTag): Fragment

Attributes

Inherited from:
TagDsl
def tag(names: String*): Fragment

Attributes

Inherited from:
TagDsl
def throwA[E <: Throwable](e: E): ExceptionMatcher[E]

Attributes

Returns

a matcher checking the value of an Exception

Inherited from:
ExceptionBaseMatchers (hidden)
def throwA[E <: Throwable](message: String)(implicit m: ClassTag[E]): Matcher[Any]

Attributes

Returns

a matcher checking the type of an Exception and its message (as a regexp)

Inherited from:
ExceptionBaseMatchers (hidden)
def throwA[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

Attributes

Returns

a matcher checking the type of an Exception

Inherited from:
ExceptionBaseMatchers (hidden)
def throwAn[E <: Throwable](e: E): ExceptionMatcher[E]

alias for throwA

alias for throwA

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
def throwAn[E <: Throwable](message: String)(implicit m: ClassTag[E]): Matcher[Any]

alias for throwA

alias for throwA

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
def throwAn[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

alias for throwA

alias for throwA

Attributes

Inherited from:
ExceptionBaseMatchers (hidden)
def todo: Pending

Attributes

Inherited from:
StandardResults
def typedEqualTo[T](t: => T): EqualityMatcher[T]

matches if a == b

matches if a == b

Attributes

Inherited from:
AnyBaseMatchers (hidden)
def unbatched: Arguments

Attributes

Returns

arguments for a specification where examples must be executed inside just one big batch

Inherited from:
ArgumentsShortcuts
def valueIsTypedValueCheck[T](expected: T)(implicit di: Diffable[T]): ValueCheck[T]

an expected value can be used to check another value

an expected value can be used to check another value

Attributes

Inherited from:
ValueChecksBase
def was(s: String): Arguments

shortcut to include only examples with some previous statuses

shortcut to include only examples with some previous statuses

Attributes

Inherited from:
ArgumentsShortcuts
def wontdo: Success

Attributes

Inherited from:
StandardResults
def xonly: Arguments

shortcut to print only failures and errors

shortcut to print only failures and errors

Attributes

Inherited from:
ArgumentsShortcuts
def ~[S : Numeric](delta: PlusOrMinus[S]): Matcher[S]

alias for beCloseTo

alias for beCloseTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)
def ~[S : Numeric](n: S)(delta: S): Matcher[S]

alias for beCloseTo

alias for beCloseTo

Attributes

Inherited from:
NumericBaseMatchers (hidden)

Inherited fields

lazy val args: ArgumentsNamespace

Attributes

Inherited from:
ArgumentsCreation
lazy val ko: MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
lazy val ok: MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults

Implicits

Inherited implicits

final implicit def appendToArguments(args: Arguments): appendToArguments

Attributes

Inherited from:
SpecStructureDsl1 (hidden)
implicit def asResultIsInterpolatedFragment[R : AsResult](r: => R): InterpolatedFragment

Attributes

Inherited from:
S2StringContext1 (hidden)

Attributes

Inherited from:
S2StringContext1 (hidden)

Attributes

Inherited from:
SpecStructureDsl1 (hidden)
implicit def functionIsValueCheck[T, R : AsResult](f: T => R): ValueCheck[T]

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 def matcherIsValueCheck[T](m: Matcher[T]): ValueCheck[T]

a Matcher[T] can check a value

a Matcher[T] can check a value

Attributes

Inherited from:
ValueChecksBase
final implicit def specificationInStringContext(sc: StringContext): specificationInStringContext

Attributes

Inherited from:
S2StringContextCreation
implicit def theValue[T](t: => T): MustExpectable[T]

Attributes

Inherited from:
MustExpectations1 (hidden)