OrHaveWord

final class OrHaveWord

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): MatcherFactory7[SC, TC1, TC2, TC3, TC4, TC5, TC6, Length]

This method enables the following syntax given a MatcherFactory6:

This method enables the following syntax given a MatcherFactory6:

aMatcherFactory or have length (3 - 1)
                       ^
def message(expectedMessage: String): MatcherFactory7[SC, TC1, TC2, TC3, TC4, TC5, TC6, Messaging]

This method enables the following syntax given a MatcherFactory6:

This method enables the following syntax given a MatcherFactory6:

aMatcherFactory or have message ("Message from Mars!")
                       ^
def size(expectedSize: Long): MatcherFactory7[SC, TC1, TC2, TC3, TC4, TC5, TC6, Size]

This method enables the following syntax given a MatcherFactory6:

This method enables the following syntax given a MatcherFactory6:

aMatcherFactory or have size (3 - 1)
                       ^