Package org.spockframework.mock
package org.spockframework.mock
Spock's built-in mocking framework.
-
ClassDescriptionA response strategy that delegates method calls to the real object underlying the mock (if any).Thrown to indicate a problem when creating a mock object.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.A response strategy that returns zero, an "empty" object, or a "dummy" object, depending on the method's declared return type.A constraint on an invocation argument.Generates return values for invocations on mock objects.A strategy for responding to unexpected method calls.An interaction scope holds a group of interactions that will be verified, and thereafter removed, at the same time.Configuration options for mock objects.An anticipated interaction between the SUT and one or more mock objects.A method invocation on a mock object.Represents a method that can be mocked.Base class for exceptions thrown to indicate that one or more interactions were not satisfied.Generates responses to mock invocations.Marker-like interface implemented by all mock objects that allows
MockDetector
to detect mock objects.Detects mock objects and provides information about them.Determines how method calls are processed and matched against interactions.A named set of defaults for a mock's configuration options.Thrown to indicate that one or more mandatory interactions matched too few invocations.Thrown to indicate that a mandatory interaction matched too many invocations.Thrown if an invocation on a mock object occurs too late.A response strategy that returns zero, false, or null, depending on the method's return type.