org.scalatest

matchers

package matchers

Visibility
  1. Public
  2. All

Type Members

  1. trait BeMatcher[-T] extends (T) ⇒ MatchResult

    Trait extended by matcher objects, which may appear after the word be, that can match a value of the specified type.

  2. final case class BePropertyMatchResult(matches: Boolean, propertyName: String) extends Product with Serializable

    The result of a Boolean property match operation, such as one performed by a BePropertyMatcher, which contains one field that indicates whether the match succeeded (i.e., the Boolean property was true) and one field that provides the name of the property.

  3. trait BePropertyMatcher[-T] extends (T) ⇒ BePropertyMatchResult

    Trait extended by matcher objects, which may appear after the word be, that can match against a Boolean property.

  4. final case class HavePropertyMatchResult[P](matches: Boolean, propertyName: String, expectedValue: P, actualValue: P) extends Product with Serializable

    The result of a property match operation such as one performed by a HavePropertyMatcher, which contains one field that indicates whether the match succeeded (i.e., the property had its expected value), one field that provides the name of the property, and two fields giving the expected and actual values.

  5. trait HavePropertyMatcher[-T, P] extends (T) ⇒ HavePropertyMatchResult[P]

    Trait extended by matcher objects, which may appear after the word have, that can match against a property of the type specified by the HavePropertyMatcher's second type parameter P.

  6. final case class LazyArg(arg: Any)(f: (Any) ⇒ String) extends Product with Serializable

    Transforms a given object's toString with a given function lazily.

  7. final case class MatchResult(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any], midSentenceFailureMessageArgs: IndexedSeq[Any], midSentenceNegatedFailureMessageArgs: IndexedSeq[Any], prettifier: Prettifier = org.scalautils.Prettifier.default) extends Product with Serializable

    The result of a match operation, such as one performed by a Matcher or BeMatcher, which contains one field that indicates whether the match succeeded, four fields that provide raw failure messages to report under different circumstances, four fields providing arguments used to construct the final failure messages using raw failure messages and a Prettifier.

  8. trait Matcher[-T] extends (T) ⇒ MatchResult

    Trait extended by objects that can match a value of the specified type.

  9. abstract class MatcherFactory1[-SC, TC1[_]] extends AnyRef

    A matcher factory that can produce a matcher given one typeclass instance.

  10. abstract class MatcherFactory2[-SC, TC1[_], TC2[_]] extends AnyRef

    A matcher factory that can produce a matcher given two typeclass instances.

  11. abstract class MatcherFactory3[-SC, TC1[_], TC2[_], TC3[_]] extends AnyRef

    A matcher factory that can produce a matcher given three typeclass instances.

  12. abstract class MatcherFactory4[-SC, TC1[_], TC2[_], TC3[_], TC4[_]] extends AnyRef

    A matcher factory that can produce a matcher given four typeclass instances.

  13. abstract class MatcherFactory5[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_]] extends AnyRef

    A matcher factory that can produce a matcher given five typeclass instances.

  14. abstract class MatcherFactory6[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_]] extends AnyRef

    A matcher factory that can produce a matcher given six typeclass instances.

  15. abstract class MatcherFactory7[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_]] extends AnyRef

    A matcher factory that can produce a matcher given seven typeclass instances.

  16. abstract class MatcherFactory8[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_]] extends AnyRef

    A matcher factory that can produce a matcher given eight typeclass instances.

  17. abstract class MatcherFactory9[-SC, TC1[_], TC2[_], TC3[_], TC4[_], TC5[_], TC6[_], TC7[_], TC8[_], TC9[_]] extends AnyRef

    A matcher factory that can produce a matcher given nine typeclass instances.

  18. trait MatcherProducers extends AnyRef

    Provides an implicit conversion on functions that produce Matchers, i.e., T => Matcher[T] that enables you to modify error messages when composing Matchers.

  19. trait MustMatchers extends scalatest.MustMatchers

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.MustMatchers instead.

  20. trait ShouldMatchers extends Matchers

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.Matchers instead.

Value Members

  1. object BeMatcher

    Companion object for trait BeMatcher that provides a factory method that creates a BeMatcher[T] from a passed function of type (T => MatchResult).

  2. object BePropertyMatchResult extends Serializable

    Companion object for the BePropertyMatchResult case class.

  3. object BePropertyMatcher

    Companion object for trait BePropertyMatcher that provides a factory method that creates a BePropertyMatcher[T] from a passed function of type (T => BePropertyMatchResult).

  4. object HavePropertyMatchResult extends Serializable

    Companion object for the HavePropertyMatchResult case class.

  5. object HavePropertyMatcher

    Companion object for trait HavePropertyMatcher that provides a factory method that creates a HavePropertyMatcher[T] from a passed function of type (T => HavePropertyMatchResult).

  6. object MatchFailed

    Singleton object that provides unapply method to extract failure message from MatchResult having matches property value of false.

  7. object MatchResult extends Serializable

    Companion object for the MatchResult case class.

  8. object MatchSucceeded

    Singleton object that provides unapply method to extract negated failure message from MatchResult having matches property value of true.

  9. object Matcher

    Companion object for trait Matcher that provides a factory method that creates a Matcher[T] from a passed function of type (T => MatchResult).

  10. object MatcherFactory1

    Companion object containing an implicit method that converts a MatcherFactory1 to a Matcher.

  11. object MatcherFactory2

    Companion object containing an implicit method that converts a MatcherFactory2 to a Matcher.

  12. object MatcherFactory3

    Companion object containing an implicit method that converts a MatcherFactory3 to a Matcher.

  13. object MatcherFactory4

    Companion object containing an implicit method that converts a MatcherFactory4 to a Matcher.

  14. object MatcherFactory5

    Companion object containing an implicit method that converts a MatcherFactory5 to a Matcher.

  15. object MatcherFactory6

    Companion object containing an implicit method that converts a MatcherFactory6 to a Matcher.

  16. object MatcherFactory7

    Companion object containing an implicit method that converts a MatcherFactory7 to a Matcher.

  17. object MatcherFactory8

    Companion object containing an implicit method that converts a MatcherFactory8 to a Matcher.

  18. object MatcherProducers extends MatcherProducers

    Companion object that facilitates the importing of MatcherProducers members as an alternative to mixing it in.

Deprecated Value Members

  1. object MustMatchers extends scalatest.MustMatchers

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.MustMatchers instead.

  2. object ShouldMatchers extends ShouldMatchers

    Annotations
    @deprecated
    Deprecated

    Please use org.scalatest.Matchers instead.

Ungrouped