org.spockframework.mock
Class TooManyInvocationsError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by org.spockframework.runtime.SpockAssertionError
                  extended by org.spockframework.mock.InteractionNotSatisfiedError
                      extended by org.spockframework.mock.TooManyInvocationsError
All Implemented Interfaces:
java.io.Serializable

public class TooManyInvocationsError
extends InteractionNotSatisfiedError

Indicates that a required interaction has matched too many invocations.

Author:
Peter Niederwieser
See Also:
Serialized Form

Constructor Summary
TooManyInvocationsError(IMockInteraction interaction, IMockInvocation lastInvocation)
           
 
Method Summary
 IMockInteraction getInteraction()
           
 IMockInvocation getLastInvocation()
           
 java.lang.String getMessage()
           
 
Methods inherited from class org.spockframework.runtime.SpockAssertionError
toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TooManyInvocationsError

public TooManyInvocationsError(IMockInteraction interaction,
                               IMockInvocation lastInvocation)
Method Detail

getInteraction

public IMockInteraction getInteraction()

getLastInvocation

public IMockInvocation getLastInvocation()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2013. All rights reserved