org.scalatest.matchers

HavePropertyMatchResult

class HavePropertyMatchResult[P](matches: Boolean, propertyName: String, expectedValue: P, actualValue: P) extends Product

The result of a property match operation such as one performed by aHavePropertyMatcher, 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 forHavePropertyMatcher.

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

expectedValue

the expected value of the property

actualValue

the actual value of the property

attributes: final
go to: companion
    authors:
  1. Bill Venners

Inherited
  1. Hide All
  2. Show all
  1. Product
  2. Equals
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new HavePropertyMatchResult(matches: Boolean, propertyName: String, expectedValue: P, actualValue: P)

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. val actualValue: P

  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  10. def canEqual(arg0: Any): Boolean

  11. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  12. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  13. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  14. val expectedValue: P

  15. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  16. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  17. def hashCode(): Int

    Returns a hash code value for the object.

  18. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  19. val matches: Boolean

  20. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  21. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  22. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  23. def productArity: Int

  24. def productElement(arg0: Int): Any

  25. def productElements: Iterator[Any]

  26. def productIterator: Iterator[Any]

  27. def productPrefix: String

  28. val propertyName: String

  29. def synchronized[T0](arg0: T0): T0

  30. def toString(): String

    Returns a string representation of the object.

  31. def wait(): Unit

  32. def wait(arg0: Long, arg1: Int): Unit

  33. def wait(arg0: Long): Unit