Class CannotInvokeRealMethodException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.spockframework.mock.CannotInvokeRealMethodException
All Implemented Interfaces:
Serializable

public class CannotInvokeRealMethodException extends RuntimeException
Thrown to indicate that an attempt was made to delegate a method call to a real object underlying a mock, although no such underlying object exists.
See Also:
  • Constructor Details

    • CannotInvokeRealMethodException

      public CannotInvokeRealMethodException(String message)