Package org.spockframework.mock
Class TooFewInvocationsError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.spockframework.runtime.SpockAssertionError
org.spockframework.mock.InteractionNotSatisfiedError
org.spockframework.mock.TooFewInvocationsError
- All Implemented Interfaces:
Serializable
Thrown to indicate that one or more mandatory interactions matched too few invocations.
- Author:
- Peter Niederwieser
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTooFewInvocationsError
(List<IMockInteraction> interactions, List<IMockInvocation> unmatchedInvocations) -
Method Summary
Methods 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
-
TooFewInvocationsError
public TooFewInvocationsError(List<IMockInteraction> interactions, List<IMockInvocation> unmatchedInvocations)
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-