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:
java.io.Serializable
public class TooManyInvocationsError extends InteractionNotSatisfiedError
Thrown to indicate that a mandatory interaction matched too many invocations.- Author:
- Peter Niederwieser
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TooManyInvocationsError(IMockInteraction interaction, java.util.List<IMockInvocation> acceptedInvocations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IMockInvocation>
getAcceptedInvocations()
IMockInteraction
getInteraction()
java.lang.String
getMessage()
-
Methods inherited from class org.spockframework.runtime.SpockAssertionError
toString
-
-
-
-
Constructor Detail
-
TooManyInvocationsError
public TooManyInvocationsError(IMockInteraction interaction, java.util.List<IMockInvocation> acceptedInvocations)
-
-
Method Detail
-
getInteraction
public IMockInteraction getInteraction()
-
getAcceptedInvocations
public java.util.List<IMockInvocation> getAcceptedInvocations()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-