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

def length(expectedLength: Long): MatcherFactory2[SC, TC1, Length]

This method enables the following syntax given a MatcherFactory1:

This method enables the following syntax given a MatcherFactory1:

aMatcherFactory and have length (3 - 1)
                        ^
def message(expectedMessage: String): MatcherFactory2[SC, TC1, Messaging]

This method enables the following syntax given a MatcherFactory1:

This method enables the following syntax given a MatcherFactory1:

aMatcherFactory and have message ("A message from Mars!")
                        ^
def size(expectedSize: Long): MatcherFactory2[SC, TC1, Size]

This method enables the following syntax given a MatcherFactory1:

This method enables the following syntax given a MatcherFactory1:

aMatcherFactory and have size (3 - 1)
                        ^