final case class HavePropertyMatchResult[P](matches: Boolean, propertyName: String, expectedValue: P, actualValue: P)
The result of a property match operation such as one performed by a
HavePropertyMatcher
,
which contains one field that indicates whether the match succeeded (i.e., the
property had its expected value), one field that provides
the name of the property, and two fields giving the expected and actual values.
HavePropertyMatchResult
's type parameter, P
, specifies the type of the property.
For an example of a HavePropertyMatchResult
in action, see the documentation for
HavePropertyMatcher
.
- Value parameters:
- actualValue
the actual value of the property
- expectedValue
the expected value of the property
- matches
indicates whether or not the matcher matched (if the property had its expected value, it was a match)
- propertyName
the name of the property (of type
P
) that was matched against
- Companion:
- object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any