org.scalatest

matchers

package matchers

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. class BePropertyMatchResult(matches: Boolean, propertyName: String) extends Product

    The result of a Boolean property match operation, such as one performed by a

    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

  3. class HavePropertyMatchResult[P](matches: Boolean, propertyName: String, expectedValue: P, actualValue: P) extends Product

    The result of a property match operation such as one performed by a

    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

  4. class MatchResult(matches: Boolean, failureMessage: String, negatedFailureMessage: String, midSentenceFailureMessage: String, midSentenceNegatedFailureMessage: String) extends Product

    The result of a match operation, such as one performed by a

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

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

  5. trait Matchers extends Assertions

    This trait is part of the ScalaTest matchers DSL

  6. trait MustMatchers extends Matchers with MustVerb

    Trait that provides a domain specific language (DSL) for expressing assertions in tests using the word must

  7. trait ShouldMatchers extends Matchers with ShouldVerb

    Trait that provides a domain specific language (DSL) for expressing assertions in tests using the word should

Value Members

  1. object BePropertyMatchResult extends AnyRef

    Companion object for the BePropertyMatchResult case class

  2. object HavePropertyMatchResult extends AnyRef

    Companion object for the HavePropertyMatchResult case class

  3. object MatchResult extends AnyRef

    Companion object for the MatchResult case class

  4. object MustMatchers extends MustMatchers

    Companion object that facilitates the importing of MustMatchers members as an alternative to mixing it the trait

  5. object ShouldMatchers extends ShouldMatchers

    Companion object that facilitates the importing of ShouldMatchers members as an alternative to mixing it the trait