VerificationResult class

Information about a stub call verification.

This class is most useful to users in two ways:

  • verifying call count, via called,
  • collecting captured arguments, via captured.

Constructors

VerificationResult(int callCount)

Properties

callCount int
The number of calls matched in this verification.
read / write
captured List
List of all arguments captured in real calls. [...]
@Deprecated('captured should be considered final - assigning this field may be ' 'removed as early as Mockito 5.0.0'), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

called(dynamic matcher) → void
Assert that the number of calls matches matcher. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited