AndHaveWord

final class AndHaveWord

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Concrete methods

infix def length(expectedLength: Long): MatcherFactory1[T, Length]

This method enables the following syntax:

This method enables the following syntax:

aMatcher and have length (3 - 1)
                 ^
infix def message(expectedMessage: String): MatcherFactory1[T, Messaging]

This method enables the following syntax:

This method enables the following syntax:

aMatcher and have message ("A message from Mars")
                 ^
infix def size(expectedSize: Long): MatcherFactory1[T, Size]

This method enables the following syntax:

This method enables the following syntax:

aMatcher and have size (3 - 1)
                               ^