Package org.spockframework.mock
Class TooManyInvocationsError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.spockframework.runtime.SpockAssertionError
org.spockframework.mock.InteractionNotSatisfiedError
org.spockframework.mock.TooManyInvocationsError
- All Implemented Interfaces:
Serializable
Thrown to indicate that a mandatory interaction matched too many invocations.
- Author:
- Peter Niederwieser
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTooManyInvocationsError
(IMockInteraction interaction, List<IMockInvocation> acceptedInvocations) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.spockframework.runtime.SpockAssertionError
toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
TooManyInvocationsError
public TooManyInvocationsError(IMockInteraction interaction, List<IMockInvocation> acceptedInvocations)
-
-
Method Details
-
getInteraction
-
getAcceptedInvocations
-
getMessage
- Overrides:
getMessage
in classThrowable
-