Package org.mockito.invocation
Interface DescribedInvocation
- All Superinterfaces:
PrintableInvocation
- All Known Subinterfaces:
Invocation,VerificationAwareInvocation
- All Known Implementing Classes:
InvocationImpl,InvocationMatcher,StubbedInvocationMatcher
Provides information about the invocation, specifically a human readable description and the location.
-
Method Summary
Modifier and TypeMethodDescriptionThe place in the code where the invocation happened.toString()Describes the invocation in the human friendly way.
-
Method Details
-
toString
String toString()Describes the invocation in the human friendly way.- Specified by:
toStringin interfacePrintableInvocation- Overrides:
toStringin classObject- Returns:
- the description of this invocation.
-
getLocation
Location getLocation()The place in the code where the invocation happened.- Specified by:
getLocationin interfacePrintableInvocation- Returns:
- the location of the invocation.
-