final class ResultOfHaveWordForExtent[A] extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers
for an overview of
the matchers DSL.
- Source
- Matchers.scala
- Alphabetic
- By Inheritance
- ResultOfHaveWordForExtent
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ResultOfHaveWordForExtent(left: A, shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position)
Value Members
-
def
length(expectedLength: Long)(implicit len: Length[A]): Assertion
This method enables the following syntax:
This method enables the following syntax:
obj should have length (2L) ^
This method is ultimately invoked for objects that have a
length
property structure of typeLong
, but is of a type that is not handled by implicit conversions from nominal types such asscala.Seq
,java.lang.String
, andjava.util.List
. -
def
message(expectedMessage: String)(implicit messaging: Messaging[A]): Assertion
This method enables the following syntax:
This method enables the following syntax:
exception should have message ("file not found") ^
-
def
size(expectedSize: Long)(implicit sz: Size[A]): Assertion
This method enables the following syntax:
This method enables the following syntax:
obj should have size (2L) ^
This method is ultimately invoked for objects that have a
size
property structure of typeLong
, but is of a type that is not handled by implicit conversions from nominal types such asTraversable
andjava.util.Collection
. -
def
toString(): String
Overrides to return pretty toString.
Overrides to return pretty toString.
- returns
"ResultOfHaveWordForExtent([left], [shouldBeTrue])"
- Definition Classes
- ResultOfHaveWordForExtent → AnyRef → Any